From 07c80181d65d82698adbbaef820c0162a27b2227 Mon Sep 17 00:00:00 2001 From: slaws Date: Wed, 5 Aug 2009 12:01:22 +0000 Subject: Provide mechanism of printing out the endpoint without the hash code to make test comparison easy git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@801150 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tuscany/sca/assembly/impl/EndpointImpl.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'java/sca/modules') diff --git a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java index 71b73e37fd..1c54a55b8d 100644 --- a/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java +++ b/java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java @@ -141,9 +141,9 @@ public class EndpointImpl implements Endpoint { public void setExtensionType(ExtensionType type) { throw new UnsupportedOperationException(); } - - public String toString() { - String output = "Endpoint(@" + this.hashCode() + "): "; + + public String toStringWithoutHash() { + String output = "Endpoint: "; if (getURI() != null) { output += " URI = " + getURI(); @@ -156,6 +156,10 @@ public class EndpointImpl implements Endpoint { return output; } + public String toString() { + return "(@" + this.hashCode() + ")" + toStringWithoutHash(); + } + public String getURI() { if (uri == null) { if (component != null && service != null && binding != null) { -- cgit v1.2.3