@Test public void testPreassignProject() throws Exception { s.preassignProject(testProject_1); s.preassignProject(s.getRandomPreference()); assertEquals("there shouldn't be 2 preassigned project", 1, s.getOrderedPreferences().size()); assertEquals("expect true", true, s.hasPreassignedProject()); }
@Test public void testGetOrderedPreferences() throws Exception { for (Project str : testProject_rest) { s.addProject(str); } assertEquals("expect equal", testProject_rest, s.getOrderedPreferences()); }