File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/test/java/io/github/syst3ms/skriptparser Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 4
4
import io .github .syst3ms .skriptparser .log .LogEntry ;
5
5
import io .github .syst3ms .skriptparser .log .LogType ;
6
6
import io .github .syst3ms .skriptparser .registration .SkriptAddon ;
7
+ import io .github .syst3ms .skriptparser .variables .DatabaseTest ;
7
8
8
9
import org .junit .jupiter .api .DynamicContainer ;
9
10
import org .junit .jupiter .api .DynamicNode ;
@@ -71,6 +72,8 @@ public Iterator<DynamicNode> syntaxTest() {
71
72
var allErrors = new ArrayList <>(errorsFound );
72
73
Set <String > duplicateErrors = new HashSet <>();
73
74
allErrors .removeIf (val -> !duplicateErrors .add (val .getMessage ()));
75
+
76
+ DatabaseTest .clearAllVariables ();
74
77
errorsFound .clear ();
75
78
76
79
MultipleFailureException .assertEmpty (allErrors );
Original file line number Diff line number Diff line change 13
13
import java .util .List ;
14
14
import java .util .Optional ;
15
15
16
- public class VariablesTest {
16
+ public class DatabaseTest {
17
17
18
18
private static final List <String > LINES = Arrays .asList (
19
19
"databases:" ,
@@ -31,6 +31,10 @@ public void clearVariables() {
31
31
Variables .clearVariables ();
32
32
}
33
33
34
+ public static void clearAllVariables () {
35
+ Variables .clearVariables ();
36
+ }
37
+
34
38
@ Before
35
39
public void setupVariables () {
36
40
Variables .registerStorage (RamStorage .class , "ram" );
You can’t perform that action at this time.
0 commit comments