| package org.metaabm.gen.test; |
| |
| import org.metaabm.gen.test.share.AgentTestCase; |
| |
| /** |
| * State Agent Java Implementation. Generated by metaabm system: Apr 13, 2008 |
| * 3:03:54 PM EDT in project: org.metaabm.gen.repast.test (testing) |
| */ |
| public class StateAgentTestCase extends AgentTestCase { |
| |
| /** |
| * Constructs a new State Agent. |
| */ |
| public StateAgentTestCase() { |
| super("org.eclipse.amp.amf.gen.repast.test.target", "State Agent Test", "org.eclipse.amp.amf.gen.test.StateAgent"); |
| } |
| |
| public void setUp() { |
| agentLoaded = new StateAgent(); |
| } |
| |
| public IStateAgent getAgent() { |
| return (IStateAgent) agentLoaded; |
| } |
| |
| public void testExistence() { |
| assertNotNull(getAgent()); |
| } |
| |
| /** |
| * . |
| */ |
| public void testSetStateToYellow() { |
| /* |
| * PROTECTED REGION ID(StateAgent_testSetStateToYellow_Pre) ENABLED |
| * START |
| */ |
| // Pre-Conditions Here |
| /* PROTECTED REGION END */ |
| getAgent().testSetStateToYellow(); |
| |
| /* |
| * PROTECTED REGION ID(StateAgent_testSetStateToYellow_Post) ENABLED |
| * START |
| */ |
| // Post-Conditions Here |
| /* PROTECTED REGION END */ |
| } |
| |
| /** |
| * Gets the Primary Color property for State Agent. |
| * |
| * @return |
| */ |
| public PrimaryColorEnum getPrimaryColor() { |
| return getAgent().getPrimaryColor(); |
| } |
| |
| /** |
| * Sets the Primary Color property for State Agent. |
| * |
| * @param _primaryColor the new Primary Color value |
| */ |
| public void setPrimaryColor(PrimaryColorEnum primaryColor) { |
| getAgent().setPrimaryColor(primaryColor); |
| } |
| } |