commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [39/45] commons-rdf git commit: COMMONSRDF-51: Avoid wrong matches of "Hello" across tests
Date Fri, 10 Feb 2017 16:55:41 GMT
COMMONSRDF-51: Avoid wrong matches of "Hello" across tests


Project: http://git-wip-us.apache.org/repos/asf/commons-rdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rdf/commit/dc4af99f
Tree: http://git-wip-us.apache.org/repos/asf/commons-rdf/tree/dc4af99f
Diff: http://git-wip-us.apache.org/repos/asf/commons-rdf/diff/dc4af99f

Branch: refs/heads/COMMONSRDF-47
Commit: dc4af99f2d18fd90993c3b040addcc5aaf98cb5b
Parents: 944188b
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Wed Feb 8 14:57:45 2017 +0000
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Wed Feb 8 14:58:04 2017 +0000

----------------------------------------------------------------------
 .../commons/rdf/api/AbstractDatasetTest.java      | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/dc4af99f/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java
----------------------------------------------------------------------
diff --git a/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java b/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java
index 71f2415..ab3dc32 100644
--- a/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java
+++ b/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java
@@ -592,9 +592,9 @@ public abstract class AbstractDatasetTest {
     public void containsLanguageTagsCaseInsensitive() {
         // COMMONSRDF-51: Ensure we can add/contains/remove with any casing
         // of literal language tag
-        final Literal lower = factory.createLiteral("Hello", "en-gb");
-        final Literal upper = factory.createLiteral("Hello", "EN-GB");
-        final Literal mixed = factory.createLiteral("Hello", "en-GB");
+        final Literal lower = factory.createLiteral("Hello there", "en-gb");
+        final Literal upper = factory.createLiteral("Hello there", "EN-GB");
+        final Literal mixed = factory.createLiteral("Hello there", "en-GB");
 
         final IRI example1 = factory.createIRI("http://example.com/s1");
         final IRI greeting = factory.createIRI("http://example.com/greeting");
@@ -676,9 +676,9 @@ public abstract class AbstractDatasetTest {
     public void removeLanguageTagsCaseInsensitive() {
         // COMMONSRDF-51: Ensure we can remove with any casing
         // of literal language tag
-        final Literal lower = factory.createLiteral("Hello", "en-gb");
-        final Literal upper = factory.createLiteral("Hello", "EN-GB");
-        final Literal mixed = factory.createLiteral("Hello", "en-GB");
+        final Literal lower = factory.createLiteral("Howdy", "en-us");
+        final Literal upper = factory.createLiteral("Howdy", "EN-US");
+        final Literal mixed = factory.createLiteral("Howdy", "en-US");
 
         final IRI example1 = factory.createIRI("http://example.com/s1");
         final IRI greeting = factory.createIRI("http://example.com/greeting");
@@ -708,9 +708,9 @@ public abstract class AbstractDatasetTest {
     public void streamLanguageTagsCaseInsensitive() {
         // COMMONSRDF-51: Ensure we can add/contains/remove with any casing
         // of literal language tag
-        final Literal lower = factory.createLiteral("Hello", "en-gb");
-        final Literal upper = factory.createLiteral("Hello", "EN-GB");
-        final Literal mixed = factory.createLiteral("Hello", "en-GB");
+        final Literal lower = factory.createLiteral("Good afternoon", "en-gb");
+        final Literal upper = factory.createLiteral("Good afternoon", "EN-GB");
+        final Literal mixed = factory.createLiteral("Good afternoon", "en-GB");
 
         final IRI example1 = factory.createIRI("http://example.com/s1");
         final IRI greeting = factory.createIRI("http://example.com/greeting");


Mime
View raw message