Package com.google.jstestdriver.model

Examples of com.google.jstestdriver.model.JstdTestCaseDelta


   * loaded.
   */
  public JstdTestCaseDelta addCase(JstdTestCase testCase) {
    JstdTestCase updatedTestCase;
    synchronized (files) {
      updatedTestCase = testCase.applyDelta(new JstdTestCaseDelta(
          updateCache(testCase.getDependencies()),
          updateCache(testCase.getTests()),
          updateCache(testCase.getPlugins())));
    }
    logger.info("adding TestCase {} to {}", testCase.getId(), this);
View Full Code Here


    FileInfo one = new FileInfo("foo.js", 1, -1, false, false, null, "foo.js");
    JstdTestCaseStore store = new JstdTestCaseStore();
    JstdTestCase testCaseOne =
      new JstdTestCase(Lists.<FileInfo>newArrayList(), Lists.<FileInfo>newArrayList(one),
          Lists.<FileInfo>newArrayList(), testCaseIdOne);
    JstdTestCaseDelta unloadedDelta = store.addCase(testCaseOne);

    store.applyDelta(new JstdTestCaseDelta(
        Lists.<FileInfo>newArrayList(),
        Lists.<FileInfo>newArrayList(one.load(contents, 1)),
        Lists.<FileInfo>newArrayList()));

    assertEquals("The data will be updated for test case one", contents,
View Full Code Here

   * loaded.
   */
  public JstdTestCaseDelta addCase(JstdTestCase testCase) {
    JstdTestCase updatedTestCase;
    synchronized (files) {
      updatedTestCase = testCase.applyDelta(new JstdTestCaseDelta(
          updateCache(testCase.getDependencies()),
          updateCache(testCase.getTests()),
          updateCache(testCase.getPlugins())));
    }
    logger.info("adding TestCase {} to {}", testCase.getId(), this);
View Full Code Here

TOP

Related Classes of com.google.jstestdriver.model.JstdTestCaseDelta

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.