Package javax.tools.diagnostics.runtime.java

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


*/
public class TestJavaClassLoaders  extends TCKJavaRuntimeTestcase {

 
  public void testClassLoaders() {
    JavaRuntime runtime=getJavaRuntime();
   
    List<JavaClassLoader> loaders=runtime.getJavaClassLoaders();
   
    if(loaders.isEmpty()) return; // no threads to test
   
    int counter=0;
   
View Full Code Here


*/
public class TestCompiledMethods  extends TCKJavaRuntimeTestcase {

 
  public void testMethods() {
    JavaRuntime runtime=getJavaRuntime();
    List<JavaMethod> methods=runtime.getCompiledMethods();
    if(methods.isEmpty()) return; // no threads to test
   
    int counter=0;
   
    for(JavaMethod m:methods) {
View Full Code Here

*/
public class TestJavaHeaps  extends TCKJavaRuntimeTestcase {

 
  public void testJavaHeaps() {
    JavaRuntime runtime=getJavaRuntime();
   
    List<JavaHeap> heaps=runtime.getHeaps();
   
    if(heaps.isEmpty()) return; // no heaps to test
   
    int counter=0;
   
View Full Code Here

*/
public class TestJavaThread  extends TCKJavaRuntimeTestcase {

 
  public void testThreads() {
    JavaRuntime runtime=getJavaRuntime();
    List<JavaThread> threads=runtime.getThreads();
    if(threads.isEmpty()) return; // no threads to test
   
    int counter=0;
   
    for(JavaThread t:threads) {
View Full Code Here

*/
public class TestJavaObjects  extends TCKJavaRuntimeTestcase {

 
  public void testJavaObjects() {
    JavaRuntime runtime=getJavaRuntime();
   
    List<JavaHeap> heaps=runtime.getHeaps();
   
    if(heaps.isEmpty()) return; // no heaps to test
   
    int counter=0;
   
View Full Code Here

   */
  public void testJavaHeap_getName()
  {
    boolean foundHeaps = false;

    JavaRuntime runtime=getJavaRuntime();

    Iterator heaps = runtime.getHeaps().iterator();

    while (heaps.hasNext()) {
      Object nextHeap = heaps.next();
      if (nextHeap instanceof CorruptData) {
        System.err.println("returned CorruptData `" + nextHeap + "'");
View Full Code Here

   *
   */
 
  public void testHasThreads() {
   
    JavaRuntime runtime=getJavaRuntime();
    Iterator threadIterator=runtime.getThreads().iterator();
    assertNotNull(threadIterator);
    assertTrue(threadIterator.hasNext());
   
   
  }
View Full Code Here

   
   
  }

  private List getThreads() {
    JavaRuntime runtime=getJavaRuntime();
    Iterator threadIterator=runtime.getThreads().iterator();
    
    List allThreads=new LinkedList();
   
    while(threadIterator.hasNext()) {
      JavaThread thread=(JavaThread) threadIterator.next();
View Full Code Here

import org.apache.kato.tck.harness.TCKJavaRuntimeTestcase;


public class TestJavaRuntime_getCompiledMethods extends TCKJavaRuntimeTestcase {
  public void testHasCompiledMethods() {
    JavaRuntime runtime=getJavaRuntime();
    Iterator compiledMethods=runtime.getCompiledMethods().iterator();
    assertNotNull(compiledMethods);
    assertTrue(compiledMethods.hasNext());
  }
View Full Code Here

    assertNotNull(compiledMethods);
    assertTrue(compiledMethods.hasNext());
  }
 
  public void testConfiguredCompiledMethods() {
    JavaRuntime runtime=getJavaRuntime();
    Iterator compiledMethods=runtime.getCompiledMethods().iterator();
    boolean found = false;
    while (compiledMethods.hasNext() && !found) {
      Object next = compiledMethods.next();
      if (!(next instanceof JavaMethod)) {
        continue;
View Full Code Here

TOP

Related Classes of javax.tools.diagnostics.runtime.java.JavaRuntime

Copyright © 2018 www.massapicom. 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.