MCPcopy Create free account
hub / github.com/Neop/mudmap2 / testWorld_1Arg

Method testWorld_1Arg

src/test/java/mudmap2/backend/WorldTest.java:83–116  ·  view source on GitHub ↗

Test of constructors

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 11

getHomeMethod · 0.95
getLayersMethod · 0.95
getNameMethod · 0.95
getPathColorStdMethod · 0.95
getPathColorNstdMethod · 0.95
getPathColorsMethod · 0.95
getPlaceGroupsMethod · 0.95
getPreferencesMethod · 0.95
getInformationColorsMethod · 0.95
getTileCenterColorMethod · 0.95
getWorldFileMethod · 0.95

Tested by

no test coverage detected