assertTrue( !bl.hasMoreBlocks() );
}
public void testEquals() {
BlockList bl1 = new BlockList();
bl1.add( new Block( Block.TYPE_text, "c1" ) );
bl1.add( new Block( Block.TYPE_script, "c2" ) );
BlockList bl2 = new BlockList();
bl2.add( new Block( Block.TYPE_text, "c1" ) );
bl2.add( new Block( Block.TYPE_script, "c2" ) );
assertEquals( bl1, bl2 );
BlockList bl3 = new BlockList();
bl3.add( new Block( Block.TYPE_text, "c1x" ) );
bl3.add( new Block( Block.TYPE_script, "c2" ) );
assertTrue( !bl1.equals(bl3) );
assertTrue( !bl3.equals(bl2) );
BlockList bl4 = new BlockList();
bl4.add( new Block( Block.TYPE_script, "c1" ) );
bl4.add( new Block( Block.TYPE_text, "c2" ) );
assertTrue( !bl1.equals(bl4) );
assertTrue( !bl4.equals(bl2) );
assertTrue( !bl3.equals(bl4) );
}