We are going to add a factory method attribute for integration tests, so:
public class App extends Jooby {
public App(String argument) {
get("/", ctx -> "Easy testing!");
}
}
Can be tested like:
public class TestApp {
@JoobyTest(value = App.class, factoryMethod = "createApp")
public void test() {
... test code goes here
}
public App createApp() {
return new App("Argument");
}
}
cc @rrva
We are going to add a
factory methodattribute for integration tests, so:Can be tested like:
cc @rrva