diff options
Diffstat (limited to 'src/testcases/org/apache/poi/poifs/filesystem')
12 files changed, 12 insertions, 15 deletions
diff --git a/src/testcases/org/apache/poi/poifs/filesystem/TestDirectoryNode.java b/src/testcases/org/apache/poi/poifs/filesystem/TestDirectoryNode.java index b9642326fa..9212aa6c8f 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/TestDirectoryNode.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/TestDirectoryNode.java @@ -36,7 +36,7 @@ import org.junit.jupiter.api.Test; /** * Class to test DirectoryNode functionality */ -public final class TestDirectoryNode { +final class TestDirectoryNode { /** * test trivial constructor (a DirectoryNode with no children) diff --git a/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentDescriptor.java b/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentDescriptor.java index 17a2fb9def..17c1b572d5 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentDescriptor.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentDescriptor.java @@ -25,7 +25,7 @@ import org.junit.jupiter.api.Test; /** * Class to test DocumentDescriptor functionality */ -public final class TestDocumentDescriptor { +final class TestDocumentDescriptor { /** * test equality diff --git a/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentInputStream.java b/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentInputStream.java index 27bb00974a..c0d4de1353 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentInputStream.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentInputStream.java @@ -36,7 +36,7 @@ import org.junit.jupiter.api.Test; /** * Class to test DocumentInputStream functionality */ -public final class TestDocumentInputStream { +final class TestDocumentInputStream { private DocumentNode _workbook_n; private byte[] _workbook_data; private static final int _workbook_size = 5000; diff --git a/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentOutputStream.java b/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentOutputStream.java index dadd8dd944..d2815e0254 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentOutputStream.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/TestDocumentOutputStream.java @@ -32,7 +32,7 @@ import org.junit.jupiter.api.Test; /** * Class to test DocumentOutputStream functionality */ -public final class TestDocumentOutputStream { +final class TestDocumentOutputStream { /** * test write(int) behavior diff --git a/src/testcases/org/apache/poi/poifs/filesystem/TestEmptyDocument.java b/src/testcases/org/apache/poi/poifs/filesystem/TestEmptyDocument.java index f83572b2f4..b44b5d5d53 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/TestEmptyDocument.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/TestEmptyDocument.java @@ -29,7 +29,7 @@ import org.apache.poi.util.POILogFactory; import org.apache.poi.util.POILogger; import org.junit.jupiter.api.Test; -public final class TestEmptyDocument { +final class TestEmptyDocument { private static final POILogger LOG = POILogFactory.getLogger(TestEmptyDocument.class); @Test diff --git a/src/testcases/org/apache/poi/poifs/filesystem/TestFileSystemBugs.java b/src/testcases/org/apache/poi/poifs/filesystem/TestFileSystemBugs.java index 42028da91d..ef504aca69 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/TestFileSystemBugs.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/TestFileSystemBugs.java @@ -36,7 +36,7 @@ import org.junit.jupiter.api.Test; /** * Tests bugs for POIFSFileSystem */ -public final class TestFileSystemBugs { +final class TestFileSystemBugs { private static final POIDataSamples _samples = POIDataSamples.getPOIFSInstance(); private static final POIDataSamples _ssSamples = POIDataSamples.getSpreadSheetInstance(); diff --git a/src/testcases/org/apache/poi/poifs/filesystem/TestFilteringDirectoryNode.java b/src/testcases/org/apache/poi/poifs/filesystem/TestFilteringDirectoryNode.java index 8297eb1606..aa9c8883af 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/TestFilteringDirectoryNode.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/TestFilteringDirectoryNode.java @@ -37,7 +37,7 @@ import org.junit.jupiter.api.Test; /** * Class to test FilteringDirectoryNode functionality */ -public final class TestFilteringDirectoryNode { +final class TestFilteringDirectoryNode { private POIFSFileSystem fs; private DirectoryEntry dirA; private DirectoryEntry dirAA; diff --git a/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSDocumentPath.java b/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSDocumentPath.java index 1d6fbcb933..94d8e73e9c 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSDocumentPath.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSDocumentPath.java @@ -22,7 +22,6 @@ import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; -import static org.junit.jupiter.api.Assertions.fail; import java.util.Arrays; @@ -31,7 +30,7 @@ import org.junit.jupiter.api.Test; /** * Class to test POIFSDocumentPath functionality */ -public final class TestPOIFSDocumentPath { +final class TestPOIFSDocumentPath { /** diff --git a/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSFileSystem.java b/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSFileSystem.java index 2bf0493cb9..8682bad46b 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSFileSystem.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSFileSystem.java @@ -46,7 +46,7 @@ import org.junit.jupiter.api.Test; /** * Tests for the older OPOIFS-based POIFSFileSystem */ -public final class TestPOIFSFileSystem { +final class TestPOIFSFileSystem { private final POIDataSamples _samples = POIDataSamples.getPOIFSInstance(); /** diff --git a/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSMiniStore.java b/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSMiniStore.java index 98493fb530..fcc1e4bcf1 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSMiniStore.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSMiniStore.java @@ -22,7 +22,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.junit.jupiter.api.Assertions.fail; import java.io.ByteArrayInputStream; import java.nio.ByteBuffer; @@ -38,7 +37,7 @@ import org.junit.jupiter.api.Test; * Tests for the Mini Store in the NIO POIFS */ @SuppressWarnings("CatchMayIgnoreException") -public final class TestPOIFSMiniStore { +final class TestPOIFSMiniStore { private static final POIDataSamples _inst = POIDataSamples.getPOIFSInstance(); /** diff --git a/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSStream.java b/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSStream.java index 07cccaf1b8..2a2a8122d1 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSStream.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/TestPOIFSStream.java @@ -26,7 +26,6 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.junit.jupiter.api.Assertions.fail; import static org.junit.jupiter.api.Assumptions.assumeTrue; import java.io.ByteArrayInputStream; @@ -60,7 +59,7 @@ import org.junit.jupiter.api.Test; /** * Tests {@link POIFSStream} */ -public final class TestPOIFSStream { +final class TestPOIFSStream { private static final POIDataSamples _inst = POIDataSamples.getPOIFSInstance(); /** diff --git a/src/testcases/org/apache/poi/poifs/filesystem/TestPropertySorter.java b/src/testcases/org/apache/poi/poifs/filesystem/TestPropertySorter.java index 7e54151c8e..29ed3001f0 100644 --- a/src/testcases/org/apache/poi/poifs/filesystem/TestPropertySorter.java +++ b/src/testcases/org/apache/poi/poifs/filesystem/TestPropertySorter.java @@ -44,7 +44,7 @@ import org.junit.jupiter.api.Test; * See bug 39234 in bugzilla. Thanks to Bill Seddon for providing the solution. * </p> */ -public final class TestPropertySorter { +final class TestPropertySorter { //the correct order of entries in the test file private static final String[] _entries = { |