File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/jooby-test/src/test/java/io/jooby/test Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class AppPerTestUsingJoobyTest {
1818
1919 static OkHttpClient client = new OkHttpClient ();
2020
21- @ JoobyTest (value = TestApp .class )
21+ @ JoobyTest (value = TestApp .class , port = 0 )
2222 public void sayHi (String serverPath ) throws IOException {
2323 Request request = new Request .Builder ().url (serverPath ).build ();
2424
@@ -27,7 +27,7 @@ public void sayHi(String serverPath) throws IOException {
2727 }
2828 }
2929
30- @ JoobyTest (value = TestApp .class )
30+ @ JoobyTest (value = TestApp .class , port = 0 )
3131 public void sayH2i (int serverPort ) throws IOException {
3232 Request request = new Request .Builder ().url ("http://localhost:" + serverPort + "/test" ).build ();
3333
@@ -36,7 +36,7 @@ public void sayH2i(int serverPort) throws IOException {
3636 }
3737 }
3838
39- @ JoobyTest (value = TestArgApp .class , factoryMethod = "createApp" )
39+ @ JoobyTest (value = TestArgApp .class , factoryMethod = "createApp" , port = 0 )
4040 public void shouldUseFactoryMethod (int serverPort ) throws IOException {
4141 Request request = new Request .Builder ().url ("http://localhost:" + serverPort + "/" ).build ();
4242
You can’t perform that action at this time.
0 commit comments