Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0FA41200B16 for ; Mon, 20 Jun 2016 10:58:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0E954160A67; Mon, 20 Jun 2016 08:58:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 07CF1160A6A for ; Mon, 20 Jun 2016 10:58:01 +0200 (CEST) Received: (qmail 56850 invoked by uid 500); 20 Jun 2016 08:58:01 -0000 Mailing-List: contact commits-help@commonsrdf.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commonsrdf.incubator.apache.org Delivered-To: mailing list commits@commonsrdf.incubator.apache.org Received: (qmail 56744 invoked by uid 99); 20 Jun 2016 08:58:01 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2016 08:58:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id B9FBD18064B for ; Mon, 20 Jun 2016 08:58:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id zKU5MQU-7Fjb for ; Mon, 20 Jun 2016 08:57:58 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 225EE60D1D for ; Mon, 20 Jun 2016 08:57:56 +0000 (UTC) Received: (qmail 55653 invoked by uid 99); 20 Jun 2016 08:57:56 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2016 08:57:56 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A136AED311; Mon, 20 Jun 2016 08:57:55 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: stain@apache.org To: commits@commonsrdf.incubator.apache.org Date: Mon, 20 Jun 2016 08:57:59 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [05/50] incubator-commonsrdf git commit: hand-coded UUIDs for testing archived-at: Mon, 20 Jun 2016 08:58:03 -0000 hand-coded UUIDs for testing Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/9f94e2fb Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/9f94e2fb Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/9f94e2fb Branch: refs/heads/parser-with-quads Commit: 9f94e2fbb69458888366458c5f84e82d934159dd Parents: a06f621 Author: Stian Soiland-Reyes Authored: Mon Apr 11 16:20:02 2016 +0100 Committer: Stian Soiland-Reyes Committed: Mon Apr 11 16:20:28 2016 +0100 ---------------------------------------------------------------------- .../apache/commons/rdf/api/AbstractGraphTest.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/9f94e2fb/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java ---------------------------------------------------------------------- diff --git a/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java b/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java index 326e2ff..5986958 100644 --- a/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java +++ b/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java @@ -372,11 +372,11 @@ public abstract class AbstractGraphTest { IRI name = factory1.createIRI("http://xmlns.com/foaf/0.1/name"); Graph g1 = factory1.createGraph(); - BlankNode b1 = createOwnBlankNode("b1"); + BlankNode b1 = createOwnBlankNode("b1", "0240eaaa-d33e-4fc0-a4f1-169d6ced3680"); g1.add(b1, name, factory1.createLiteral("Alice")); - BlankNode b2 = createOwnBlankNode("b2"); + BlankNode b2 = createOwnBlankNode("b2", "9de7db45-0ce7-4b0f-a1ce-c9680ffcfd9f"); g1.add(b2, name, factory1.createLiteral("Bob")); IRI hasChild = factory1.createIRI("http://example.com/hasChild"); @@ -394,7 +394,7 @@ public abstract class AbstractGraphTest { * @param name * @return */ - private BlankNode createOwnBlankNode(String name) { + private BlankNode createOwnBlankNode(String name, String uuid) { return new BlankNode() { @Override public String ntriplesString() { @@ -402,11 +402,11 @@ public abstract class AbstractGraphTest { } @Override public String uniqueReference() { - return "urn:uuid:" + UUID.randomUUID().toString(); + return uuid; } @Override public int hashCode() { - return uniqueReference().hashCode(); + return uuid.hashCode(); } @Override public boolean equals(Object obj) { @@ -414,7 +414,7 @@ public abstract class AbstractGraphTest { return false; } BlankNode other = (BlankNode)obj; - return uniqueReference().equals(other.uniqueReference()); + return uuid.equals(other.uniqueReference()); } }; } @@ -425,10 +425,10 @@ public abstract class AbstractGraphTest { Graph g2 = factory2.createGraph(); - BlankNode b1 = createOwnBlankNode("b1"); + BlankNode b1 = createOwnBlankNode("b1", "bc8d3e45-a08f-421d-85b3-c25b373abf87"); g2.add(b1, name, factory2.createLiteral("Charlie")); - BlankNode b2 = createOwnBlankNode("b2"); + BlankNode b2 = createOwnBlankNode("b2", "2209097a-5078-4b03-801a-6a2d2f50d739"); g2.add(b2, name, factory2.createLiteral("Dave")); IRI hasChild = factory2.createIRI("http://example.com/hasChild");