package edu.berkeley.path.beats.test.simulator;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

public class ScenarioElementTest {
	
//	public Scenario getMyScenario() {
//	public ScenarioElement.Type getMyType() {
//	public Object getReference() {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void test() {
		fail("Not yet implemented");
	}

}

@@ -213,161 +213,626 @@
 t;%0A%0A
-public class ScenarioElementTest %7B%0A%09%0A//%09public Scenario getMyScenario() %7B%0A//%09public ScenarioElement.Type getMyType() %7B%0A//%09public Object getReference()
+import edu.berkeley.path.beats.control.Controller_IRM_Alinea;%0Aimport edu.berkeley.path.beats.event.Event_Link_Lanes;%0Aimport edu.berkeley.path.beats.sensor.SensorLoopStation;%0Aimport edu.berkeley.path.beats.simulator.Controller;%0Aimport edu.berkeley.path.beats.simulator.Event;%0Aimport edu.berkeley.path.beats.simulator.Link;%0Aimport edu.berkeley.path.beats.simulator.Node;%0Aimport edu.berkeley.path.beats.simulator.ObjectFactory;%0Aimport edu.berkeley.path.beats.simulator.ScenarioElement;%0Aimport edu.berkeley.path.beats.simulator.Sensor;%0Aimport edu.berkeley.path.beats.simulator.Signal;%0A%0Apublic class ScenarioElementTest
  %7B%0A
+%09
 %0A%09@B
@@ -1117,43 +1117,564 @@
 test
-() %7B%0A%09%09fail(%22Not yet implemented%22);
+_getMyType() %7B%0A%09%09%0A%09%09// controller%0A%09%09ScenarioElement se1 = ObjectFactory.createScenarioElement(new Controller_IRM_Alinea());%09%09%0A%09%09assertTrue(se1.getMyType().compareTo(ScenarioElement.Type.controller)==0);%0A%09%09%0A%09%09// sensor%0A%09%09ScenarioElement se2 = ObjectFactory.createScenarioElement(new SensorLoopStation());%09%09%0A%09%09assertTrue(se2.getMyType().compareTo(ScenarioElement.Type.sensor)==0);%09%0A%09%09%0A%09%09// event%0A%09%09ScenarioElement se3 = ObjectFactory.createScenarioElement(new Event_Link_Lanes());%09%09%0A%09%09assertTrue(se3.getMyType().compareTo(ScenarioElement.Type.event)==0);%09%0A%09%09
 %0A%09%7D%0A

test ScenarioElement