assertEquals(1, e1.getObjectContext().performQuery(checkQ).size());
}
public void testInExpressionExtendedTypeArray() {
ExtendedTypeEntity e1 = createDataContext().newObject(ExtendedTypeEntity.class);
e1.setName(new StringET1("X"));
ExtendedTypeEntity e2 = e1.getObjectContext().newObject(ExtendedTypeEntity.class);
e2.setName(new StringET1("Y"));
ExtendedTypeEntity e3 = e1.getObjectContext().newObject(ExtendedTypeEntity.class);
e3.setName(new StringET1("Z"));
e1.getObjectContext().commitChanges();
Expression in = ExpressionFactory.inExp(
ExtendedTypeEntity.NAME_PROPERTY,
new StringET1("X"), new StringET1("Y"));
SelectQuery query = new SelectQuery(ExtendedTypeEntity.class, in);
assertEquals(2, e1.getObjectContext().performQuery(query).size());
}