//
// test rules
//
while (rules.hasNext())
{
Rule rule = (Rule) rules.next();
assertNotNull("rule is null", rule);
if (rule.getId().equals("merge"))
{
assertEquals("Rule id", rule.getId(), "merge");
assertTrue("Rule Use Base", rule.getUseBase());
assertFalse("Rule Popup", rule.getPopup());
assertEquals("Rule Suffix", rule.getSuffix(), "/web");
}
else if (rule.getId().equals("test"))
{
assertEquals("Rule id", rule.getId(), "test");
assertFalse("Rule Use Base", rule.getUseBase());
assertTrue("Rule Popup", rule.getPopup());
assertEquals("Rule Suffix", rule.getSuffix(), "/whatever&xxx=1");
}
else
{
assertTrue("rule name unexpected: " + rule.getId(), false);
}
}
}