@Test public void testPut() { SetMetadataParameters victim = new SetMetadataParameters(); victim.put(PdfMetadataFields.AUTHOR, "author"); victim.put(PdfMetadataFields.CREATOR, "creator"); Set<String> keys = victim.getMetadata().keySet(); assertEquals(2, keys.size()); assertTrue(keys.contains(PdfMetadataFields.AUTHOR)); assertTrue(keys.contains(PdfMetadataFields.CREATOR)); assertFalse(keys.contains(PdfMetadataFields.KEYWORDS)); }
public void put(String key, String metadata) { this.metadata.put(key, metadata); }
SetMetadataParameters extends SinglePdfSourceSingleOutputParameters { public void put(String key, String metadata) { this.metadata.put(key, metadata); } }
SetMetadataParameters extends SinglePdfSourceSingleOutputParameters { public void put(String key, String metadata) { this.metadata.put(key, metadata); }  }
SetMetadataParameters extends SinglePdfSourceSingleOutputParameters { public void put(String key, String metadata) { this.metadata.put(key, metadata); }  Map<String, String> getMetadata(); void putAll(Map<String, String> m); void put(String key, String metadata); @Override int hashCode(); @Override boolean equals(Object other); }
SetMetadataParameters extends SinglePdfSourceSingleOutputParameters { public void put(String key, String metadata) { this.metadata.put(key, metadata); }  Map<String, String> getMetadata(); void putAll(Map<String, String> m); void put(String key, String metadata); @Override int hashCode(); @Override boolean equals(Object other);  }