package businessmodel;

import static org.junit.Assert.fail;

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

public class MainSchedulerTest {

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

	@Before
	public void setUp() throws Exception {
	}

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

}

@@ -48,20 +48,46 @@
 .Assert.
-fail
+*;%0A%0Aimport java.util.ArrayList
 ;%0A%0Aimpor
@@ -160,16 +160,100 @@
 .Test;%0A%0A
+import businessmodel.category.VehicleOption;%0Aimport businessmodel.category.Wheels;%0A%0A
 public c
@@ -281,205 +281,631 @@
 t %7B%0A
+%09
 %0A%09
-@BeforeClass%0A%09public static void setUpBeforeClass() throws Exception %7B%0A%09%7D%0A%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%7D%0A%0A%09@Test%0A%09public void test() %7B%0A%09%09fail(%22Not yet implemented%22); // TODO
+private MainScheduler ms;%0A%09private OrderManager om;%0A%0A%09@Before%0A%09public void setUp() throws Exception %7B%0A%09%09this.om = new OrderManager();%0A%09%09this.ms = new MainScheduler(this.om);%0A%09%7D%0A%0A%09@Test%0A%09public void test() %7B%0A%09%09assertEquals(3, ms.getAssemblyLines().size());%0A%09%09assertEquals(3, ms.getAssemblyLineSchedulers().size());%0A%09%09assertEquals(this.om, this.ms.getOrderManager());%0A%09%09ArrayList%3CVehicleOption%3E options = new ArrayList%3CVehicleOption%3E();%0A%09%09options.add(new VehicleOption(%22Test%22, new Wheels()));%0A%09%09this.ms.changeSystemWideAlgorithm(%22SpecificationBatch%22, options);%0A%09%09assertEquals(%22SpecificationBatch%22, this.ms.getAlgorithm());
 %0A%09%7D%0A

test mainscheduler