Package com.google.jstestdriver.servlet.fileset

Examples of com.google.jstestdriver.servlet.fileset.BrowserFileCheck


            RunnerType.CLIENT, BrowserState.CAPTURED, new Instant(0));
    browser.addFiles(Lists.newArrayList(createFile(fileOne, 1), createFile(fileTwo, 1),
        createFile(fileThree, 1)), new LoadedFiles());
    browsers.addSlave(browser);
    Gson gson = new Gson();
    final BrowserFileCheck browserFileCheck = new BrowserFileCheck(gson);

    JstdTestCase testCaseToRun =
        new JstdTestCase(Lists.newArrayList(createFile(fileOne, 3), createFile(fileTwo, 1)),
            Collections.<FileInfo>emptyList(), Collections.<FileInfo>emptyList(), "one");

    assertEquals(
        new BrowserFileSet(Lists.newArrayList(createFile(fileOne, 3)),
            Lists.newArrayList(createFile(fileThree, 3)), false),
            browserFileCheck.handle(browser, gson.toJson(testCaseToRun)));
  }
View Full Code Here

TOP

Related Classes of com.google.jstestdriver.servlet.fileset.BrowserFileCheck

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.