clean up and stabilization, getting ready for M1
This commit is contained in:
parent
6a65c67ca7
commit
95d598fb66
119 changed files with 1839 additions and 5140 deletions
|
|
@ -28,18 +28,17 @@ import java.util.HashMap;
|
|||
import se.scalablesolutions.akka.kernel.config.*;
|
||||
import static se.scalablesolutions.akka.kernel.config.JavaConfig.*;
|
||||
|
||||
/*
|
||||
|
||||
public class RestTest extends TestCase {
|
||||
|
||||
private static int PORT = 9998;
|
||||
private static URI URI = UriBuilder.fromUri("http://localhost/").port(PORT).build();
|
||||
private static SelectorThread selector = null;
|
||||
private static ActiveObjectGuiceConfiguratorForJava conf = new ActiveObjectGuiceConfiguratorForJava();
|
||||
private static ActiveObjectManager conf = new ActiveObjectManager();
|
||||
|
||||
@BeforeClass
|
||||
protected void setUp() {
|
||||
se.scalablesolutions.akka.kernel.Kernel$.MODULE$.config();
|
||||
conf.configureActiveObjects(
|
||||
conf.configure(
|
||||
new RestartStrategy(new AllForOne(), 3, 5000),
|
||||
new Component[] {
|
||||
new Component(
|
||||
|
|
@ -50,6 +49,12 @@ public class RestTest extends TestCase {
|
|||
selector = startJersey();
|
||||
}
|
||||
|
||||
public void testSimpleRequest() {
|
||||
assertTrue(true);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@Test
|
||||
public void testSimpleRequest() throws IOException, InstantiationException {
|
||||
selector.listen();
|
||||
|
|
@ -59,11 +64,11 @@ public class RestTest extends TestCase {
|
|||
assertEquals("hello foo", responseMsg);
|
||||
selector.stopEndpoint();
|
||||
}
|
||||
|
||||
*/
|
||||
private static SelectorThread startJersey() {
|
||||
try {
|
||||
Servlet servlet = new se.scalablesolutions.akka.kernel.jersey.AkkaServlet();
|
||||
ServletAdapter adapter = new ServletAdapter();
|
||||
Servlet servlet = se.scalablesolutions.akka.kernel.jersey.AkkaServlet.class.newInstance();
|
||||
adapter.setServletInstance(servlet);
|
||||
adapter.setContextPath(URI.getPath());
|
||||
return createGrizzlySelector(adapter, URI, PORT);
|
||||
|
|
@ -83,4 +88,4 @@ public class RestTest extends TestCase {
|
|||
return selectorThread;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue