@Test public void testSetFirstServiceId() throws Exception { BranchingServiceCollection services = createServiceCollection(); services.setFirstServiceId(FIRST_SERVICE_ID); try { services.setFirstServiceId(null); fail("Null or empty first-service-id"); } catch (IllegalArgumentException expected) { } assertEquals(FIRST_SERVICE_ID, services.getFirstServiceId()); }
public void setFirstServiceId(String s) { firstServiceId = Args.notBlank(s, "firstServiceId"); }
BranchingServiceCollection extends ServiceCollectionImp { public void setFirstServiceId(String s) { firstServiceId = Args.notBlank(s, "firstServiceId"); } }
BranchingServiceCollection extends ServiceCollectionImp { public void setFirstServiceId(String s) { firstServiceId = Args.notBlank(s, "firstServiceId"); } BranchingServiceCollection();  BranchingServiceCollection(Collection<Service> list); }
BranchingServiceCollection extends ServiceCollectionImp { public void setFirstServiceId(String s) { firstServiceId = Args.notBlank(s, "firstServiceId"); } BranchingServiceCollection();  BranchingServiceCollection(Collection<Service> list); String getFirstServiceId(); void setFirstServiceId(String s); BranchingServiceCollection withFirstServiceId(String s); }
BranchingServiceCollection extends ServiceCollectionImp { public void setFirstServiceId(String s) { firstServiceId = Args.notBlank(s, "firstServiceId"); } BranchingServiceCollection();  BranchingServiceCollection(Collection<Service> list); String getFirstServiceId(); void setFirstServiceId(String s); BranchingServiceCollection withFirstServiceId(String s);  }