package com.smartdevicelink.managers.file;

import com.smartdevicelink.AndroidTestCase2;
import com.smartdevicelink.managers.file.filetypes.SdlArtwork;
import com.smartdevicelink.managers.file.filetypes.SdlFile;
import com.smartdevicelink.proxy.rpc.enums.StaticIconName;
import com.smartdevicelink.test.Test;

public class SdlArtworkTests extends AndroidTestCase2 {

    public void testClone(){
        SdlArtwork original = Test.GENERAL_ARTWORK;
        SdlArtwork clone = original.clone();

        assertNotNull(clone);
        assertNotSame(original,clone);


        assertEquals(original.getResourceId(), clone.getResourceId());

        assertEquals(original.getFileData(), clone.getFileData());

        assertNotNull(original.getImageRPC());
        assertNotNull(clone.getImageRPC());

        assertNotSame(original.getImageRPC(),clone.getImageRPC());
        assertEquals(original.getImageRPC().getIsTemplate(), clone.getImageRPC().getIsTemplate());
        assertEquals(original.getImageRPC().getValue(), clone.getImageRPC().getValue());
        assertEquals(original.getImageRPC().getImageType(), clone.getImageRPC().getImageType());


        SdlArtwork artwork = new SdlArtwork(StaticIconName.ALBUM);
        assertNotNull(artwork);

        SdlArtwork staticIconClone = artwork.clone();
        assertNotNull(staticIconClone);


        assertTrue(clone instanceof Cloneable);
        assertTrue(artwork instanceof Cloneable);


    }
}

@@ -483,24 +483,474 @@
 l.clone();%0A%0A
+        equalTest(original, clone);%0A%0A%0A        SdlArtwork artwork = new SdlArtwork(StaticIconName.ALBUM);%0A        assertNotNull(artwork);%0A%0A        SdlArtwork staticIconClone = artwork.clone();%0A        assertNotNull(staticIconClone);%0A%0A%0A        assertTrue(clone instanceof Cloneable);%0A        assertTrue(artwork instanceof Cloneable);%0A%0A    %7D%0A%0A    public static boolean equalTest(SdlArtwork original, SdlArtwork clone)%7B%0A%0A        assertNotNull(original);%0A
         asse
@@ -1589,33 +1589,32 @@
 geType());%0A%0A
-%0A
         
 SdlArtwork a
@@ -1605,295 +1605,20 @@
     
-SdlArtwork artwork = new SdlArtwork(StaticIconName.ALBUM);%0A        assertNotNull(artwork);%0A%0A        SdlArtwork staticIconClone = artwork.clone();%0A        assertNotNull(staticIconClone);%0A%0A%0A        assertTrue(clone instanceof Cloneable);%0A        assertTrue(artwork instanceof Cloneable);%0A%0A
+return true;
 %0A   

Update SdlArtwork test to have reusable equalTest