Skip to content

Commit 18d7310

Browse files
author
Gary Gregory
committed
Don't shadow setup method name in JUnit because the super's version is
not called.
1 parent e8c94c4 commit 18d7310

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/test/java/org/apache/commons/io/serialization/MoreComplexObjectTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,8 @@ public class MoreComplexObjectTest extends ClosingBase {
4141
private InputStream inputStream;
4242
private MoreComplexObject original;
4343

44-
@Override
4544
@BeforeEach
46-
public void setup() throws IOException {
45+
public void setupMoreComplexObject() throws IOException {
4746
original = new MoreComplexObject();
4847
final ByteArrayOutputStream bos = willClose(new ByteArrayOutputStream());
4948
final ObjectOutputStream oos = willClose(new ObjectOutputStream(bos));

src/test/java/org/apache/commons/io/serialization/ValidatingObjectInputStreamTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ public class ValidatingObjectInputStreamTest extends ClosingBase {
4242

4343
private static final ClassNameMatcher ALWAYS_TRUE = className -> true;
4444

45-
@Override
4645
@BeforeEach
47-
public void setup() throws IOException {
46+
public void setupMockSerializedClass() throws IOException {
4847
testObject = new MockSerializedClass(UUID.randomUUID().toString());
4948
final ByteArrayOutputStream bos = willClose(new ByteArrayOutputStream());
5049
final ObjectOutputStream oos = willClose(new ObjectOutputStream(bos));

0 commit comments

Comments
 (0)