Skip to content

Commit 157e93e

Browse files
committed
No need to override tearDown()
1 parent 1b1567c commit 157e93e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/test/java/org/apache/commons/beanutils/WrapDynaBeanTestCase.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import java.io.ObjectInputStream;
2929
import java.io.ObjectOutputStream;
3030

31-
import org.junit.jupiter.api.AfterEach;
3231
import org.junit.jupiter.api.BeforeEach;
3332
import org.junit.jupiter.api.Test;
3433

@@ -105,19 +104,12 @@ private Object serializeDeserialize(final Object target, final String text) {
105104
/**
106105
* Set up instance variables required by this test case.
107106
*/
107+
@Override
108108
@BeforeEach
109109
public void setUp() throws Exception {
110110
bean = new WrapDynaBean(new TestBean());
111111
}
112112

113-
/**
114-
* Tear down instance variables required by this test case.
115-
*/
116-
@AfterEach
117-
public void tearDown() {
118-
bean = null;
119-
}
120-
121113
/** Tests getInstance method */
122114
@Test
123115
public void testGetInstance() {

0 commit comments

Comments
 (0)