@Test public void testSetMetadataKey() throws Exception { MetadataFileNameCreator fnc = new MetadataFileNameCreator("key"); try { fnc.setMetadataKey(null); fail(); } catch (IllegalArgumentException expected) { } try { fnc.setMetadataKey(""); fail(); } catch (IllegalArgumentException expected) { } }
public void setMetadataKey(String s) { metadataKey = Args.notBlank(s, "metadataKey"); }
MetadataFileNameCreator implements FileNameCreator { public void setMetadataKey(String s) { metadataKey = Args.notBlank(s, "metadataKey"); } }
MetadataFileNameCreator implements FileNameCreator { public void setMetadataKey(String s) { metadataKey = Args.notBlank(s, "metadataKey"); } MetadataFileNameCreator();  MetadataFileNameCreator(String metadataKey);  MetadataFileNameCreator(String metadataKey, String defaultName); }
MetadataFileNameCreator implements FileNameCreator { public void setMetadataKey(String s) { metadataKey = Args.notBlank(s, "metadataKey"); } MetadataFileNameCreator();  MetadataFileNameCreator(String metadataKey);  MetadataFileNameCreator(String metadataKey, String defaultName); @Override String createName(AdaptrisMessage msg); String getMetadataKey(); void setMetadataKey(String s); String getDefaultName(); void setDefaultName(String s); }
MetadataFileNameCreator implements FileNameCreator { public void setMetadataKey(String s) { metadataKey = Args.notBlank(s, "metadataKey"); } MetadataFileNameCreator();  MetadataFileNameCreator(String metadataKey);  MetadataFileNameCreator(String metadataKey, String defaultName); @Override String createName(AdaptrisMessage msg); String getMetadataKey(); void setMetadataKey(String s); String getDefaultName(); void setDefaultName(String s);  }