Skip to content

Commit 2da11c0

Browse files
committed
Minor refactoring
No functional changes.
1 parent c64b616 commit 2da11c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/com/laytonsmith/core/MethodScriptCompilerTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,15 +238,15 @@ public void testExecute3() {
238238
= "[";
239239
MethodScriptCompiler.execute(MethodScriptCompiler.compile(MethodScriptCompiler.lex(script, null, null, true), null, envs), env, null, null);
240240
fail("Test passed, but wasn't supposed to");
241-
} catch (ConfigCompileException | ConfigCompileGroupException ex) {
241+
} catch (AbstractCompileException ex) {
242242
//Passed
243243
}
244244
try {
245245
String script
246246
= "]";
247247
MethodScriptCompiler.execute(MethodScriptCompiler.compile(MethodScriptCompiler.lex(script, null, null, true), null, envs), env, null, null);
248248
fail("Test passed, but wasn't supposed to");
249-
} catch (ConfigCompileException | ConfigCompileGroupException ex) {
249+
} catch (AbstractCompileException ex) {
250250
//Passed
251251
}
252252
}
@@ -450,7 +450,7 @@ public void testCompile1() {
450450
String config = "/cmd [$p] $q = msg('')";
451451
MethodScriptCompiler.preprocess(MethodScriptCompiler.lex(config, null, null, false), envs).get(0).compile(env);
452452
fail("Test passed, but wasn't supposed to");
453-
} catch (ConfigCompileException | ConfigCompileGroupException ex) {
453+
} catch (AbstractCompileException ex) {
454454
//Passed
455455
}
456456
}
@@ -495,7 +495,7 @@ public void testCompile2() {
495495
String config = "/cmd [$p=player()] = msg('')";
496496
MethodScriptCompiler.preprocess(MethodScriptCompiler.lex(config, null, null, false), envs).get(0).compile(env);
497497
fail("Test passed, but wasn't supposed to");
498-
} catch (ConfigCompileException | ConfigCompileGroupException ex) {
498+
} catch (AbstractCompileException ex) {
499499
//Passed
500500
}
501501
}

0 commit comments

Comments
 (0)