This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git


The following commit(s) were added to refs/heads/master by this push:
     new 1a87e7a9 Normalize test method names
1a87e7a9 is described below

commit 1a87e7a944a6156045d2c549dd765bfd117662ef
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Nov 4 08:39:26 2023 -0400

    Normalize test method names
---
 .../compress/archivers/examples/ExpanderTest.java      |  2 +-
 .../commons/compress/archivers/tar/BigFilesIT.java     |  2 +-
 .../archivers/tar/TarMemoryFileSystemTest.java         |  4 ++--
 .../archivers/zip/ParallelScatterZipCreatorTest.java   |  4 ++--
 .../archivers/zip/ZipArchiveInputStreamTest.java       | 10 +++++-----
 .../commons/compress/archivers/zip/ZipFileTest.java    |  2 +-
 .../archivers/zip/ZipSplitOutputStreamTest.java        |  6 +++---
 .../compressors/snappy/SnappyRoundtripTest.java        |  4 ++--
 .../apache/commons/compress/utils/ByteUtilsTest.java   | 16 ++++++++--------
 .../utils/MultiReadOnlySeekableByteChannelTest.java    |  8 ++++----
 .../utils/SeekableInMemoryByteChannelTest.java         | 18 +++++++++---------
 11 files changed, 38 insertions(+), 38 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/compress/archivers/examples/ExpanderTest.java
 
b/src/test/java/org/apache/commons/compress/archivers/examples/ExpanderTest.java
index 1c48b745..b572e9eb 100644
--- 
a/src/test/java/org/apache/commons/compress/archivers/examples/ExpanderTest.java
+++ 
b/src/test/java/org/apache/commons/compress/archivers/examples/ExpanderTest.java
@@ -175,7 +175,7 @@ public class ExpanderTest extends AbstractTest {
     }
 
     @Test
