I found in Scala there is "sequential" to run test in order. How do we do with Java ?
I use the default testing framework with real http server as in the doc https://www.playframework.com/documentation/2.1.0/JavaFunctionalTest
And by the way, how can I make a test wait for Akka schedulers to finish ?
@Test
public void testFlashNeedPictureLog() {
running(testServer(3333), new Runnable() {
public void run() {
//Run in test
Akka.system().scheduler().schedule(
Duration.create(10, TimeUnit.SECONDS),
Duration.create(0, TimeUnit.SECONDS),
new Runnable() {
@Override
public void run() {
//Dont run
}
},
Akka.system().dispatcher()
);
}
});
}