@Test public void testEmptyList() { TeachingAssignment list = new TeachingAssignment(); List<String> result = converter.convert(list); Assert.assertEquals(1, result.size()); String academicSubjectType = result.get(0); Assert.assertEquals("Not Available", academicSubjectType); }
public List<String> convert(TeachingAssignment source) { if (source == null) { return null; } List<String> list = new ArrayList<String>(0); list.add(toSliAcademicSubjectType(TeachingArea.wrap(source.getCode()))); return list; }
TeachingAssignmentConverter { public List<String> convert(TeachingAssignment source) { if (source == null) { return null; } List<String> list = new ArrayList<String>(0); list.add(toSliAcademicSubjectType(TeachingArea.wrap(source.getCode()))); return list; } }
TeachingAssignmentConverter { public List<String> convert(TeachingAssignment source) { if (source == null) { return null; } List<String> list = new ArrayList<String>(0); list.add(toSliAcademicSubjectType(TeachingArea.wrap(source.getCode()))); return list; }  }
TeachingAssignmentConverter { public List<String> convert(TeachingAssignment source) { if (source == null) { return null; } List<String> list = new ArrayList<String>(0); list.add(toSliAcademicSubjectType(TeachingArea.wrap(source.getCode()))); return list; }  List<String> convert(TeachingAssignment source); }
TeachingAssignmentConverter { public List<String> convert(TeachingAssignment source) { if (source == null) { return null; } List<String> list = new ArrayList<String>(0); list.add(toSliAcademicSubjectType(TeachingArea.wrap(source.getCode()))); return list; }  List<String> convert(TeachingAssignment source);  }