Fix tool-testsuite

This commit is contained in:
Ben Hamilton 2017-01-25 16:42:28 -08:00
parent 77067674b9
commit 3017de10bc
2 changed files with 4 additions and 2 deletions

View File

@ -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);
}

View File

@ -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;