diff options
Diffstat (limited to 'tools/ahat/test/DiffTest.java')
-rw-r--r-- | tools/ahat/test/DiffTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/ahat/test/DiffTest.java b/tools/ahat/test/DiffTest.java index d0349fd178..cfd0236ab3 100644 --- a/tools/ahat/test/DiffTest.java +++ b/tools/ahat/test/DiffTest.java @@ -93,6 +93,13 @@ public class DiffTest { } @Test + public void diffClassRemoved() throws IOException { + TestDump dump = TestDump.getTestDump("O.hprof", "L.hprof", null); + AhatHandler handler = new ObjectsHandler(dump.getAhatSnapshot()); + TestHandler.testNoCrash(handler, "http://localhost:7100/objects?class=java.lang.Class"); + } + + @Test public void nullClassObj() throws IOException { // Set up a heap dump that has a null classObj. // The heap dump is derived from the InstanceTest.asStringEmbedded test. |