Example #1
0
 @Before
 public void setUp() {
   map = new GoITMap();
   map.put(new Integer(1), "one");
   map.put(new Integer(11), "one");
   System.out.println("setup");
 }
Example #2
0
 @Test
 public void testSize() {
   assertEquals("checking size of map", 2, map.size());
 }
Example #3
0
 @Test(expected = NoSuchElementException.class)
 public void testRemove() {
   map.remove("somekey");
 }
Example #4
0
 @Test
 public void testReturnValue() {
   assertEquals("return value checking", "one", map.get(1));
 }