Examples of JavaRuntime


Examples of javax.tools.diagnostics.runtime.java.JavaRuntime

   
  }
 
  public void testVersionNotNull() {
   
    JavaRuntime runtime=getJavaRuntime();
    try {
    String version=runtime.getVersion();
    assertNotNull(version);
    } catch(CorruptDataException cde) {
      // allowed under legacy spec - pass test
    }
   
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaRuntime

   
  }
 
  public void testCompiledMethodsNotNull() {
   
    JavaRuntime runtime=getJavaRuntime();
   
    List<JavaMethod> data=runtime.getCompiledMethods();
    assertNotNull(data);
   
  }
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaRuntime

   
  }
 
  public void testHeapRootsNotNull() {
   
    JavaRuntime runtime=getJavaRuntime();
   
    List<JavaReference> data=runtime.getHeapRoots();
    assertNotNull(data);
   
  }
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaRuntime

   
  }

  public void testHeapsNotNull() {
   
    JavaRuntime runtime=getJavaRuntime();
   
    List<JavaHeap> data=runtime.getHeaps();
    assertNotNull(data);
   
  }
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaRuntime

    assertNotNull(data);
   
  }
public void testClassLoadersNotNull() {
   
    JavaRuntime runtime=getJavaRuntime();
   
    List<JavaClassLoader> data=runtime.getJavaClassLoaders();
    assertNotNull(data);
   
  }
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaRuntime

   
  }

public void testJavaVMNotNull() {
 
  JavaRuntime runtime=getJavaRuntime();
 
 
  try {
    ImagePointer data = runtime.getJavaVM();
    assertNotNull(data);
  } catch (CorruptDataException e) {
    // allowed under spec
  }
 
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaRuntime

 
}

public void testJavaVMArgsNotNull() {
 
  JavaRuntime runtime=getJavaRuntime();
 
 
  try {
    JavaVMInitArgs data = runtime.getJavaVMInitArgs();
    assertNotNull(data);
  } catch (CorruptDataException e) {
    // allowed under spec
  } catch (DataUnavailable e) {
    // allowed under spec
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaRuntime

 
}

public void testMonitorsNotNull() {
 
  JavaRuntime runtime=getJavaRuntime();
 
  List<JavaMonitor> data=runtime.getMonitors();
  assertNotNull(data);
 
}
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaRuntime

 
}

public void testObjectAtAddress() {
 
  JavaRuntime runtime=getJavaRuntime();
 
 
  try {
    JavaObject data = runtime.getObjectAtAddress(null);
    fail("expected to receive an IllegalArgumentException");
  } catch (CorruptDataException e) {
    // allowed under spec but not expected for a null ptr
    fail("expected to receive an IllegalArgumentException not a CorruptDataException");
  } catch (DataUnavailable e) {
View Full Code Here

Examples of javax.tools.diagnostics.runtime.java.JavaRuntime

 
 
}

public void testGetSourceIsNotNull() {
  JavaRuntime runtime=getJavaRuntime();
 
  File data=runtime.getSource();
  assertNotNull(data);
 
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.