Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. @Test
  2. public void testGetTurnsInSeconds(){
  3. MockStendlRPWorld world = (MockStendlRPWorld) MockStendlRPWorld.get();
  4. assertEquals(world.getTurnsInSeconds(3), 10);
  5. }
  6.  
  7. @Test
  8. public void testGet()
  9. {
  10. MockStendlRPWorld world = null;
  11. world = (MockStendlRPWorld)MockStendlRPWorld.get();
  12. assertNotNull("Test that get() initializes a world",world);
  13.  
  14. MockStendlRPWorld world2 = (MockStendlRPWorld)world.get();
  15.  
  16. assertSame("Test that the second call to get returns the already initialized world", world, world2);
  17.  
  18. }
  19.  
  20. @Test
  21. public void testGetRPZone()
  22. {
  23. final StendhalRPZone semos_city = new StendhalRPZone("0_semos_city");
  24. MockStendlRPWorld world = (MockStendlRPWorld) MockStendlRPWorld.get();
  25. world.addRPZone(semos_city);
  26.  
  27. assertNotNull(world.getRPZone("0_semos_city"));
  28. }
  29.  
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement