Skip to content

Commit 4afc47e

Browse files
authored
Merge pull request #3475 from froque/fix_JoobyTest_port_documentation
Fix port documentation for JoobyTest
2 parents 96dd15f + 8009f6e commit 4afc47e

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

docs/asciidoc/testing.adoc

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,7 @@ Simple and easy {love}!
345345

346346
The javadoc:JoobyTest[] takes care of start and stop the application.
347347

348-
Adding the annotation at class-level starts a single application before running tests and stop it
349-
after all them. The default port at class level is: `8911`.
350-
351-
Adding the annotation at method-level starts an application before running the test and stop it
352-
once it finish. The default port at method level is `random`.
353-
354-
Default application port can be configured directly using the javadoc:JoobyTest[port] method:
348+
The default port is: `8911`. Application port can be configured directly using the javadoc:JoobyTest[port] method:
355349

356350
`@JoobyTest(value = App.class, port = 9999)`
357351

modules/jooby-test/src/main/java/io/jooby/test/JoobyTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,9 @@
113113
String environment() default "test";
114114

115115
/**
116-
* Server port. At class level default port is <code>8911</code>. At method level default port is
117-
* random.
116+
* Server port. The default port is <code>8911</code>. Use <code>0</code> for random port.
118117
*
119-
* @return Server port. At class level default port is <code>8911</code>. At method level default
120-
* port is random.
118+
* @return Server port. The default port is <code>8911</code>.
121119
*/
122120
int port() default -1;
123121

0 commit comments

Comments
 (0)