|
2008-07-29 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.eclipse.soda.dk.transport.testcase.TransportTestcase
public abstract class TransportTestcase
| Field Summary | |
|---|---|
protected java.lang.Object |
stateWait
Define the state wait (Object) field. |
protected TransportService |
transport
Define the transport (TestTransport) field. |
| Constructor Summary | |
|---|---|
protected |
TransportTestcase()
Constructs an instance of this class. |
protected |
TransportTestcase(java.lang.String name)
|
| Method Summary | |
|---|---|
abstract TransportService |
createTransport()
Create transport and return the TransportService result. |
void |
errorOccurred(java.lang.Object source,
java.lang.Object timestamp,
java.lang.Object data)
The errorOccurred method is called when an error has occurred. |
TransportService |
getTransport()
Gets the transport (TransportService) value. |
void |
messageReceived(TransportService transportService,
java.lang.Object timestamp,
MessageService message)
This API will be called each time the TransportService receives a valid message. |
void |
setTransport(TransportService transport)
|
protected void |
setUp()
Set up. |
void |
startTransport()
Start transport. |
void |
test_Fields()
Test_ fields. |
void |
test_Interfaces()
Test_ interfaces. |
void |
transportChanged(TransportService transportService,
java.lang.Object timestamp,
int newState,
int oldState)
This method will be called when the state of the TransportService changes. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected TransportService transport
protected final java.lang.Object stateWait
| Constructor Detail |
|---|
protected TransportTestcase()
TransportTestcase(String)protected TransportTestcase(java.lang.String name)
name - The name (String) parameter.TransportTestcase()| Method Detail |
|---|
public abstract TransportService createTransport()
TransportService) value.getTransport(),
setTransport(TransportService),
startTransport()
public void errorOccurred(java.lang.Object source,
java.lang.Object timestamp,
java.lang.Object data)
ErrorListener
errorOccurred in interface ErrorListenersource - The source (Object) parameter.timestamp - The timestamp (Object) parameter.data - The data (Object) parameter.public TransportService getTransport()
TransportService) value.createTransport(),
setTransport(TransportService),
startTransport()
public void messageReceived(TransportService transportService,
java.lang.Object timestamp,
MessageService message)
MessageListener
messageReceived in interface MessageListenertransportService - The transport service (TransportService) parameter.timestamp - The timestamp (Object) parameter.message - The message (MessageService) parameter.public void setTransport(TransportService transport)
transport - The transport (TransportService) parameter.createTransport(),
getTransport(),
startTransport()
protected void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exception - Exception.
public void startTransport()
throws java.lang.Exception
java.lang.Exception - Exception.createTransport(),
getTransport(),
setTransport(TransportService)public void test_Fields()
public void test_Interfaces()
public void transportChanged(TransportService transportService,
java.lang.Object timestamp,
int newState,
int oldState)
TransportListenerorg.eclipse.soda.dk.transport.service.TransportService
java.lang.Object
The new state of the TransportService when the notification
process started.
The old state of the TransportService.
transportChanged in interface TransportListenertransportService - The transport service (TransportService) parameter.timestamp - The timestamp (Object) parameter.newState - The new state (int) parameter.oldState - The old state (int) parameter.
|
2008-07-29 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||