// =====================================================================
// Test Expectations
// =====================================================================
DocumentValidator validator = new DocumentValidatorImpl(
compiledSchemaMock);
validator.open(elementType);
{
validator.open(elementType);
{
// Content is not whitespace so must be valid and will be
// consumed.
assertTrue(validator.pcdata(false));
}
validator.close(elementType);
// Content is whitespace and is not valid and so won't be consumed.
assertFalse(validator.pcdata(true));
}
validator.close(elementType);
}