Package barsuift.simLife.process

Examples of barsuift.simLife.process.MockSynchronizerCore


        trees = new HashSet<Tree>();
        fallenLeaves = new HashSet<TreeLeaf>();
        creationMillis = 0;
        environment = new MockEnvironment();
        physics = new MockPhysics();
        synchronizer = new MockSynchronizerCore();
        date = new SimLifeDate();
        universe3D = new MockUniverse3D();
        state = new UniverseState();
        synchronizedCalled = 0;
    }
View Full Code Here


            new BasicTree(universe, null);
            fail("Should throw an IllegalArgumentException");
        } catch (IllegalArgumentException e) {
            // OK expected exception
        }
        MockSynchronizerCore synchronizer = (MockSynchronizerCore) universe.getSynchronizer();
        assertEquals(3, synchronizer.getNbScheduleCalled());
        assertEquals(3, synchronizer.getScheduledTasks().size());
        assertEquals(Photosynthesis.class, synchronizer.getScheduledTasks().get(0).getClass());
        assertEquals(Aging.class, synchronizer.getScheduledTasks().get(1).getClass());
        assertEquals(TreeGrowth.class, synchronizer.getScheduledTasks().get(2).getClass());
    }
View Full Code Here

TOP

Related Classes of barsuift.simLife.process.MockSynchronizerCore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.