@Test public void testSetMetadataKey() throws Exception { GenerateUniqueMetadataValueService service = new GenerateUniqueMetadataValueService(); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(); assertNull(service.getMetadataKey()); String s = service.metadataKey(msg); assertNotNull(s); assertNotSame("", s); assertNotSame(s, service.metadataKey(msg)); service.setMetadataKey("key"); assertEquals("key", service.getMetadataKey()); assertEquals("key", service.metadataKey(msg)); service.setMetadataKey(null); assertNull(service.getMetadataKey()); assertNotNull(service.metadataKey(msg)); service.setMetadataKey(""); assertEquals("", service.getMetadataKey()); assertNotSame("", service.metadataKey(msg)); }
public void setMetadataKey(String s) { metadataKey = s; }
GenerateUniqueMetadataValueService extends MetadataServiceImpl { public void setMetadataKey(String s) { metadataKey = s; } }
GenerateUniqueMetadataValueService extends MetadataServiceImpl { public void setMetadataKey(String s) { metadataKey = s; } GenerateUniqueMetadataValueService();  GenerateUniqueMetadataValueService(String metadataKey);  GenerateUniqueMetadataValueService(String metadataKey, IdGenerator generator); }
GenerateUniqueMetadataValueService extends MetadataServiceImpl { public void setMetadataKey(String s) { metadataKey = s; } 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 setMetadataKey(String s) { metadataKey = s; } 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);  }