Package com.google.eclipse.javascript.jstestdriver.core.model

Examples of com.google.eclipse.javascript.jstestdriver.core.model.EclipseJstdTestCaseResult


  TestResult failed3 = new TestResult(null, "failed", "", "", "testcase", "test5", 5f);
  TestResult error1 = new TestResult(null, "error", "", "", "testcase1", "test6", 6f);
  TestResult error2 = new TestResult(null, "error", "", "", "testcase", "test7", 7f);

  public void testDidPass() throws Exception {
    ResultModel model = new EclipseJstdTestCaseResult(null, "testcase");
   
    assertTrue(model.passed());
    model.addTestResult(passing1);
    assertTrue(model.passed());
    model.addTestResult(passing2);
    assertTrue(model.passed());
    model.addTestResult(failed1);
    assertFalse(model.passed());
    model.addTestResult(failed2);
    assertFalse(model.passed());
  }
View Full Code Here


    model.addTestResult(failed2);
    assertFalse(model.passed());
  }
 
  public void testHasChildren() throws Exception {
    ResultModel model = new EclipseJstdTestCaseResult(null, "testcase");
   
    assertFalse(model.hasChildren());
    model.addTestResult(passing1);
    assertTrue(model.hasChildren());
    model.addTestResult(failed1);
    assertTrue(model.hasChildren());
  }
View Full Code Here

TOP

Related Classes of com.google.eclipse.javascript.jstestdriver.core.model.EclipseJstdTestCaseResult

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.