example/test/example/test/RRSchedulerTest.java
/**
     * Test of registerSystem method, of class RRScheduler.
     */
Test of registerSystem method, of class RRScheduler.
Test of registerSystem method of class RRScheduler .
@Test
    public void testRegisterSystem() {
	_scheduler.registerSystem(_counter1, 1);
	_scheduler.registerSystem(_counter2, 0);
	try{
	    _scheduler.makeSchedule();
	}
	catch(ScheduleIsRunningException e) {
	    fail("Couldnt register a System");
	}
	ArrayList<EntitySystem> schedule = this.getSchedule(_scheduler);
	assertTrue("Should be part of the schedule",schedule.contains(_counter1));
	assertFalse("Should not be part of the schedule",schedule.contains(_counter2));
    }
@ Test public void testRegisterSystem ( ) { _scheduler . registerSystem ( _counter1 , 1 ) ; _scheduler . registerSystem ( _counter2 , 0 ) ; try { _scheduler . makeSchedule ( ) ; } catch ( ScheduleIsRunningException e ) { fail ( "Couldnt register a System" ) ; } ArrayList < EntitySystem > schedule = this . getSchedule ( _scheduler ) ; assertTrue ( "Should be part of the schedule" , schedule . contains ( _counter1 ) ) ; assertFalse ( "Should not be part of the schedule" , schedule . contains ( _counter2 ) ) ; }
Test of registerSystem method, of class RRScheduler.
Test of registerSystem method of class RRScheduler .