public class VizConnectionTester
extends java.lang.Object
IVizConnection
provided by VizConnection
as well as its added functionality.Constructor and Description |
---|
VizConnectionTester() |
Modifier and Type | Method and Description |
---|---|
void |
beforeEachTest()
Initializes the viz connection that is tested as well as any other class
variables frequently used to test the connection.
|
void |
checkConnect()
Checks the return value for the connect operation.
|
void |
checkConnectToWidget()
Checks that the sub-class implementation is called when connecting.
|
void |
checkDefaults()
Checks all of the default values for
IVizConnection getters. |
void |
checkDisconnect()
Checks the return value for the disconnect operation.
|
void |
checkDisconnectFromWidget()
Checks that the sub-class implementation is called when disconnecting.
|
void |
checkListeners()
Checks that listeners can be added and removed, as well as checking that
they are actually notified.
|
void |
checkNotificationsForFailedConnect()
Checks that the proper sequence of notifications are posted to registered
listeners when the
VizConnection.connect() operation fails
. |
void |
checkNotificationsForFailedDisconnect()
Checks that the proper sequence of notifications are posted to registered
listeners when the
VizConnection.disconnect() operation fails. |
void |
checkNotificationsForSuccessfulConnect()
Checks that the proper sequence of notifications are posted to registered
listeners when the
VizConnection.connect() operation is
successful. |
void |
checkNotificationsForSuccessfulDisconnect()
Checks that the proper sequence of notifications are posted to registered
listeners when the
VizConnection.disconnect() operation is
successful. |
void |
checkProperties()
Checks that the property map cannot be modified from outside the class.
|
void |
checkSetDescription()
Checks the description setter properly sets the description property.
|
void |
checkSetHost()
Checks the host setter properly sets the host property.
|
void |
checkSetName()
Checks the name setter properly sets the name property.
|
void |
checkSetPath()
Checks the path setter properly sets the path property.
|
void |
checkSetPort()
Checks the port setter properly sets the port property.
|
void |
checkSetProperty()
Checks that supported properties can be set.
|
public void beforeEachTest()
public void checkDefaults()
IVizConnection
getters.public void checkProperties()
public void checkSetProperty()
public void checkSetName()
public void checkSetDescription()
public void checkSetHost()
public void checkSetPort()
public void checkSetPath()
public void checkConnect()
public void checkConnectToWidget()
public void checkDisconnect()
public void checkDisconnectFromWidget()
public void checkListeners()
public void checkNotificationsForSuccessfulConnect()
VizConnection.connect()
operation is
successful.public void checkNotificationsForFailedConnect()
VizConnection.connect()
operation fails
.public void checkNotificationsForSuccessfulDisconnect()
VizConnection.disconnect()
operation is
successful.public void checkNotificationsForFailedDisconnect()
VizConnection.disconnect()
operation fails.