Exemplo n.º 1
0
  protected static WebArchive getDefaultDeployment() {
    TestContext context = TestContext.asDefault();
    context.setContextRoot(true);
    context.setWebXmlFile("mapreduce/web.xml");
    context.setAppEngineWebXmlFile("mapreduce/appengine-web.xml");

    WebArchive war = getCapedwarfDeployment(context);
    war.addClass(TestsuiteTestBase.class);
    war.addClass(MapReduceTestBase.class);

    war.addAsWebInfResource("mapreduce/queue.xml", "queue.xml");
    war.addAsWebInfResource("mapreduce/logging.properties", "logging.properties");

    LibUtils.addGaeAsLibrary(war);
    LibUtils.addLibrary(war, "com.google.appengine.tools", "appengine-mapreduce");
    LibUtils.addLibrary(war, "com.google.appengine.tools", "appengine-mapreduce");
    LibUtils.addLibrary(war, "com.google.appengine.tools", "appengine-pipeline");
    LibUtils.addLibrary(war, "com.google.appengine.tools", "appengine-gcs-client");
    LibUtils.addLibrary(war, "com.google.guava", "guava");
    LibUtils.addLibrary(war, "it.unimi.dsi", "fastutil");
    LibUtils.addLibrary(war, "com.googlecode.charts4j", "charts4j");
    LibUtils.addLibrary(war, "commons-logging", "commons-logging");
    LibUtils.addLibrary(war, "org.json", "json");

    return war;
  }
 protected static WebArchive getDefaultDeployment() {
   TestContext context = new TestContext().setCallbacks(true).setIgnoreLogging(true);
   WebArchive war = getCapedwarfDeployment(context);
   war.addClass(AbstractTest.class);
   war.addClass(AbstractCallbacksTest.class);
   war.addPackage(BarKindCallbackHandler.class.getPackage());
   LibUtils.addGaeAsLibrary(war);
   return war;
 }