예제 #1
0
 @Test
 public void testIsEmpty1() throws Exception {
   SerializedMap map = new SerializedMap(Map.class, HashMap.class);
   map.put(literal(String.class, "key"), literal(String.class, "value"));
   assertThat(map.isEmpty(), is(false));
 }
예제 #2
0
 @Test
 public void testIsEmpty0() throws Exception {
   SerializedMap map = new SerializedMap(Map.class, HashMap.class);
   assertThat(map.isEmpty(), is(true));
 }