Test of constructors
()
| 81 | * Test of constructors |
| 82 | */ |
| 83 | @Test |
| 84 | public void testWorld_1Arg(){ |
| 85 | System.out.println("World"); |
| 86 | |
| 87 | String worldName = "My World"; |
| 88 | |
| 89 | World instance1 = new World(worldName); |
| 90 | assertNotNull(instance1.getHome()); |
| 91 | assertNotNull(instance1.getLayers()); |
| 92 | assertNotNull(instance1.getName()); |
| 93 | assertEquals(worldName, instance1.getName()); |
| 94 | assertNotNull(instance1.getPathColorStd()); |
| 95 | assertNotNull(instance1.getPathColorNstd()); |
| 96 | assertNotNull(instance1.getPathColors()); |
| 97 | assertNotNull(instance1.getPlaceGroups()); |
| 98 | assertNotNull(instance1.getPreferences()); |
| 99 | assertNotNull(instance1.getInformationColors()); |
| 100 | assertNotNull(instance1.getTileCenterColor()); |
| 101 | assertNull(instance1.getWorldFile()); |
| 102 | |
| 103 | World instance2 = new World(null); |
| 104 | assertNotNull(instance2.getHome()); |
| 105 | assertNotNull(instance2.getLayers()); |
| 106 | assertNotNull(instance2.getName()); |
| 107 | assertEquals("unnamed", instance2.getName()); |
| 108 | assertNotNull(instance2.getPathColorStd()); |
| 109 | assertNotNull(instance2.getPathColorNstd()); |
| 110 | assertNotNull(instance2.getPathColors()); |
| 111 | assertNotNull(instance2.getPlaceGroups()); |
| 112 | assertNotNull(instance2.getPreferences()); |
| 113 | assertNotNull(instance2.getInformationColors()); |
| 114 | assertNotNull(instance2.getTileCenterColor()); |
| 115 | assertNull(instance2.getWorldFile()); |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Test for getWorldFile |
nothing calls this directly
no test coverage detected