summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/assembly
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-08-05 12:01:22 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2009-08-05 12:01:22 +0000
commit07c80181d65d82698adbbaef820c0162a27b2227 (patch)
treeda1b6e01797899aa44489c5bf491e55cc07532f6 /java/sca/modules/assembly
parente0c3867e5b7d5a0df0d88f7607945fcb0ff28a45 (diff)
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
Diffstat (limited to 'java/sca/modules/assembly')
-rw-r--r--java/sca/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/EndpointImpl.java10
1 files changed, 7 insertions, 3 deletions
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) {