You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by sp...@apache.org on 2009/05/11 07:54:20 UTC

svn commit: r773492 - /incubator/kato/trunk/KatoHProfAdapterPOC/testsrc/test/apache/kato/hprof/TestJavaHeap.java

Author: spoole
Date: Mon May 11 07:54:20 2009
New Revision: 773492

URL: http://svn.apache.org/viewvc?rev=773492&view=rev
Log:
small modification to testcase in kato hprof adapter poc to get it to compile

Modified:
    incubator/kato/trunk/KatoHProfAdapterPOC/testsrc/test/apache/kato/hprof/TestJavaHeap.java

Modified: incubator/kato/trunk/KatoHProfAdapterPOC/testsrc/test/apache/kato/hprof/TestJavaHeap.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/KatoHProfAdapterPOC/testsrc/test/apache/kato/hprof/TestJavaHeap.java?rev=773492&r1=773491&r2=773492&view=diff
==============================================================================
--- incubator/kato/trunk/KatoHProfAdapterPOC/testsrc/test/apache/kato/hprof/TestJavaHeap.java (original)
+++ incubator/kato/trunk/KatoHProfAdapterPOC/testsrc/test/apache/kato/hprof/TestJavaHeap.java Mon May 11 07:54:20 2009
@@ -17,6 +17,8 @@
 
 import org.apache.kato.hprof.HProfView;
 import org.apache.kato.hprof.java.JavaHeapImpl;
+import org.apache.kato.hprof.java.JavaRuntimeImpl;
+import org.apache.kato.java.JavaRuntime;
 
 import test.apache.kato.hprof.image.AbstractHProfTestCase;
 
@@ -35,10 +37,11 @@
 	public void testBadHeapRecordIDConstructor() throws IOException {
 		
 		
-		HProfView view=getMinimalHProfView();
+		getMinimalImage();
+		JavaRuntimeImpl rt= (JavaRuntimeImpl) getJavaRuntime();
 		
 		try {
-		JavaHeapImpl impl=new JavaHeapImpl(view,0);
+		JavaHeapImpl impl=new JavaHeapImpl(rt,0);
 		fail("expected illegal argument exception");
 		}
 		catch(IllegalArgumentException iae) {