Package ch.qos.mistletoe.core

Examples of ch.qos.mistletoe.core.MistletoeCore


    trp.printFooter();
    out.close();
  }

  TestReport run(PrintWriter out, String targetClassStr) {
    MistletoeCore mCore = null;
    try {
      mCore = new MistletoeCore(targetClassStr);
    } catch (ClassNotFoundException e) {
      out.print("Failed to load class [" + targetClassStr+"]");
      return null;
    }

    TestReport rootReport = mCore.run();
    rootReport = TestReport.getFistChildIfNecessary(rootReport);
    return rootReport;
  }
View Full Code Here


  @SuppressWarnings("unchecked")
  @Override
  protected void onSubmit() {
    TextField<String> tf = (TextField<String>) get(Constants.TEST_CLASS_NAME_ID);
    String targetClassStr = (String) tf.getDefaultModelObject();
    MistletoeCore mCore = null;
    try {
      mCore = new MistletoeCore(targetClassStr);
    } catch (ClassNotFoundException e) {
      error("Failed to find class " + targetClassStr);
      return;
    }

    TestReport rootReport = mCore.run();
    rootReport = TestReport.getFistChildIfNecessary(rootReport);
    TestReportPanel nodePanel = new TestReportPanel(Constants.NODE_ID,
        rootReport);
    parent.remove(Constants.NODE_ID);
    parent.add(nodePanel);
View Full Code Here

TOP

Related Classes of ch.qos.mistletoe.core.MistletoeCore

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.