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

Method testBase

code/src/test/plugin/exporttokens/ACTokenTest.java:156–167  ·  view source on GitHub ↗

Test the character's AC calcs with no armor.

()

Source from the content-addressed store, hash-verified

154 * Test the character's AC calcs with no armor.
155 */
156 @Test
157 public void testBase()
158 {
159 assertEquals("12", new ACToken().getToken(
160 "AC.Total", getCharacter(), null), "Total AC no armor");
161
162 assertEquals("0", new ACToken().getToken(
163 "AC.Armor", getCharacter(), null), "Armor AC no armor");
164
165 assertEquals("2", new ACToken().getToken(
166 "AC.Ability", getCharacter(), null), "Ability AC no armor");
167 }
168
169 /**
170 * Test the character's AC calcs with armor with no equip mods applied.

Callers

nothing calls this directly

Calls 2

getTokenMethod · 0.45
getCharacterMethod · 0.45

Tested by

no test coverage detected