Exemplo n.º 1
0
 @Test
 public void toListEntity() throws ParseException {
   String id0 = "0";
   String id1 = "1";
   Entity entity0 = when(mock(Entity.class).getIdValue()).thenReturn(id0).getMock();
   Entity entity1 = when(mock(Entity.class).getIdValue()).thenReturn(id1).getMock();
   assertEquals(DataConverter.toList(Arrays.asList(entity0, entity1)), Arrays.asList(id0, id1));
 }
Exemplo n.º 2
0
 @Test
 public void toListString() throws ParseException {
   String id0 = "0";
   String id1 = "1";
   assertEquals(DataConverter.toList(Arrays.asList(id0, id1)), Arrays.asList(id0, id1));
 }