File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
modules/swagger-generator
src/test/java/io/swagger/v3/generator/online Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 63
63
<version >${jetty-version} </version >
64
64
<configuration >
65
65
<scanIntervalSeconds >10</scanIntervalSeconds >
66
- <stopPort >8079 </stopPort >
66
+ <stopPort >${JETTY_TEST_STOP_PORT} </stopPort >
67
67
<stopKey >STOP</stopKey >
68
68
<useTestScope >true</useTestScope >
69
69
<systemProperties >
84
84
<contextPath >/</contextPath >
85
85
</webApp >
86
86
<httpConnector >
87
- <port >8080 </port >
87
+ <port >${JETTY_TEST_HTTP_PORT} </port >
88
88
<idleTimeout >60000</idleTimeout >
89
89
</httpConnector >
90
90
</configuration >
312
312
<inflector-version >2.0.0-rc2</inflector-version >
313
313
<junit-version >4.8.2</junit-version >
314
314
<servlet-api .version>3.1.0</servlet-api .version>
315
+ <JETTY_TEST_HTTP_PORT >8080</JETTY_TEST_HTTP_PORT >
316
+ <JETTY_TEST_STOP_PORT >8079</JETTY_TEST_STOP_PORT >
315
317
</properties >
316
318
</project >
Original file line number Diff line number Diff line change 25
25
public class GeneratorControllerIT {
26
26
27
27
protected final Logger LOGGER = LoggerFactory .getLogger (GeneratorControllerIT .class );
28
- static final String DEFAULT_HOST = "http://localhost:8080/api" ;
28
+ static final String port = System .getProperty ("JETTY_TEST_HTTP_PORT" ) == null ? "8080" : System .getProperty ("JETTY_TEST_HTTP_PORT" );
29
+ static final String DEFAULT_HOST = "http://localhost:" + port + "/api" ;
29
30
private HttpClient client = HttpClientBuilder .create ().build ();
30
31
31
32
@ Test
You can’t perform that action at this time.
0 commit comments