@Test public void getDefaultCoOwners_emptyCoOwnerNames() { String EMPTY_CO_OWNER_NAMES = ""; when(campusConfigurationMock.getDefaultCoOwnerUserNames()).thenReturn(EMPTY_CO_OWNER_NAMES); List<Identity> coOwners = campuskursCoOwnersTestObject.getDefaultCoOwners(); assertEquals("Wrong number of owners, must 0 when value is empty", 0, coOwners.size()); }
public List<Identity> getDefaultCoOwners() { if (identites != null) { return identites; } else { identites = initCoOwnerIdentities(); return identites; } }
CampuskursCoOwners { public List<Identity> getDefaultCoOwners() { if (identites != null) { return identites; } else { identites = initCoOwnerIdentities(); return identites; } } }
CampuskursCoOwners { public List<Identity> getDefaultCoOwners() { if (identites != null) { return identites; } else { identites = initCoOwnerIdentities(); return identites; } }  }
CampuskursCoOwners { public List<Identity> getDefaultCoOwners() { if (identites != null) { return identites; } else { identites = initCoOwnerIdentities(); return identites; } }  List<Identity> getDefaultCoOwners(); }
CampuskursCoOwners { public List<Identity> getDefaultCoOwners() { if (identites != null) { return identites; } else { identites = initCoOwnerIdentities(); return identites; } }  List<Identity> getDefaultCoOwners();  }