Skip to content

Commit

Permalink
Fixed JUnit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
trifonnt committed Dec 4, 2017
1 parent b930759 commit 1f8b4a7
Showing 1 changed file with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,34 @@ public static String quoteAttributeValue(String s) {

protected static class RequestType implements MwsRequestType {

private final String operationName;
// @Trifon-BEGIN
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((operationName == null) ? 0 : operationName.hashCode());
return result;
}

@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
RequestType other = (RequestType) obj;
if (operationName == null) {
if (other.operationName != null)
return false;
} else if (!operationName.equals(other.operationName))
return false;
return true;
}
// @Trifon-END

private final String operationName;
private final Class<? extends MWSResponse> responseClass;
private final String servicePath;

Expand Down

0 comments on commit 1f8b4a7

Please sign in to comment.