Parcial Unico/ParcialUnico2017/src/test/java/clases/TSBDeQueueTest.java
@org.junit.Test
    public void testRemoveLastOccurrence() {
        System.out.println("removeLastOccurrence");
        assertTrue(instance.removeLastOccurrence(7));
        assertFalse(instance.removeLastOccurrence(99));
        assertFalse(empty.removeLastOccurrence(10));
        // Extra.
        assertFalse(instance.removeLastOccurrence(null));
        assertFalse(instance.removeLastOccurrence("Random"));
        // Controla que no se haya eliminado el primer 7
        Iterator it = instance.iterator();
        it.next();
        it.next();
        assertEquals((Integer) 7, it.next());
    }
/**
     * Test of removeLastOccurrence method, of class TSBDeQueue.
     */
Test of removeLastOccurrence method, of class TSBDeQueue.
Test of removeLastOccurrence method of class TSBDeQueue .
@org.junit.Test
    public void testRemoveLastOccurrence() {
        System.out.println("removeLastOccurrence");
        assertTrue(instance.removeLastOccurrence(7));
        assertFalse(instance.removeLastOccurrence(99));
        assertFalse(empty.removeLastOccurrence(10));
        assertFalse(instance.removeLastOccurrence(null));
        assertFalse(instance.removeLastOccurrence("Random"));
        Iterator it = instance.iterator();
        it.next();
        it.next();
        assertEquals((Integer) 7, it.next());
    }
@ org . junit . Test public void testRemoveLastOccurrence ( ) { System . out . println ( "removeLastOccurrence" ) ; assertTrue ( instance . removeLastOccurrence ( 7 ) ) ; assertFalse ( instance . removeLastOccurrence ( 99 ) ) ; assertFalse ( empty . removeLastOccurrence ( 10 ) ) ; assertFalse ( instance . removeLastOccurrence ( null ) ) ; assertFalse ( instance . removeLastOccurrence ( "Random" ) ) ; Iterator it = instance . iterator ( ) ; it . next ( ) ; it . next ( ) ; assertEquals ( ( Integer ) 7 , it . next ( ) ) ; }
Test of removeLastOccurrence method, of class TSBDeQueue.
Test of removeLastOccurrence method of class TSBDeQueue .
// Extra.
 // Controla que no se haya eliminado el primer 7
