Implement equals() & hashCode() in MockServerContainerContextCustomizer

Issue: SPR-14367
This commit is contained in:
Sam Brannen 2016-06-23 13:22:10 +02:00
parent f7dd757593
commit 3dbf25e018
1 changed files with 16 additions and 0 deletions

View File

@ -39,4 +39,20 @@ class MockServerContainerContextCustomizer implements ContextCustomizer {
}
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null || this.getClass() != that.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return getClass().hashCode();
}
}