assertTrue(baos.toString(), TestUtil.equalXmlFiles(new ByteArrayInputStream(baos.toByteArray()), getClass().getResource(MQ_TEST_DATA)));
}
public void testRepeatingChoice() throws IOException
{
RepeatingChoice rc = SequencesFactory.INSTANCE.createRepeatingChoice();
List as = rc.getA();
List bs = rc.getB();
bs.add(new Integer(1));
as.add("foo");
as.add("bar");
bs.add(new Integer(2));
Sequence group = rc.getGroup();
assertEquals(group.size(), 4);
assertEquals(rc.getA().size(), 2);
assertEquals(rc.getB().size(),2);
assertEquals(group.getValue(0), new Integer(1));
assertEquals(group.getValue(1), "foo");
assertEquals(group.getValue(2), "bar");
assertEquals(group.getValue(3), new Integer(2));