File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
src/test/java/com/networknt/schema Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 7
7
import com .networknt .schema .walk .WalkFlow ;
8
8
import org .junit .jupiter .api .AfterEach ;
9
9
import org .junit .jupiter .api .Assertions ;
10
- import org .junit .jupiter .api .Disabled ;
10
+ import org .junit .jupiter .api .BeforeAll ;
11
11
import org .junit .jupiter .api .Test ;
12
12
13
13
import java .io .InputStream ;
@@ -34,8 +34,19 @@ protected JsonNode getJsonNodeFromStreamContent(InputStream content) throws Exce
34
34
return mapper .readTree (content );
35
35
}
36
36
37
+
38
+ @ BeforeAll
39
+ public static void beforeAll () {
40
+ reset ();
41
+ }
42
+
37
43
@ AfterEach
38
44
public void cleanup () {
45
+ reset ();
46
+ }
47
+
48
+
49
+ private static void reset () {
39
50
if (CollectorContext .getInstance () != null ) {
40
51
CollectorContext .getInstance ().reset ();
41
52
}
You can’t perform that action at this time.
0 commit comments