/**
* Test assignment of integers.
*/
public void testIntegerVariableAssignmentParser()
{
IntegerVariableAssignmentParser parser =
new IntegerVariableAssignmentParser("foo = 9");
assertTrue(parser.matches());
assertEquals("foo", parser.getVariable());
assertEquals(9, parser.getIntValue());
assertEquals(9, parser.getLongValue());
parser = new IntegerVariableAssignmentParser("foo=9");
assertTrue(parser.matches());
assertEquals("foo", parser.getVariable());
assertEquals(9, parser.getIntValue());
assertEquals(9, parser.getLongValue());
parser = new IntegerVariableAssignmentParser("foo=a");
assertFalse(parser.matches());
}