Class WireMonitorServer
- java.lang.Object
-
- org.wso2.am.integration.test.utils.monitor.utils.WireMonitorServer
-
public class WireMonitorServer extends Object
This class can be used to capture wire messages
-
-
Field Summary
Fields Modifier and Type Field Description booleanisFinished
-
Constructor Summary
Constructors Constructor Description WireMonitorServer(int port)Start listening to a port
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCapturedMessage()Wait until response is received and returnsvoidsetFinished(boolean isFinished)voidsetReadTimeOut(int timeout)voidstart()
-
-
-
Method Detail
-
start
public void start()
-
getCapturedMessage
public String getCapturedMessage()
Wait until response is received and returns- Returns:
- will return null if response is not received
-
setReadTimeOut
public void setReadTimeOut(int timeout)
-
setFinished
public void setFinished(boolean isFinished)
-
-