Parcial Unico/ParcialUnico2017/src/test/java/clases/TSBDeQueueTest.java
@org.junit.Test
    public void testClone() {
        System.out.println("clone");
        try {
            TSBDeQueue<Integer> copy = (TSBDeQueue<Integer>) instance.clone();
            assertTrue(instance.equals(copy));
            // Test de clonado profundo
            instance.addFirst(50);
            assertEquals((Integer) 1, copy.getFirst());
        } catch (CloneNotSupportedException e) {
            // No deberia ocurrir.
            fail();
        }
    }
/**
     * Test of clone method, of class TSBDeQueue.
     */
Test of clone method, of class TSBDeQueue.
Test of clone method of class TSBDeQueue .
@org.junit.Test
    public void testClone() {
        System.out.println("clone");
        try {
            TSBDeQueue<Integer> copy = (TSBDeQueue<Integer>) instance.clone();
            assertTrue(instance.equals(copy));
            instance.addFirst(50);
            assertEquals((Integer) 1, copy.getFirst());
        } catch (CloneNotSupportedException e) {
            fail();
        }
    }
@ org . junit . Test public void testClone ( ) { System . out . println ( "clone" ) ; try { TSBDeQueue < Integer > copy = ( TSBDeQueue < Integer > ) instance . clone ( ) ; assertTrue ( instance . equals ( copy ) ) ; instance . addFirst ( 50 ) ; assertEquals ( ( Integer ) 1 , copy . getFirst ( ) ) ; } catch ( CloneNotSupportedException e ) { fail ( ) ; } }
Test of clone method, of class TSBDeQueue.
Test of clone method of class TSBDeQueue .
// Test de clonado profundo
 // No deberia ocurrir.
