Permalink
Browse files

Tests: Removed superfluous "test" prefix from test methods in pdf.Str…

…eamTest.
  • Loading branch information...
eseifert committed Aug 19, 2017
1 parent 19fe971 commit 5d1694df1a8d821dcd0e684f7e4791b95c05eeef
Showing with 10 additions and 11 deletions.
  1. +10 −11 src/test/java/de/erichseifert/vectorgraphics2d/pdf/StreamTest.java
@@ -32,21 +32,21 @@
public class StreamTest {
@Test(expected = IllegalStateException.class)
public void testGetLengthThrowsExceptionWhenStreamIsOpen() {
public void getLengthThrowsExceptionWhenStreamIsOpen() {
Stream stream = new Stream();
stream.getLength();
}
@Test(expected = IllegalStateException.class)
public void testGetContentThrowsExceptionWhenStreamIsOpen() {
public void getContentThrowsExceptionWhenStreamIsOpen() {
Stream stream = new Stream();
stream.getContent();
}
@Test
public void testWriteIntWritesDataToStream() throws IOException {
public void writeIntWritesDataToStream() throws IOException {
Stream stream = new Stream();
stream.write(42);
@@ -56,15 +56,15 @@ public void testWriteIntWritesDataToStream() throws IOException {
}
@Test(expected = IOException.class)
public void testWriteIntThrowsExceptionWhenStreamIsClosed() throws IOException {
public void writeIntThrowsExceptionWhenStreamIsClosed() throws IOException {
Stream stream = new Stream();
stream.close();
stream.write(42);
}
@Test
public void testWriteBytesWritesDataToStream() throws IOException {
public void writeBytesWritesDataToStream() throws IOException {
Stream stream = new Stream();
stream.write(new byte[] {42});
@@ -74,15 +74,15 @@ public void testWriteBytesWritesDataToStream() throws IOException {
}
@Test(expected = IOException.class)
public void testWriteBytesThrowsExceptionWhenStreamIsClosed() throws IOException {
public void writeBytesThrowsExceptionWhenStreamIsClosed() throws IOException {
Stream stream = new Stream();
stream.close();
stream.write(new byte[] {42});
}
@Test
public void testLengthIsZeroOnInitialization() {
public void lengthIsZeroOnInitialization() {
Stream stream = new Stream();
stream.close();
@@ -92,7 +92,7 @@ public void testLengthIsZeroOnInitialization() {
}
@Test
public void testLengthEqualsByteCountInWrittenDataWhenNoFiltersAreSet() throws IOException {
public void lengthEqualsByteCountInWrittenDataWhenNoFiltersAreSet() throws IOException {
byte[] garbage = new byte[] {4, 2, 42, -1, 0};
Stream stream = new Stream();
stream.write(garbage);
@@ -104,7 +104,7 @@ public void testLengthEqualsByteCountInWrittenDataWhenNoFiltersAreSet() throws I
}
@Test
public void testWrittenDataIsIdenticalToStreamContentWhenNoFiltersAreUsed() throws IOException {
public void writtenDataIsIdenticalToStreamContentWhenNoFiltersAreUsed() throws IOException {
byte[] data = new byte[] {4, 2, 42, -1, 0};
Stream stream = new Stream();
stream.write(data);
@@ -116,7 +116,7 @@ public void testWrittenDataIsIdenticalToStreamContentWhenNoFiltersAreUsed() thro
}
@Test
public void testContentsAreCompressedWhenFlateFilterIsSet() throws DataFormatException, IOException {
public void contentsAreCompressedWhenFlateFilterIsSet() throws DataFormatException, IOException {
byte[] inputData = new byte[] {4, 2, 42, -1, 0};
Stream stream = new Stream(Stream.Filter.FLATE);
stream.write(inputData);
@@ -131,4 +131,3 @@ public void testContentsAreCompressedWhenFlateFilterIsSet() throws DataFormatExc
assertThat(decompressedOutput, is(inputData));
}
}

0 comments on commit 5d1694d

Please sign in to comment.