public class RemoteModelTest
extends java.lang.Object
To run:
/usr/local/sbin/mosquitto & (cd $PTII/ptserver/test/junit/; java -classpath ${PTII}:${PTII}/lib/ptjacl.jar:${PTII}/lib/junit-4.8.2.jar:${PTII}/ptserver/lib/hessian-4.0.7.jar:${PTII}/lib/jetty-all-8.1.5-v20120716.jar:${PTII}/lib/javax.servlet-api-3.0.1.jar:${PTII}/ptserver/lib/wmqtt.jar org.junit.runner.JUnitCore ptserver.test.junit.RemoteModelTest)
Modifier and Type | Field and Description |
---|---|
static java.util.ResourceBundle |
CONFIG
Access the ResourceBundle containing configuration parameters.
|
Constructor and Description |
---|
RemoteModelTest() |
Modifier and Type | Method and Description |
---|---|
void |
runSimulation()
Find the model file on the server and execute the simulation.
|
void |
setup()
Set up the initial singleton reference and Hessian proxy factory
that will be used within the JUnit test cases.
|
void |
shutdown()
Call the shutdown() method on the singleton and destroy all
references to it.
|
void |
testModelTimeout() |
void |
testRemoteAttribute() |
void |
testRemoteAttributeSimulation() |
public static final java.util.ResourceBundle CONFIG
public void setup() throws java.lang.Exception
java.lang.Exception
- If there is an error creating the Hessian proxy.public void runSimulation() throws java.lang.Exception
java.lang.Exception
- If the the setup or shutdown of the simulation fails.public void testRemoteAttribute() throws java.lang.Exception
java.lang.Exception
public void testRemoteAttributeSimulation() throws java.lang.Exception
java.lang.Exception
public void testModelTimeout() throws java.lang.Exception
java.lang.Exception
public void shutdown() throws java.lang.Exception
java.lang.Exception
- If there was an error shutting down the broker or
servlet.