Skip to content

Commit

Permalink
Touch up test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
agarciadom committed Dec 20, 2024
1 parent 51b9b4b commit f1b2093
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public class RDFModelTest {
private static final Set<String> SPIDERMAN_NAMES = new HashSet<>(Arrays.asList(SPIDERMAN_NAME, SPIDERMAN_NAME_RU));

private static final String GREEN_GOBLIN_URI = "http://example.org/#green-goblin";
private static final String GREEN_GOBLIN_NAME = "Green Goblin";

private static final Set<String> ALL_NAMES = new HashSet<>();
private static final Set<String> ALL_PERSON_URIS = new HashSet<>(Arrays.asList(SPIDERMAN_URI, GREEN_GOBLIN_URI));
Expand Down Expand Up @@ -79,21 +78,21 @@ public void getNamesWithoutPrefix() throws Exception {
for (RDFModelElement o : model.allContents()) {
names.addAll((Collection<String>) pGetter.invoke(o, "name", context));
}
assertEquals("With no language preference and no tag, all values return", ALL_NAMES, names);
assertEquals("With no language preference and no tag, all values are returned", ALL_NAMES, names);
}

@Test
public void getNamesWithPrefix() throws Exception {
RDFResource res = (RDFResource) model.getElementById(SPIDERMAN_URI);
Set<String> names = new HashSet<>((Collection<String>) pGetter.invoke(res, "foaf:name", context));
assertEquals("With no language preference and no tag, all values return", SPIDERMAN_NAMES, names);
assertEquals("With no language preference and no tag, all values are returned", SPIDERMAN_NAMES, names);
}

@Test
public void getNamesWithDoubleColonPrefix() throws Exception {
RDFResource res = (RDFResource) model.getElementById(SPIDERMAN_URI);
Set<String> names = new HashSet<>((Collection<String>) pGetter.invoke(res, "foaf::name", context));
assertEquals("With no language preference and no tag, all values return", SPIDERMAN_NAMES, names);
assertEquals("With no language preference and no tag, all values are returned", SPIDERMAN_NAMES, names);
}

@Test
Expand All @@ -103,7 +102,7 @@ public void getNameLiteralsWithPrefix() throws Exception {
for (RDFLiteral l : (Collection<RDFLiteral>) pGetter.invoke(res, "foaf:name_literal", context)) {
names.add((String) l.getValue());
}
assertEquals("With no language preference and no tag, all values return", SPIDERMAN_NAMES, names);
assertEquals("With no language preference and no tag, all values are returned", SPIDERMAN_NAMES, names);
}

@Test
Expand Down

0 comments on commit f1b2093

Please sign in to comment.