mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-03 12:29:31 +00:00
do not use hardcoded port
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
parent
d295aa6d63
commit
63810134c7
@ -167,7 +167,7 @@ public class EmbeddedWeldTest
|
||||
@Test
|
||||
public void testWebappContext() throws Exception
|
||||
{
|
||||
Server server = new Server(8080);
|
||||
Server server = new Server(0);
|
||||
server.addConnector(new LocalConnector(server));
|
||||
WebAppContext webapp = new WebAppContext();
|
||||
webapp.setContextPath("/");
|
||||
@ -199,7 +199,7 @@ public class EmbeddedWeldTest
|
||||
@Test
|
||||
public void testWebappContextDiscovered() throws Exception
|
||||
{
|
||||
Server server = new Server(8080);
|
||||
Server server = new Server(0);
|
||||
server.addConnector(new LocalConnector(server));
|
||||
WebAppContext webapp = new WebAppContext();
|
||||
webapp.setContextPath("/");
|
||||
|
Loading…
x
Reference in New Issue
Block a user