Fix tool-testsuite
This commit is contained in:
parent
77067674b9
commit
3017de10bc
|
@ -17,6 +17,7 @@ import org.junit.Test;
|
|||
|
||||
import java.io.File;
|
||||
|
||||
import static org.antlr.v4.test.runtime.BaseRuntimeTest.writeFile;
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertNull;
|
||||
|
||||
|
@ -460,7 +461,7 @@ public class TestCompositeGrammars extends BaseJavaToolTest {
|
|||
BaseRuntimeTest.mkdir(tmpdir);
|
||||
writeFile(tmpdir, "Java.g4", slave);
|
||||
String found = execParser("NewJava.g4", master, "NewJavaParser", "NewJavaLexer",
|
||||
null, null, "compilationUnit", "package Foo;", debug);
|
||||
null, null, "compilationUnit", "package Foo;", debug);
|
||||
assertEquals(null, found);
|
||||
assertNull(stderrDuringParse);
|
||||
}
|
||||
|
@ -488,7 +489,7 @@ public class TestCompositeGrammars extends BaseJavaToolTest {
|
|||
BaseRuntimeTest.mkdir(tmpdir);
|
||||
writeFile(tmpdir, "Java.g4", slave);
|
||||
String found = execParser("T.g4", master, "TParser", "TLexer",
|
||||
null, null, "s", "a=b", debug);
|
||||
null, null, "s", "a=b", debug);
|
||||
assertEquals(null, found);
|
||||
assertNull(stderrDuringParse);
|
||||
}
|
||||
|
|
|
@ -78,6 +78,7 @@ import java.util.logging.Level;
|
|||
import java.util.logging.Logger;
|
||||
import org.antlr.v4.runtime.misc.MurmurHash;
|
||||
|
||||
import static org.antlr.v4.test.runtime.BaseRuntimeTest.writeFile;
|
||||
import static org.hamcrest.CoreMatchers.instanceOf;
|
||||
import static org.junit.Assert.assertThat;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
|
Loading…
Reference in New Issue