File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/test/java/org/json/junit Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 56
56
import org .json .junit .data .Singleton ;
57
57
import org .json .junit .data .SingletonEnum ;
58
58
import org .json .junit .data .WeirdList ;
59
+ import org .junit .After ;
59
60
import org .junit .Ignore ;
60
61
import org .junit .Test ;
61
62
@@ -75,6 +76,14 @@ public class JSONObjectTest {
75
76
*/
76
77
static final Pattern NUMBER_PATTERN = Pattern .compile ("-?(?:0|[1-9]\\ d*)(?:\\ .\\ d+)?(?:[eE][+-]?\\ d+)?" );
77
78
79
+ @ After
80
+ public void tearDown () {
81
+ SingletonEnum .getInstance ().setSomeInt (0 );
82
+ SingletonEnum .getInstance ().setSomeString (null );
83
+ Singleton .getInstance ().setSomeInt (0 );
84
+ Singleton .getInstance ().setSomeString (null );
85
+ }
86
+
78
87
/**
79
88
* Tests that the similar method is working as expected.
80
89
*/
You can’t perform that action at this time.
0 commit comments