diff options
author | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-08-24 16:05:47 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@yahoo-inc.com> | 2016-08-24 16:05:47 +0200 |
commit | 6927d36e1c64472df74e741f22f1ccaf150076fa (patch) | |
tree | 1e7accc0834a5fe8f870f81547be9ee413a08d57 /container-core/src/test | |
parent | 263b227a3f329e7e189ca7ae2dd9fdf0dd1b866a (diff) |
Nonfunctional changes only
Diffstat (limited to 'container-core/src/test')
-rw-r--r-- | container-core/src/test/java/com/yahoo/container/jdisc/state/MetricSnapshotTest.java | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/container-core/src/test/java/com/yahoo/container/jdisc/state/MetricSnapshotTest.java b/container-core/src/test/java/com/yahoo/container/jdisc/state/MetricSnapshotTest.java index fb48b4455b5..23f0ca41f53 100644 --- a/container-core/src/test/java/com/yahoo/container/jdisc/state/MetricSnapshotTest.java +++ b/container-core/src/test/java/com/yahoo/container/jdisc/state/MetricSnapshotTest.java @@ -20,7 +20,7 @@ public class MetricSnapshotTest { */ @Test public void emptyMetricSetNotAddedToClonedSnapshot() { - final StateMetricContext ctx = StateMetricContext.newInstance(null); + StateMetricContext ctx = StateMetricContext.newInstance(null); MetricSnapshot snapshot = new MetricSnapshot(); snapshot.add(ctx, "foo", 1234); MetricSnapshot newSnapshot = snapshot.createSnapshot(); @@ -33,30 +33,4 @@ public class MetricSnapshotTest { assertEquals(Collections.unmodifiableMap(new HashMap(0)), Collections.emptyMap()); } - @Test - public void testLookup() { - Map<Key, String> map = new HashMap<>(); - map.put(new Key(), "a"); - System.out.println("Lookup value after putting a: " + map.get(new Key())); - map.put(new Key(), "b"); - System.out.println("Map content after putting b: "); - for (Map.Entry<Key, String> entry : map.entrySet()) - System.out.println(" " + entry); - } - - public static class Key { - - @Override - public int hashCode() { - return 1; - } - - @Override - public boolean equals(Object other) { - if (this == other) return true; - return false; - } - - } - } |