We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8983ca6 + b6e347d commit 054786eCopy full SHA for 054786e
src/test/java/org/json/junit/JSONObjectTest.java
@@ -56,6 +56,7 @@
56
import org.json.junit.data.Singleton;
57
import org.json.junit.data.SingletonEnum;
58
import org.json.junit.data.WeirdList;
59
+import org.junit.After;
60
import org.junit.Ignore;
61
import org.junit.Test;
62
@@ -75,6 +76,14 @@ public class JSONObjectTest {
75
76
*/
77
static final Pattern NUMBER_PATTERN = Pattern.compile("-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?");
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
+
87
/**
88
* Tests that the similar method is working as expected.
89
0 commit comments