public class FakeVizConnection extends VizConnection<FakeClient>
VizConnection
's base
implementation.Modifier and Type | Field and Description |
---|---|
boolean |
failOperation
If true, then
#connectToWidget(FakeClient) and
disconnectFromWidget(FakeClient) will return false as if they
failed to connect/disconnect. |
Constructor and Description |
---|
FakeVizConnection() |
Modifier and Type | Method and Description |
---|---|
boolean |
connectToWidgetCalled()
Gets whether the sub-class' implementation of
#connectToWidget(FakeClient) was called. |
boolean |
disconnectFromWidgetCalled()
Gets whether the sub-class' implementation of
disconnectFromWidget(FakeClient) was called. |
FakeClient |
getFakeWidget()
Gets the connection widget created by this fake connection
implementation.
|
addListener, connect, disconnect, getDescription, getHost, getName, getPath, getPort, getProperties, getProperty, getState, getStatusMessage, getWidget, removeListener, setDescription, setHost, setName, setPath, setPort, setProperty
public boolean failOperation
#connectToWidget(FakeClient)
and
disconnectFromWidget(FakeClient)
will return false as if they
failed to connect/disconnect.public FakeClient getFakeWidget()
VizConnection.getWidget()
.null
if it has not been
created yet.public boolean connectToWidgetCalled()
#connectToWidget(FakeClient)
was called.public boolean disconnectFromWidgetCalled()
disconnectFromWidget(FakeClient)
was called.