Parcial Unico/ParcialUnico2017/src/test/java/clases/TSBDeQueueTest.java
@org.junit.Test
    public void testRemoveFirstOccurrence() {
        System.out.println("removeFirstOccurrence");
        assertTrue(instance.removeFirstOccurrence(7));
        assertFalse(instance.removeFirstOccurrence(99));
        assertFalse(empty.removeFirstOccurrence(10));
        // Extra.
        assertFalse(instance.removeFirstOccurrence(null));
        assertFalse(instance.removeFirstOccurrence("Random"));
        // Controla que se haya eliminado el primer 7 y no otro.
        Iterator it = instance.iterator();
        it.next();
        it.next();
        assertEquals((Integer) 6, it.next());

    }
/**
     * Test of removeFirstOccurrence method, of class TSBDeQueue.
     */
Test of removeFirstOccurrence method, of class TSBDeQueue.
Test of removeFirstOccurrence method of class TSBDeQueue .
@org.junit.Test
    public void testRemoveFirstOccurrence() {
        System.out.println("removeFirstOccurrence");
        assertTrue(instance.removeFirstOccurrence(7));
        assertFalse(instance.removeFirstOccurrence(99));
        assertFalse(empty.removeFirstOccurrence(10));
        assertFalse(instance.removeFirstOccurrence(null));
        assertFalse(instance.removeFirstOccurrence("Random"));
        Iterator it = instance.iterator();
        it.next();
        it.next();
        assertEquals((Integer) 6, it.next());
    }
@ org . junit . Test public void testRemoveFirstOccurrence ( ) { System . out . println ( "removeFirstOccurrence" ) ; assertTrue ( instance . removeFirstOccurrence ( 7 ) ) ; assertFalse ( instance . removeFirstOccurrence ( 99 ) ) ; assertFalse ( empty . removeFirstOccurrence ( 10 ) ) ; assertFalse ( instance . removeFirstOccurrence ( null ) ) ; assertFalse ( instance . removeFirstOccurrence ( "Random" ) ) ; Iterator it = instance . iterator ( ) ; it . next ( ) ; it . next ( ) ; assertEquals ( ( Integer ) 6 , it . next ( ) ) ; }
Test of removeFirstOccurrence method, of class TSBDeQueue.
Test of removeFirstOccurrence method of class TSBDeQueue .
// Extra.
 // Controla que se haya eliminado el primer 7 y no otro.
