test/infinity/ecs/utils/ReadOnlyCollectionTest.java
/**
     * Test of contains method, of class ReadOnlyCollection.
     */
Test of contains method, of class ReadOnlyCollection.
Test of contains method of class ReadOnlyCollection .
@Test
    public void testContains() {
	for(Integer num : _src1){
	    assertTrue(_col1.contains(num));
	}
	for(Integer num : _src2){
	    assertTrue(_col2.contains(num));
	}
	_src2.remove(1);
	_src1.remove(5);
	for(Integer num : _src1){
	    assertTrue(_col1.contains(num));
	}
	for(Integer num : _src2){
	    assertTrue(_col2.contains(num));
	}
    }
@ Test public void testContains ( ) { for ( Integer num : _src1 ) { assertTrue ( _col1 . contains ( num ) ) ; } for ( Integer num : _src2 ) { assertTrue ( _col2 . contains ( num ) ) ; } _src2 . remove ( 1 ) ; _src1 . remove ( 5 ) ; for ( Integer num : _src1 ) { assertTrue ( _col1 . contains ( num ) ) ; } for ( Integer num : _src2 ) { assertTrue ( _col2 . contains ( num ) ) ; } }
Test of contains method, of class ReadOnlyCollection.
Test of contains method of class ReadOnlyCollection .