MCPcopy Create free account
hub / github.com/PCGen/pcgen / setUp

Method setUp

code/src/utest/pcgen/cdom/util/MapKeyMapTest.java:59–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 private Aspect breedAspect;
58
59 @BeforeEach
60 void setUp() throws Exception
61 {
62 mapKeyMap = new MapKeyMap();
63 ageKey = AspectName.getConstant("agE");
64 nameKey = AspectName.getConstant("Name");
65 breedKey = AspectName.getConstant("breed");
66
67 List<Aspect> ageList = new ArrayList<>();
68 ageAspect = new Aspect("age", AGE);
69 ageList.add(ageAspect);
70 mapKeyMap.addToMapFor(MapKey.ASPECT, ageKey, ageList);
71 List<Aspect> nameList = new ArrayList<>();
72 nameAspect = new Aspect("name", NAME);
73 nameList.add(nameAspect);
74 mapKeyMap.addToMapFor(MapKey.ASPECT, nameKey, nameList);
75 List<Aspect> breedList = new ArrayList<>();
76 breedAspect = new Aspect("breed", BREED);
77 breedList.add(breedAspect);
78 mapKeyMap.addToMapFor(MapKey.ASPECT, breedKey, breedList);
79
80 }
81
82 //TODO Tear Down
83

Callers

nothing calls this directly

Calls 3

getConstantMethod · 0.95
addMethod · 0.65
addToMapForMethod · 0.45

Tested by

no test coverage detected