org.mockserver.mockserver
Class MockServer
java.lang.Object
org.mockserver.mockserver.MockServer
- All Implemented Interfaces:
- Stoppable
public class MockServer
- extends Object
- implements Stoppable
- Author:
- jamesdbloom
|
Constructor Summary |
MockServer(Integer... requestedPortBindings)
Start the instance using the port provided |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockServer
public MockServer(Integer... requestedPortBindings)
- Start the instance using the port provided
- Parameters:
requestedPortBindings - the http port to use
stop
public Future<?> stop()
- Specified by:
stop in interface Stoppable
isRunning
public boolean isRunning()
getPorts
public List<Integer> getPorts()
getPort
public int getPort()
Copyright © 2017. All rights reserved.