incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r773492 - /incubator/kato/trunk/KatoHProfAdapterPOC/testsrc/test/apache/kato/hprof/TestJavaHeap.java
Date Mon, 11 May 2009 07:54:20 GMT
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) {



Mime
View raw message