Package com.google.jstestdriver.servlet.fileset

Examples of com.google.jstestdriver.servlet.fileset.TestCaseUpload.handle()


    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
Copyright © 2018 www.massapi.com. 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.