@Test
public void testIterator2() throws Exception {
ConstraintExp[] _exp = new ConstraintExp[1];
for (int x=0; x<_exp.length; ++x) {
_exp[x] = new ConstraintExp();
}
EventType[] _eventType = new EventType[2];
_eventType[0] = new EventType("*", "*");
_eventType[1] = new EventType("domain*", "type*");
_exp[0] = new ConstraintExp(_eventType, "1");
objectUnderTest_.add_constraints(_exp);
Iterator _i =
objectUnderTest_.getIterator(AbstractMessage.calcConstraintKey("domain1", "type1"));
int _count = 0;
while (_i.hasNext()) {
_count++;
ConstraintEntry _e = (ConstraintEntry)_i.next();
assertEquals("1", _e.getConstraintInfo().constraint_expression.constraint_expr);
}
assertTrue(_count == 2);
ConstraintExp[] _exp2 = new ConstraintExp[1];
_exp2[0] = new ConstraintExp();
EventType[] _eventType2 = new EventType[2];
_eventType2[0] = new EventType("*", "*");
_eventType2[1] = new EventType("domain*", "type*");
_exp2[0] = new ConstraintExp(_eventType2, "2");
objectUnderTest_.add_constraints(_exp2);
_i = objectUnderTest_.getIterator(AbstractMessage.calcConstraintKey("domain1", "type1"));
_count = 0;