diff --git a/tests/org.eclipse.epsilon.emc.rdf.tests/src/org/eclipse/epsilon/emc/rdf/RDFModelLanguageTagsTest.java b/tests/org.eclipse.epsilon.emc.rdf.tests/src/org/eclipse/epsilon/emc/rdf/RDFModelLanguageTagsTest.java index 5edf0be..0689144 100644 --- a/tests/org.eclipse.epsilon.emc.rdf.tests/src/org/eclipse/epsilon/emc/rdf/RDFModelLanguageTagsTest.java +++ b/tests/org.eclipse.epsilon.emc.rdf.tests/src/org/eclipse/epsilon/emc/rdf/RDFModelLanguageTagsTest.java @@ -134,7 +134,7 @@ public void getNamesWithoutPrefixUsingPreferredLanguageTagEN() throws Exception setupModel(LANGUAGE_PREFERENCE_EN_STRING); RDFResource res = (RDFResource) model.getElementById(SPIDERMAN_URI); Set names = new HashSet<>((Collection) pGetter.invoke(res, "name", context)); - assertEquals(Collections.singleton(SPIDERMAN_NAME), names); + assertEquals("Should return all when language preference cant be matched",SPIDERMAN_NAMES, names); } @Test @@ -142,7 +142,7 @@ public void getNamesWithPrefixUsingPreferredLanguageTagEN() throws Exception { setupModel(LANGUAGE_PREFERENCE_EN_STRING); RDFResource res = (RDFResource) model.getElementById(SPIDERMAN_URI); Set names = new HashSet<>((Collection) pGetter.invoke(res, "foaf:name", context)); - assertEquals(Collections.singleton(SPIDERMAN_NAME), names); + assertEquals("Should return all when language preference cant be matched",SPIDERMAN_NAMES, names); } @Test @@ -153,7 +153,7 @@ public void getNameLiteralWithPrefixUsingPreferredLanguageTagEN() throws Excepti for (RDFLiteral l : (Collection) pGetter.invoke(res, "foaf:name_literal", context)) { names.add((String) l.getValue()); } - assertEquals(Collections.singleton(SPIDERMAN_NAME), names); + assertEquals("Should return all when language preference cant be matched",SPIDERMAN_NAMES, names); } @Test @@ -164,7 +164,7 @@ public void getNameLiteralWithoutPrefixUsingPreferredLanguageTagEN() throws Exce for (RDFLiteral l : (Collection) pGetter.invoke(res, "name_literal", context)) { names.add((String) l.getValue()); } - assertEquals(Collections.singleton(SPIDERMAN_NAME), names); + assertEquals("Should return all when language preference cant be matched",SPIDERMAN_NAMES, names); }