Skip to content

Commit

Permalink
Modified toString and name methods for both EppRequestmessage and Epp…
Browse files Browse the repository at this point in the history
…ResponseMessage
  • Loading branch information
Sanger2000 committed Aug 9, 2019
1 parent 69c5110 commit 081e20d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 16 deletions.
Expand Up @@ -225,7 +225,7 @@ public EppRequestMessage modifyMessage(String... args) throws EppClientException

@Override
public String toString() {
return "Login Action expecting response: " + expectedResponse.toString();
return "Login Action expecting response: " + expectedResponse.name();
}
}

Expand All @@ -251,7 +251,7 @@ public Check(EppResponseMessage response) {

@Override
public String toString() {
return "Check Action expecting response: " + expectedResponse.toString();
return "Check Action expecting response: " + expectedResponse.name();
}
}

Expand All @@ -277,7 +277,7 @@ public Create(EppResponseMessage response) {

@Override
public String toString() {
return "Create Action expecting response: " + expectedResponse.toString();
return "Create Action expecting response: " + expectedResponse.name();
}
}

Expand All @@ -304,7 +304,7 @@ public Delete(EppResponseMessage response) {

@Override
public String toString() {
return "Delete Action expecting response: " + expectedResponse.toString();
return "Delete Action expecting response: " + expectedResponse.name();
}
}

Expand Down
Expand Up @@ -62,10 +62,7 @@ void updateInformation(String expectedClTRID, String expectedDomainName) {
this.expectedDomainName = expectedDomainName;
}

@Override
public String toString() {
return "Failure";
}
public abstract String name();

/**
* {@link EppResponseMessage} subclass that represents basic successful response containing only
Expand Down Expand Up @@ -94,8 +91,7 @@ public void verify() throws FailureException {
true);
}

@Override
public String toString() {
public String name() {
return "Success";
}
}
Expand Down Expand Up @@ -127,8 +123,7 @@ public void verify() throws FailureException {
true);
}

@Override
public String toString() {
public String name() {
return "Domain exists";
}
}
Expand Down Expand Up @@ -160,8 +155,7 @@ public void verify() throws FailureException {
true);
}

@Override
public String toString() {
public String name() {
return "Domain does not exist";
}
}
Expand Down Expand Up @@ -189,8 +183,7 @@ public void verify() throws FailureException {
true);
}

@Override
public String toString() {
public String name() {
return "Greeting";
}
}
Expand Down Expand Up @@ -221,5 +214,9 @@ public void verify() throws FailureException {
XFAIL_EXPRESSION),
true);
}

public String name() {
return "Failure";
}
}
}

0 comments on commit 081e20d

Please sign in to comment.