Search in sources :

Example 6 with DatasetVariable

use of pcgen.cdom.content.DatasetVariable in project pcgen by PCGen.

the class GlobalTokenTest method testInvalidDupeVarName.

@Test
public void testInvalidDupeVarName() throws PersistenceLayerException {
    DatasetVariable dv = new DatasetVariable();
    ParseResult pr = token.parseToken(primaryContext, dv, "MyVar");
    assertTrue(pr.passed());
    assertFalse(parse("STRING=MyVar"));
    assertNoSideEffects();
}
Also used : DatasetVariable(pcgen.cdom.content.DatasetVariable) ParseResult(pcgen.rules.persistence.token.ParseResult) Test(org.junit.Test)

Aggregations

DatasetVariable (pcgen.cdom.content.DatasetVariable)6 Test (org.junit.Test)5 ParseResult (pcgen.rules.persistence.token.ParseResult)5 StringTokenizer (java.util.StringTokenizer)1