Skip to content

Commit

Permalink
Adding RDF namespace to test
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed Oct 4, 2023
1 parent 962dbff commit cb8997c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ void testToMap() {
instance.setBackgroundColor(Color.BLUE);
instance.setMaxComponentSize(10);
Metadata metadata = new Metadata();
metadata.setXMP("<rdf:RDF></rdf:RDF>");
metadata.setXMP("<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"></rdf:RDF>");
instance.setMetadata(metadata);

Dimension size = new Dimension(500, 500);
Expand All @@ -150,7 +150,7 @@ void testToMap() {
assertTrue((boolean) map.get("interlace"));
assertEquals(50, map.get("quality"));
assertEquals(10, map.get("max_sample_size"));
assertEquals("<rdf:RDF></rdf:RDF>",
assertEquals("<rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"></rdf:RDF>",
((Map<String,Object>) map.get("metadata")).get("xmp_string"));
}

Expand Down

0 comments on commit cb8997c

Please sign in to comment.