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

Method testDuplicate

src/test/java/mudmap2/backend/PlaceTest.java:913–927  ·  view source on GitHub ↗

Test of duplicate method, of class Place.

()

Source from the content-addressed store, hash-verified

911 * Test of duplicate method, of class Place.
912 */
913 @Test
914 public void testDuplicate() {
915 System.out.println("duplicate");
916
917 Place instance = new Place("MyPlace", 1, 2, layer);
918 Place result = instance.duplicate();
919
920 assertEquals(instance.getName(), result.getName());
921 assertEquals(instance.getInfoRing(), result.getInfoRing());
922 assertEquals(instance.getRecLevelMin(), result.getRecLevelMin());
923 assertEquals(instance.getRecLevelMax(), result.getRecLevelMax());
924 assertEquals(instance.getPlaceGroup(), result.getPlaceGroup());
925 assertEquals(instance.getComments(), result.getComments());
926 assertEquals(instance.getFlags().entrySet().toString(), result.getFlags().entrySet().toString());
927 }
928
929 /**
930 * Test of breadthSearchReset method, of class Place.

Callers

nothing calls this directly

Calls 9

duplicateMethod · 0.95
getNameMethod · 0.95
getInfoRingMethod · 0.95
getRecLevelMinMethod · 0.95
getRecLevelMaxMethod · 0.95
getPlaceGroupMethod · 0.95
getCommentsMethod · 0.95
getFlagsMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected