public void testInvalidValue() throws Exception
{
String attrVal = "#rubbish";
attr = new IntOrTokenAnyAttrImpl(el, qn, attrVal, reporter);
ErrorInfo errInfo = (ErrorInfo)handler.errors.get("WSDL512");
assertNotNull("An error should have been reported", errInfo);
assertEquals("Error 'WSDL512' expected but error reported was '" + errInfo.getKey() + "'.",
"WSDL512",
errInfo.getKey());
assertFalse("isValid() should return false", attr.isValid());
assertFalse("isInt() should return false", attr.isInt());
assertFalse("isToken() should return false", attr.isToken());
assertNull("getInt() should return null", attr.getInt());