Package org.apache.kato.tck.scenario142.process

Examples of org.apache.kato.tck.scenario142.process.ProcessScenarioSetup


  private JavaruntimeScenarioSetup runtime=null;
  private ProcessScenarioSetup process=null;
 
  public ScenarioLauncher142() {
    runtime=new JavaruntimeScenarioSetup();
    process=new ProcessScenarioSetup();
  }
View Full Code Here


            id = field.getString(monitorObjectCandidate);
          }

          if (id != null) {

            MonitorThreadConfig config = setup.findMonitorThreadConfig(id);

            if (config != null) {
              config.setMonitor(monitorCandidate);
            }
          }
        }
      }
    }
View Full Code Here

      }
      JavaReference r = (JavaReference)next;
      try {
        Object root = r.getTarget();
        int type = r.getRootType();
        HeapRoot rootObject = new HeapRoot(root, type);
        rootsCheckList.put(rootObject, Boolean.FALSE);
        //System.out.println("Adding " + rootObject + " to rootCheckList" );
      } catch (DataUnavailable du) {
      } catch (CorruptDataException cde) {
        assertNotNull(cde.getCorruptData());
View Full Code Here

    while (i.hasNext()) {
      Object next = i.next();
      if (!(next instanceof HeapRoot)) {
        continue;
      }
      HeapRoot rootObject = (HeapRoot)next;
      Object root = rootObject.getRoot();
      int rootType = rootObject.getType();
      if (type != 0 && type != rootType) {
        continue;
      }
      try {
        if (root instanceof JavaObject) {
View Full Code Here

  public void testStringTableRoot() {
    if (rootsCheckList == null) {
      rootsCheckList = getRootsCheckList();
    }
    HeapRoot[] roots = searchRootByClassName(rootsCheckList, "", JavaReference.HEAP_ROOT_STRINGTABLE);
    HeapRoot currentRoot = null;
   
    JavaField countField = null;
    JavaField valueField = null;
    Iterator fields = javaLangString.getDeclaredFields().iterator();
    while (fields.hasNext()) {
      Object next = fields.next();
      if (next instanceof JavaField) {
        JavaField field = (JavaField) next;
        try {
          if (field.getName().equals("value")) {
            valueField = field;
          } else if (field.getName().equals("count")) {
            countField = field;
          }
        } catch (CorruptDataException e) {
          assertNotNull(e.getCorruptData());
        }
      }
    }
   
    boolean found = false;
    for (int i=0; i<roots.length; i++) {
      currentRoot = roots[i];
      Object rootObject = currentRoot.getRoot();
      if (!(rootObject instanceof JavaObject)) {
        continue;
      }
      JavaObject root = (JavaObject)rootObject;
     
View Full Code Here

      }
      JavaReference r = (JavaReference)next;
      try {
        Object root = r.getTarget();
        int type = r.getRootType();
        HeapRoot rootObject = new HeapRoot(root, type);
        rootsCheckList.put(rootObject, Boolean.FALSE);
        //System.out.println("Adding " + rootObject + " to rootCheckList" );
      } catch (DataUnavailable du) {
      } catch (CorruptDataException cde) {
        assertNotNull(cde.getCorruptData());
View Full Code Here

          || systemClassName.equals("int")
          || systemClassName.equals("long")
          || systemClassName.equals("float")
          || systemClassName.equals("double")))
      {
        Object rootClass = rootsCheckList.get(new HeapRoot(systemClass,JavaReference.HEAP_ROOT_SYSTEM_CLASS));
        if (rootClass == null) {
          System.out.println("Found a class loaded by the system classloader which is NOT a root:" + systemClassName);
          passed = false;
        } else {
          //System.out.println("Found root object for system class: " + systemClassName);
View Full Code Here

    while (i.hasNext()) {
      Object next = i.next();
      if (!(next instanceof HeapRoot)) {
        continue;
      }
      HeapRoot rootObject = (HeapRoot)next;
      Object root = rootObject.getRoot();
      int rootType = rootObject.getType();
      if (type != 0 && type != rootType) {
        continue;
      }
      try {
        if (root instanceof JavaObject) {
View Full Code Here

  private JavaruntimeScenarioSetup runtime=null;
  private ProcessScenarioSetup process=null;
 
  public ScenarioLauncher142() {
    runtime=new JavaruntimeScenarioSetup();
    process=new ProcessScenarioSetup();
  }
View Full Code Here

TOP

Related Classes of org.apache.kato.tck.scenario142.process.ProcessScenarioSetup

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.