Methods Summary |
---|
void | cleanUp()Provide clean-up services, following the run of this test.
closeConnection();
|
private void | closeConnection()Close the MMS connection.
try {
con.close();
} catch (IOException ioe) {
// Fail silently.
} catch (Exception e) {
// Fail silently.
}
|
private void | createClientConnection(java.lang.String clientAddress)Create and open an MMS connection.
con = (MessageConnection)Connector.open(clientAddress);
|
public void | run()Simply close the MMS connection. If successful, this test passes.
try {
closeConnection();
passed = true;
assertTrue("Indicate that the test passed.", passed);
} catch (Exception e) {
e.printStackTrace();
System.out.println(e.getMessage());
}
|
public void | runTests()Main entry point.
setUp();
declare(TEST_NAME);
run();
cleanUp();
|
void | setUp()Set up the physical connection.
try {
createClientConnection(MMS_CLIENT_ADDRESS);
} catch (IOException ioe) {
System.out.println(TEST_NAME + " set-up failed:");
ioe.printStackTrace();
}
|