Package com.google.jstestdriver.servlet.fileset

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


    final String fileOne = "one.js";
    final String fileTwo = "two.js";

    Gson gson = new Gson();
    JstdTestCaseStore store = new JstdTestCaseStore();
    final TestCaseUpload serverFileUpload = new TestCaseUpload(store, gson);

    JstdTestCase jstdTestCase = new JstdTestCase(Lists.newArrayList(createFile(fileOne, 3), createFile(fileTwo, 1)),
        Collections.<FileInfo>emptyList(),
        Collections.<FileInfo>emptyList(), "one");
    serverFileUpload.handle(null, gson.toJson(Lists.<JstdTestCase>newArrayList(jstdTestCase)));

    assertEquals(jstdTestCase, store.getCase(jstdTestCase.getId()));
  }
View Full Code Here

TOP

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

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.