src/test/java/com/ve/cxe/commons/collection/FastFixedPumpTest.java
/**
     * Test of Add and Remove method
     */
Test of Add and Remove method
Test of Add and Remove method
@Test
    public void testAddRemove() {
        System.out.println("FastFixedPumpTest Add");
        FastFixedPump fastFixedPump = new FastFixedPump(1, 1);
        String value = "V";
        fastFixedPump.add(value);
        assertTrue(fastFixedPump.size() == 1);
        assertTrue(fastFixedPump.remove(value));
        assertTrue(fastFixedPump.size() == 0);
    }
@ Test public void testAddRemove ( ) { System . out . println ( "FastFixedPumpTest Add" ) ; FastFixedPump fastFixedPump = new FastFixedPump ( 1 , 1 ) ; String value = "V" ; fastFixedPump . add ( value ) ; assertTrue ( fastFixedPump . size ( ) == 1 ) ; assertTrue ( fastFixedPump . remove ( value ) ) ; assertTrue ( fastFixedPump . size ( ) == 0 ) ; }
Test of Add and Remove method
Test of Add and Remove method