diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-06 09:55:15 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2009-08-06 09:55:15 +0000 |
commit | 089673cc52939ba401f2ee49a3114b8653dc4db5 (patch) | |
tree | b6b914348b83b528474662d3234e142e93265aba /java/sca/modules | |
parent | 00892d23dceafdb6919fc8c1aa865b6efda30d3d (diff) |
Provide mechanism of printing out the endpoint reference without the hash code to make test comparison easy
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@801585 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules')
-rw-r--r-- | java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java index 71f0a8f10a..4c02be42dd 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointReferenceImpl.java @@ -163,9 +163,9 @@ public class EndpointReferenceImpl implements EndpointReference { this.callbackEndpoint = callbackEndpoint; reset(); } - - public String toString() { - String output = "EndpointReference(@" + this.hashCode() + "): "; + + public String toStringWithoutHash() { + String output = "EndpointReference: "; if (getURI() != null) { output += " URI = " + getURI(); @@ -196,6 +196,10 @@ public class EndpointReferenceImpl implements EndpointReference { return output; } + public String toString() { + return "(@" + this.hashCode() + ")" + toStringWithoutHash(); + } + public String getURI() { if (uri == null) { if (component != null && reference != null && binding != null) { |