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 5656import org .json .junit .data .Singleton ;
5757import org .json .junit .data .SingletonEnum ;
5858import org .json .junit .data .WeirdList ;
59+ import org .junit .After ;
5960import org .junit .Ignore ;
6061import org .junit .Test ;
6162
@@ -75,6 +76,14 @@ public class JSONObjectTest {
7576 */
7677 static final Pattern NUMBER_PATTERN = Pattern .compile ("-?(?:0|[1-9]\\ d*)(?:\\ .\\ d+)?(?:[eE][+-]?\\ d+)?" );
7778
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+
7887 /**
7988 * Tests that the similar method is working as expected.
8089 */
You can’t perform that action at this time.
0 commit comments