提交 a468a417 authored 作者: Thomas Mueller's avatar Thomas Mueller

Add metrics

上级 2994738e
...@@ -122,7 +122,7 @@ public class TestCacheLongKeyLIRS extends TestBase { ...@@ -122,7 +122,7 @@ public class TestCacheLongKeyLIRS extends TestBase {
for (int i = 0; i < elements - 1; i++) { for (int i = 0; i < elements - 1; i++) {
test.put(i, i * 10); test.put(i, i * 10);
} }
assertTrue(test.sizeMapArray() + "<" + expectedMapSize, assertTrue(test.sizeMapArray() + "<" + expectedMapSize,
test.sizeMapArray() < expectedMapSize); test.sizeMapArray() < expectedMapSize);
test = createCache(elements); test = createCache(elements);
for (int i = 0; i < elements + 1; i++) { for (int i = 0; i < elements + 1; i++) {
...@@ -133,7 +133,7 @@ public class TestCacheLongKeyLIRS extends TestBase { ...@@ -133,7 +133,7 @@ public class TestCacheLongKeyLIRS extends TestBase {
for (int i = 0; i < elements * 2; i++) { for (int i = 0; i < elements * 2; i++) {
test.put(i, i * 10); test.put(i, i * 10);
} }
assertTrue(test.sizeMapArray() + ">" + expectedMapSize, assertTrue(test.sizeMapArray() + ">" + expectedMapSize,
test.sizeMapArray() > expectedMapSize); test.sizeMapArray() > expectedMapSize);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论