-    public void tarFileVersion() throws IOException, ArchiveException {
+    public void testTarFileVersion() throws IOException, ArchiveException {
         setupTar();
         try (TarFile f = new TarFile(archive)) {
             new Expander().expand(f, tempResultDir);
diff --git 
a/src/test/java/org/apache/commons/compress/archivers/tar/BigFilesIT.java 
b/src/test/java/org/apache/commons/compress/archivers/tar/BigFilesIT.java
index a334f1b0..beaf0f65 100644
--- a/src/test/java/org/apache/commons/compress/archivers/tar/BigFilesIT.java
+++ b/src/test/java/org/apache/commons/compress/archivers/tar/BigFilesIT.java
@@ -62,7 +62,7 @@ public class BigFilesIT extends AbstractTest {
     }
 
     @Test
-    public void tarFileReadFileHeadersOfArchiveBiggerThan8GByte() throws 
Exception {
+    public void testTarFileReadFileHeadersOfArchiveBiggerThan8GByte() throws 
Exception {
         final Path file = getPath("8.posix.tar.gz");
         final Path output = tempResultDir.toPath().resolve("8.posix.tar");
         try (InputStream in = new 
BufferedInputStream(Files.newInputStream(file));
diff --git 
a/src/test/java/org/apache/commons/compress/archivers/tar/TarMemoryFileSystemTest.java
 
b/src/test/java/org/apache/commons/compress/archivers/tar/TarMemoryFileSystemTest.java
index d97fda02..5bace5ee 100644
--- 
a/src/test/java/org/apache/commons/compress/archivers/tar/TarMemoryFileSystemTest.java
+++ 
b/src/test/java/org/apache/commons/compress/archivers/tar/TarMemoryFileSystemTest.java
@@ -42,7 +42,7 @@ import 
com.github.marschall.memoryfilesystem.MemoryFileSystemBuilder;
 public class TarMemoryFileSystemTest {
 
     @Test
-    public void tarFromMemoryFileSystem() throws IOException, ArchiveException 
{
+    public void testTarFromMemoryFileSystem() throws IOException, 
ArchiveException {
         try (FileSystem fileSystem = 
MemoryFileSystemBuilder.newLinux().build()) {
             final Path p = fileSystem.getPath("test.txt");
             Files.write(p, "Test".getBytes(UTF_8));
@@ -61,7 +61,7 @@ public class TarMemoryFileSystemTest {
     }
 
     @Test
-    public void tarToMemoryFileSystem() throws IOException, ArchiveException {
+    public void testTarToMemoryFileSystem() throws IOException, 
ArchiveException {
         try (FileSystem fileSystem = 
MemoryFileSystemBuilder.newLinux().build()) {
             final Path p = fileSystem.getPath("target.tar");
 
diff --git 
a/src/test/java/org/apache/commons/compress/archivers/zip/ParallelScatterZipCreatorTest.java
 
b/src/test/java/org/apache/commons/compress/archivers/zip/ParallelScatterZipCreatorTest.java
index 83b6a9be..d9ce624b 100644
--- 
a/src/test/java/org/apache/commons/compress/archivers/zip/ParallelScatterZipCreatorTest.java
+++ 
b/src/test/java/org/apache/commons/compress/archivers/zip/ParallelScatterZipCreatorTest.java
@@ -249,7 +249,7 @@ public class ParallelScatterZipCreatorTest {
     }
 
     @Test
-    public void throwsExceptionWithCompressionLevelTooBig() {
+    public void testThrowsExceptionWithCompressionLevelTooBig() {
         final int compressLevelTooBig = Deflater.BEST_COMPRESSION + 1;
         final ExecutorService es = Executors.newFixedThreadPool(1);
         assertThrows(IllegalArgumentException.class, () -> new 
ParallelScatterZipCreator(es,
@@ -258,7 +258,7 @@ public class ParallelScatterZipCreatorTest {
     }
 
     @Test
-    public void throwsExceptionWithCompressionLevelTooSmall() {
+    public void testThrowsExceptionWithCompressionLevelTooSmall() {
         final int compressLevelTooSmall = Deflater.DEFAULT_COMPRESSION - 1;
         final ExecutorService es = Executors.newFixedThreadPool(1);
         assertThrows(IllegalArgumentException.class, () -> new 
ParallelScatterZipCreator(es,
diff --git 
a/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
 
b/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
index 11009554..835fa57a 100644
--- 
a/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
+++ 
b/src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
@@ -657,7 +657,7 @@ public class ZipArchiveInputStreamTest extends AbstractTest 
{
     }
 
     @Test
-    public void throwsIfStoredDDIsDifferentFromLengthRead() throws IOException 
{
+    public void testThrowsIfStoredDDIsDifferentFromLengthRead() throws 
IOException {
         try (InputStream fs = 
newInputStream("bla-stored-dd-contradicts-actualsize.zip");
                 ZipArchiveInputStream archive = new ZipArchiveInputStream(fs, 
"UTF-8", true, true)) {
             final ZipArchiveEntry e = archive.getNextZipEntry();
@@ -670,7 +670,7 @@ public class ZipArchiveInputStreamTest extends AbstractTest 
{
     }
 
     @Test
-    public void throwsIfStoredDDIsInconsistent() throws IOException {
+    public void testThrowsIfStoredDDIsInconsistent() throws IOException {
         try (InputStream fs = newInputStream("bla-stored-dd-sizes-differ.zip");
                 ZipArchiveInputStream archive = new ZipArchiveInputStream(fs, 
"UTF-8", true, true)) {
             final ZipArchiveEntry e = archive.getNextZipEntry();
@@ -686,7 +686,7 @@ public class ZipArchiveInputStreamTest extends AbstractTest 
{
      * @see <a 
href="https://issues.apache.org/jira/browse/COMPRESS-523";>COMPRESS-523</a>
      */
     @Test
-    public void throwsIfThereIsNoEocd() {
+    public void testThrowsIfThereIsNoEocd() {
         assertThrows(IOException.class, () -> fuzzingTest(new int[] { 0x50, 
0x4b, 0x01, 0x02, 0x14, 0x00, 0x14, 0x00, 0x08, 0x00, 0x08, 0x00, 0x00, 0x00, 
0x00,
                 0x00, 0x43, 0xbe, 0x00, 0x00, 0x00, 0xb7, 0xe8, 0x07, 0x00, 
0x00, 0x00, 0x01, 0x00, 0x00 }));
     }
@@ -695,7 +695,7 @@ public class ZipArchiveInputStreamTest extends AbstractTest 
{
      * @see <a 
href="https://issues.apache.org/jira/browse/COMPRESS-518";>COMPRESS-518</a>
      */
     @Test
-    public void throwsIfZip64ExtraCouldNotBeUnderstood() {
+    public void testThrowsIfZip64ExtraCouldNotBeUnderstood() {
         assertThrows(IOException.class,
                 () -> fuzzingTest(new int[] { 0x50, 0x4b, 0x03, 0x04, 0x2e, 
0x00, 0x00, 0x00, 0x0c, 0x00, 0x84, 0xb6, 0xba, 0x46, 0x72, 0xb6, 0xfe, 0x77, 
0x63,
                         0x00, 0x00, 0x00, 0x6b, 0x00, 0x00, 0x00, 0x03, 0x00, 
0x1c, 0x00, 0x62, 0x62, 0x62, 0x01, 0x00, 0x09, 0x00, 0x03, 0xe7, 0xce, 0x64,
@@ -703,7 +703,7 @@ public class ZipArchiveInputStreamTest extends AbstractTest 
{
     }
 
     @Test
-    public void throwsIOExceptionIfThereIsCorruptedZip64Extra() throws 
IOException {
+    public void testThrowsIOExceptionIfThereIsCorruptedZip64Extra() throws 
IOException {
         try (InputStream fis = newInputStream("COMPRESS-546.zip");
                 ZipArchiveInputStream zipInputStream = new 
ZipArchiveInputStream(fis)) {
             assertThrows(IOException.class, () -> 
getAllZipEntries(zipInputStream));
diff --git 
a/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java 
b/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java
index 93ea599c..8a2ec029 100644
--- a/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java
+++ b/src/test/java/org/apache/commons/compress/archivers/zip/ZipFileTest.java
@@ -969,7 +969,7 @@ public class ZipFileTest extends AbstractTest {
     }
 
     @Test
-    public void throwsExceptionWhenWritingPreamble() throws IOException {
+    public void testThrowsExceptionWhenWritingPreamble() throws IOException {
         final ZipArchiveOutputStream outputStream = new 
ZipArchiveOutputStream(new ByteArrayOutputStream());
         outputStream.putArchiveEntry(new ZipArchiveEntry());
         assertThrows(IllegalStateException.class, () -> 
outputStream.writePreamble(ByteUtils.EMPTY_BYTE_ARRAY));
diff --git 
a/src/test/java/org/apache/commons/compress/archivers/zip/ZipSplitOutputStreamTest.java
 
b/src/test/java/org/apache/commons/compress/archivers/zip/ZipSplitOutputStreamTest.java
index 4cd57c05..edc1b0d6 100644
--- 
a/src/test/java/org/apache/commons/compress/archivers/zip/ZipSplitOutputStreamTest.java
+++ 
b/src/test/java/org/apache/commons/compress/archivers/zip/ZipSplitOutputStreamTest.java
@@ -76,17 +76,17 @@ public class ZipSplitOutputStreamTest extends AbstractTest {
     }
 
     @Test
-    public void throwsExceptionIfSplitSizeIsTooLarge() {
+    public void testThrowsExceptionIfSplitSizeIsTooLarge() {
         assertThrows(IllegalArgumentException.class, () -> new 
ZipSplitOutputStream(createTempFile("temp", "zip"), 4 * 1024 * 1024 * 1024L));
     }
 
     @Test
-    public void throwsExceptionIfSplitSizeIsTooSmall() {
+    public void testThrowsExceptionIfSplitSizeIsTooSmall() {
         assertThrows(IllegalArgumentException.class, () -> new 
ZipSplitOutputStream(createTempFile("temp", "zip"), 64 * 1024 - 1));
     }
 
     @Test
-    public void throwsIfUnsplittableSizeLargerThanSplitSize() throws 
IOException {
+    public void testThrowsIfUnsplittableSizeLargerThanSplitSize() throws 
IOException {
         final long splitSize = 100 * 1024;
         final ZipSplitOutputStream output = new 
ZipSplitOutputStream(createTempFile("temp", "zip"), splitSize);
         assertThrows(IllegalArgumentException.class, () -> 
output.prepareToWriteUnsplittableContent(splitSize + 1));
diff --git 
a/src/test/java/org/apache/commons/compress/compressors/snappy/SnappyRoundtripTest.java
 
b/src/test/java/org/apache/commons/compress/compressors/snappy/SnappyRoundtripTest.java
index f5e2144e..4e403f4b 100644
--- 
a/src/test/java/org/apache/commons/compress/compressors/snappy/SnappyRoundtripTest.java
+++ 
b/src/test/java/org/apache/commons/compress/compressors/snappy/SnappyRoundtripTest.java
@@ -128,7 +128,7 @@ public final class SnappyRoundtripTest extends AbstractTest 
{
     }
 
     @Test
-    public void tryReallyBigOffset() throws IOException {
+    public void testTryReallyBigOffset() throws IOException {
         // "normal" Snappy files will never reach offsets beyond
         // 16bits (i.e. those using four bytes to encode the length)
         // as the block size is only 32k. This means we never execute
@@ -159,7 +159,7 @@ public final class SnappyRoundtripTest extends AbstractTest 
{
     }
 
     @Test
-    public void tryReallyLongLiterals() throws IOException {
+    public void testTryReallyLongLiterals() throws IOException {
         // "normal" Snappy files will never reach literal blocks with
         // length beyond 16bits (i.e. those using three or four bytes
         // to encode the length) as the block size is only 32k. This
diff --git a/src/test/java/org/apache/commons/compress/utils/ByteUtilsTest.java 
b/src/test/java/org/apache/commons/compress/utils/ByteUtilsTest.java
index fd7bbbd3..b2971992 100644
--- a/src/test/java/org/apache/commons/compress/utils/ByteUtilsTest.java
+++ b/src/test/java/org/apache/commons/compress/utils/ByteUtilsTest.java
@@ -145,21 +145,21 @@ public class ByteUtilsTest {
     }
 
     @Test
-    public void toLittleEndianToByteArray() {
+    public void testToLittleEndianToByteArray() {
         final byte[] b = new byte[4];
         toLittleEndian(b, 2 + 3 * 256 + 4 * 256 * 256, 1, 3);
         assertArrayEquals(new byte[] { 2, 3, 4 }, Arrays.copyOfRange(b, 1, 4));
     }
 
     @Test
-    public void toLittleEndianToByteArrayUnsignedInt32() {
+    public void testToLittleEndianToByteArrayUnsignedInt32() {
         final byte[] b = new byte[4];
         toLittleEndian(b, 2 + 3 * 256 + 4 * 256 * 256 + 128L * 256 * 256 * 
256, 0, 4);
         assertArrayEquals(new byte[] { 2, 3, 4, (byte) 128 }, b);
     }
 
     @Test
-    public void toLittleEndianToConsumer() throws IOException {
+    public void testToLittleEndianToConsumer() throws IOException {
         final byte[] byteArray;
         final byte[] expected = { 2, 3, 4 };
         try (ByteArrayOutputStream bos = new ByteArrayOutputStream()) {
@@ -171,7 +171,7 @@ public class ByteUtilsTest {
     }
 
     @Test
-    public void toLittleEndianToConsumerUnsignedInt32() throws IOException {
+    public void testToLittleEndianToConsumerUnsignedInt32() throws IOException 
{
         final byte[] byteArray;
         final byte[] expected = { 2, 3, 4, (byte) 128 };
         try (ByteArrayOutputStream bos = new ByteArrayOutputStream()) {
@@ -183,7 +183,7 @@ public class ByteUtilsTest {
     }
 
     @Test
-    public void toLittleEndianToDataOutput() throws IOException {
+    public void testToLittleEndianToDataOutput() throws IOException {
         final byte[] byteArray;
         final byte[] expected = { 2, 3, 4 };
         try (ByteArrayOutputStream bos = new ByteArrayOutputStream()) {
@@ -196,7 +196,7 @@ public class ByteUtilsTest {
     }
 
     @Test
-    public void toLittleEndianToDataOutputUnsignedInt32() throws IOException {
+    public void testToLittleEndianToDataOutputUnsignedInt32() throws 
IOException {
         final byte[] byteArray;
         final byte[] expected = { 2, 3, 4, (byte) 128 };
         try (ByteArrayOutputStream bos = new ByteArrayOutputStream()) {
@@ -209,7 +209,7 @@ public class ByteUtilsTest {
     }
 
     @Test
-    public void toLittleEndianToStream() throws IOException {
+    public void testToLittleEndianToStream() throws IOException {
         final byte[] byteArray;
         final byte[] expected = { 2, 3, 4 };
         try (ByteArrayOutputStream bos = new ByteArrayOutputStream()) {
@@ -221,7 +221,7 @@ public class ByteUtilsTest {
     }
 
     @Test
-    public void toLittleEndianToStreamUnsignedInt32() throws IOException {
+    public void testToLittleEndianToStreamUnsignedInt32() throws IOException {
         final byte[] byteArray;
         final byte[] expected = { 2, 3, 4, (byte) 128 };
         try (ByteArrayOutputStream bos = new ByteArrayOutputStream()) {
diff --git 
a/src/test/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannelTest.java
 
b/src/test/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannelTest.java
index 5db712b3..29b758c7 100644
--- 
a/src/test/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannelTest.java
+++ 
b/src/test/java/org/apache/commons/compress/utils/MultiReadOnlySeekableByteChannelTest.java
@@ -327,7 +327,7 @@ public class MultiReadOnlySeekableByteChannelTest {
      * <q>ClosedChannelException - If this channel is closed</q>
      */
     @Test
-    public void throwsClosedChannelExceptionWhenPositionIsSetOnClosedChannel() 
throws Exception {
+    public void 
testThrowsClosedChannelExceptionWhenPositionIsSetOnClosedChannel() throws 
Exception {
         try (SeekableByteChannel c = testChannel()) {
             c.close();
             assertThrows(ClosedChannelException.class, () -> c.position(0));
@@ -340,7 +340,7 @@ public class MultiReadOnlySeekableByteChannelTest {
      * <q>ClosedChannelException - If this channel is closed</q>
      */
     @Test
-    public void throwsClosedChannelExceptionWhenSizeIsReadOnClosedChannel() 
throws Exception {
+    public void 
testThrowsClosedChannelExceptionWhenSizeIsReadOnClosedChannel() throws 
Exception {
         try (SeekableByteChannel c = testChannel()) {
             c.close();
             assertThrows(ClosedChannelException.class, () -> c.size());
@@ -351,14 +351,14 @@ public class MultiReadOnlySeekableByteChannelTest {
      * <q>IOException - If the new position is negative</q>
      */
     @Test
-    public void throwsIOExceptionWhenPositionIsSetToANegativeValue() throws 
Exception {
+    public void testThrowsIOExceptionWhenPositionIsSetToANegativeValue() 
throws Exception {
         try (SeekableByteChannel c = testChannel()) {
             assertThrows(IllegalArgumentException.class, () -> c.position(-1));
         }
     }
 
     @Test
-    public void twoEmptyChannelsConcatenateAsEmptyChannel() throws IOException 
{
+    public void testTwoEmptyChannelsConcatenateAsEmptyChannel() throws 
IOException {
         try (SeekableByteChannel channel = 
MultiReadOnlySeekableByteChannel.forSeekableByteChannels(makeEmpty(), 
makeEmpty())) {
             checkEmpty(channel);
         }
diff --git 
a/src/test/java/org/apache/commons/compress/utils/SeekableInMemoryByteChannelTest.java
 
b/src/test/java/org/apache/commons/compress/utils/SeekableInMemoryByteChannelTest.java
index 60eefe16..9dea2c53 100644
--- 
a/src/test/java/org/apache/commons/compress/utils/SeekableInMemoryByteChannelTest.java
+++ 
b/src/test/java/org/apache/commons/compress/utils/SeekableInMemoryByteChannelTest.java
@@ -255,7 +255,7 @@ public class SeekableInMemoryByteChannelTest {
      * <q>ClosedChannelException - If this channel is closed</q>
      */
     @Test
-    public void throwsClosedChannelExceptionWhenPositionIsSetOnClosedChannel() 
throws Exception {
+    public void 
testThrowsClosedChannelExceptionWhenPositionIsSetOnClosedChannel() throws 
Exception {
         try (SeekableByteChannel c = new SeekableInMemoryByteChannel()) {
             c.close();
             assertThrows(ClosedChannelException.class, () -> c.position(0));
@@ -290,7 +290,7 @@ public class SeekableInMemoryByteChannelTest {
      * <q>IllegalArgumentException - If the new position is negative</q>
      */
     @Test
-    public void throwsIllegalArgumentExceptionWhenTruncatingToANegativeSize() 
throws Exception {
+    public void 
testThrowsIllegalArgumentExceptionWhenTruncatingToANegativeSize() throws 
Exception {
         try (SeekableByteChannel c = new SeekableInMemoryByteChannel()) {
             assertThrows(IllegalArgumentException.class, () -> c.truncate(-1));
         }
@@ -302,7 +302,7 @@ public class SeekableInMemoryByteChannelTest {
      * <q>IOException - If the new position is negative</q>
      */
     @Test
-    public void throwsIOExceptionWhenPositionIsSetToANegativeValue() throws 
Exception {
+    public void testThrowsIOExceptionWhenPositionIsSetToANegativeValue() 
throws Exception {
         try (SeekableByteChannel c = new SeekableInMemoryByteChannel()) {
             assertThrows(IOException.class, () -> c.position(-1));
         }
@@ -312,7 +312,7 @@ public class SeekableInMemoryByteChannelTest {
      * <q> In either case, if the current position is greater than the given 
size then it is set to that size.</q>
      */
     @Test
-    public void truncateDoesntChangeSmallPosition() throws Exception {
+    public void testTruncateDoesntChangeSmallPosition() throws Exception {
         try (SeekableByteChannel c = new 
SeekableInMemoryByteChannel(testData)) {
             c.position(1);
             c.truncate(testData.length - 1);
@@ -325,7 +325,7 @@ public class SeekableInMemoryByteChannelTest {
      * <q> In either case, if the current position is greater than the given 
size then it is set to that size.</q>
      */
     @Test
-    public void 
truncateMovesPositionWhenNewSizeIsBiggerThanSizeAndPositionIsEvenBigger() 
throws Exception {
+    public void 
testTruncateMovesPositionWhenNewSizeIsBiggerThanSizeAndPositionIsEvenBigger() 
throws Exception {
         try (SeekableByteChannel c = new 
SeekableInMemoryByteChannel(testData)) {
             c.position(2 * testData.length);
             c.truncate(testData.length + 1);
@@ -338,7 +338,7 @@ public class SeekableInMemoryByteChannelTest {
      * <q> In either case, if the current position is greater than the given 
size then it is set to that size.</q>
      */
     @Test
-    public void 
truncateMovesPositionWhenNotResizingButPositionBiggerThanSize() throws 
Exception {
+    public void 
testTruncateMovesPositionWhenNotResizingButPositionBiggerThanSize() throws 
Exception {
         try (SeekableByteChannel c = new 
SeekableInMemoryByteChannel(testData)) {
             c.position(2 * testData.length);
             c.truncate(testData.length);
@@ -351,7 +351,7 @@ public class SeekableInMemoryByteChannelTest {
      * <q> In either case, if the current position is greater than the given 
size then it is set to that size.</q>
      */
     @Test
-    public void truncateMovesPositionWhenShrinkingBeyondPosition() throws 
Exception {
+    public void testTruncateMovesPositionWhenShrinkingBeyondPosition() throws 
Exception {
         try (SeekableByteChannel c = new 
SeekableInMemoryByteChannel(testData)) {
             c.position(4);
             c.truncate(3);
@@ -364,7 +364,7 @@ public class SeekableInMemoryByteChannelTest {
      * <q>If the given size is greater than or equal to the current size then 
the entity is not modified.</q>
      */
     @Test
-    public void truncateToBiggerSizeDoesntChangeAnything() throws Exception {
+    public void testTruncateToBiggerSizeDoesntChangeAnything() throws 
Exception {
         try (SeekableByteChannel c = new 
SeekableInMemoryByteChannel(testData)) {
             assertEquals(testData.length, c.size());
             c.truncate(testData.length + 1);
@@ -379,7 +379,7 @@ public class SeekableInMemoryByteChannelTest {
      * <q>If the given size is greater than or equal to the current size then 
the entity is not modified.</q>
      */
     @Test
-    public void truncateToCurrentSizeDoesntChangeAnything() throws Exception {
+    public void testTruncateToCurrentSizeDoesntChangeAnything() throws 
Exception {
         try (SeekableByteChannel c = new 
SeekableInMemoryByteChannel(testData)) {
             assertEquals(testData.length, c.size());
             c.truncate(testData.length);

Reply via email to