Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Test
- public void testGetTurnsInSeconds(){
- MockStendlRPWorld world = (MockStendlRPWorld) MockStendlRPWorld.get();
- assertEquals(world.getTurnsInSeconds(3), 10);
- }
- @Test
- public void testGet()
- {
- MockStendlRPWorld world = null;
- world = (MockStendlRPWorld)MockStendlRPWorld.get();
- assertNotNull("Test that get() initializes a world",world);
- MockStendlRPWorld world2 = (MockStendlRPWorld)world.get();
- assertSame("Test that the second call to get returns the already initialized world", world, world2);
- }
- @Test
- public void testGetRPZone()
- {
- final StendhalRPZone semos_city = new StendhalRPZone("0_semos_city");
- MockStendlRPWorld world = (MockStendlRPWorld) MockStendlRPWorld.get();
- world.addRPZone(semos_city);
- assertNotNull(world.getRPZone("0_semos_city"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement