use of co.cask.http.BasicHandlerContext in project cdap by caskdata.
the class ExplodeJarHttpHandlerTest method init.
@BeforeClass
public static void init() throws Exception {
URL jarUrl = ExplodeJarHttpHandlerTest.class.getResource("/CountRandomWebapp-localhost.jar");
Assert.assertNotNull(jarUrl);
jarHttpHandler = new ExplodeJarHttpHandler(new LocalLocationFactory().create(jarUrl.toURI()));
jarHttpHandler.init(new BasicHandlerContext(null));
}
use of co.cask.http.BasicHandlerContext in project cdap by caskdata.
the class IntactJarHttpHandlerTest method init.
@BeforeClass
public static void init() throws Exception {
URL jarUrl = IntactJarHttpHandlerTest.class.getResource("/CountRandomWebapp-localhost.jar");
Assert.assertNotNull(jarUrl);
jarHttpHandler = new IntactJarHttpHandler(new LocalLocationFactory().create(jarUrl.toURI()));
jarHttpHandler.init(new BasicHandlerContext(null));
}
Aggregations