@Test public void testSetGenerator() throws Exception { GenerateUniqueMetadataValueService service = new GenerateUniqueMetadataValueService(); assertNotNull(service.getGenerator()); assertEquals(GuidGenerator.class, service.getGenerator().getClass()); PlainIdGenerator gen = new PlainIdGenerator(); service.setGenerator(gen); assertEquals(gen, service.getGenerator()); try { service.setGenerator(null); fail(); } catch (IllegalArgumentException expected) { } assertEquals(gen, service.getGenerator()); }
public void setGenerator(IdGenerator idg) { generator = Args.notNull(idg, "generator"); }
GenerateUniqueMetadataValueService extends MetadataServiceImpl { public void setGenerator(IdGenerator idg) { generator = Args.notNull(idg, "generator"); } }
GenerateUniqueMetadataValueService extends MetadataServiceImpl { public void setGenerator(IdGenerator idg) { generator = Args.notNull(idg, "generator"); } GenerateUniqueMetadataValueService();  GenerateUniqueMetadataValueService(String metadataKey);  GenerateUniqueMetadataValueService(String metadataKey, IdGenerator generator); }
GenerateUniqueMetadataValueService extends MetadataServiceImpl { public void setGenerator(IdGenerator idg) { generator = Args.notNull(idg, "generator"); } GenerateUniqueMetadataValueService();  GenerateUniqueMetadataValueService(String metadataKey);  GenerateUniqueMetadataValueService(String metadataKey, IdGenerator generator); @Override void doService(AdaptrisMessage msg); String getMetadataKey(); void setMetadataKey(String s); IdGenerator getGenerator(); void setGenerator(IdGenerator idg); }
GenerateUniqueMetadataValueService extends MetadataServiceImpl { public void setGenerator(IdGenerator idg) { generator = Args.notNull(idg, "generator"); } GenerateUniqueMetadataValueService();  GenerateUniqueMetadataValueService(String metadataKey);  GenerateUniqueMetadataValueService(String metadataKey, IdGenerator generator); @Override void doService(AdaptrisMessage msg); String getMetadataKey(); void setMetadataKey(String s); IdGenerator getGenerator(); void setGenerator(IdGenerator idg);  }