summaryrefslogtreecommitdiffstats
path: root/jrt/tests
diff options
context:
space:
mode:
Diffstat (limited to 'jrt/tests')
-rw-r--r--jrt/tests/com/yahoo/jrt/SlobrokTest.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/jrt/tests/com/yahoo/jrt/SlobrokTest.java b/jrt/tests/com/yahoo/jrt/SlobrokTest.java
index 20266b0826a..552780dd0fd 100644
--- a/jrt/tests/com/yahoo/jrt/SlobrokTest.java
+++ b/jrt/tests/com/yahoo/jrt/SlobrokTest.java
@@ -88,14 +88,14 @@ public class SlobrokTest {
err(" { EMPTY }");
}
for (Entry e : actual) {
- err(" {" + e.getName() + ", " + e.getSpec() + "}");
+ err(" {" + e.getName() + ", " + e.getSpecString() + "}");
}
err("expected values:");
if (expect.isEmpty()) {
err(" { EMPTY }");
}
for (Entry e : expect) {
- err(" {" + e.getName() + ", " + e.getSpec() + "}");
+ err(" {" + e.getName() + ", " + e.getSpecString() + "}");
}
}
@@ -119,9 +119,7 @@ public class SlobrokTest {
assertFalse(one.equals(null));
assertFalse(one.equals(register));
assertTrue(one.getName().equals(wantName));
- assertTrue(one.getSpec().equals(mySpec));
- int wantHC = mySpec.hashCode() + wantName.hashCode();
- assertTrue(one.hashCode() == wantHC);
+ assertTrue(one.getSpecString().equals(mySpec));
register.registerName("B/x");
check("B/x", new SpecList().add("B/x", mySpec));