@@ -0,0 +1,2118 @@
+package org.codehaus.plexus.archiver;%0A%0Aimport java.io.IOException;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class AbstractArchiverTest extends TestCase%0A%7B%0A    private AbstractArchiver archiver;%0A%0A    protected void setUp() throws Exception%0A    %7B%0A        super.setUp();%0A        this.archiver = new AbstractArchiver()%0A        %7B%0A            protected String getArchiveType()%0A            %7B%0A                throw new UnsupportedOperationException();%0A            %7D%0A%0A            protected void execute() throws ArchiverException, IOException%0A            %7B%0A                throw new UnsupportedOperationException();%0A            %7D%0A%0A            protected void close() throws IOException%0A            %7B%0A                throw new UnsupportedOperationException();%0A            %7D%0A        %7D;%0A    %7D%0A%0A    public void testModesAndOverridesAreUnsetByDefault()%0A    %7B%0A        assertEquals(-1, archiver.getDefaultFileMode());%0A        assertEquals(-1, archiver.getOverrideFileMode());%0A%0A        assertEquals(-1, archiver.getDefaultDirectoryMode());%0A        assertEquals(-1, archiver.getOverrideDirectoryMode());%0A    %7D%0A%0A    public void testWhenUnsetModeUsesDefault()%0A    %7B%0A        assertEquals(Archiver.DEFAULT_FILE_MODE, archiver.getFileMode());%0A        assertEquals(Archiver.DEFAULT_DIR_MODE, archiver.getDirectoryMode());%0A    %7D%0A%0A    public void testSetModeIsUsedWithFlagsForType()%0A    %7B%0A        archiver.setFileMode(0400);%0A        assertEquals(0100400, archiver.getFileMode());%0A%0A        archiver.setDirectoryMode(0600);%0A        assertEquals(040600, archiver.getDirectoryMode());%0A    %7D%0A%0A    public void testSetDefaultIncludesFlagsForType()%0A    %7B%0A        archiver.setDefaultFileMode(0400);%0A        assertEquals(0100400, archiver.getDefaultFileMode());%0A%0A        archiver.setDefaultDirectoryMode(0600);%0A        assertEquals(040600, archiver.getDefaultDirectoryMode());%0A    %7D%0A%0A    public void testDefaultIsUsedWhenModeIsUnset()%0A    %7B%0A        archiver.setDefaultFileMode(0400);%0A        assertEquals(0100400, archiver.getFileMode());%0A%0A        archiver.setDefaultDirectoryMode(0600);%0A        assertEquals(040600, archiver.getDirectoryMode());%0A    %7D%0A%7D%0A

Add tests for existing AbstractArchiver behaviour.