use of org.datanucleus.api.rest.RestServlet in project tests by datanucleus.
the class BasicTest method setUp.
protected void setUp() throws Exception {
LOG.info("********** " + toString() + " [setUp] **********");
super.setUp();
server = new Server(PORT);
Context root = new Context(server, "/", Context.SESSIONS);
ServletHolder holder = new ServletHolder(new RestServlet());
// TODO Set this based on which datastore in use
holder.setInitParameter("persistence-context", "h2-backend");
root.addServlet(holder, "/dn/*");
server.start();
}
Aggregations