use of pcgen.io.ExportHandler in project pcgen by PCGen.
the class AbilityTokenTest method testAssociated.
/**
* Tests the associated subtoken of ABILITY.
*/
public void testAssociated() {
AbilityToken tok = new AbilityToken();
ExportHandler eh = new ExportHandler(null);
PlayerCharacter character = getCharacter();
assertEquals("", tok.getToken("ABILITY.FEAT.0.ASSOCIATED", character, eh));
assertEquals("Bluff,Listen", tok.getToken("ABILITY.FEAT.1.ASSOCIATED", character, eh));
assertEquals("Bluff", tok.getToken("ABILITY.FEAT.1.ASSOCIATED.0", character, eh));
assertEquals("Listen", tok.getToken("ABILITY.FEAT.1.ASSOCIATED.1", character, eh));
}
Aggregations