* @throws Exception if the test fails
*/
public void testCorrectBooleansInUnqualifiedColumns() throws Exception
{
// check whether booleans are replaced with unqualified columns
Criteria criteria = new Criteria()
.where(new ColumnImpl("BINT_VALUE"), true)
.and(new ColumnImpl("BCHAR_VALUE"), true);
BintBcharTypePeer.correctBooleans(criteria);
Criterion criterionInt
= criteria.getTopLevelCriterion().getParts().get(0);
Object intValue = criterionInt.getRValue();
assertTrue("The boolean value should be an instance of Integer",
intValue instanceof Integer);
Criterion criterionChar
= criteria.getTopLevelCriterion().getParts().get(1);
Object charValue = criterionChar.getRValue();
assertTrue("The boolean value should be an instance of String",
charValue instanceof String);
}