808182838485868788899091
will(returnValue(themeName)); } }); ThemeDTO result = sut.transform(new ArrayList<Theme>(Arrays.asList(theme))).get(0); assertEquals(themeId, result.getId()); assertEquals(themeName, result.getName()); context.assertIsSatisfied(); }
40414243444546474849505152
{ List<ThemeDTO> results = new ArrayList<ThemeDTO>(); for (Theme theme : inTransformType) { ThemeDTO dto = new ThemeDTO(); dto.setId(theme.getId()); dto.setName(theme.getName()); results.add(dto); } return results;