aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorShevek <[email protected]>2014-01-29 00:27:28 -0800
committerShevek <[email protected]>2014-01-29 00:27:28 -0800
commitf2b03d6787e89255d68f5398a8a8e0d544f12405 (patch)
tree5ac3913339715f4f514d02745a5ec8245bdad90c /src/test
parentc06119b6d97f700f3843b5b5e5679ff522b47963 (diff)
Use gradle-velocity-task.
Update PreprocessorListener to be an interface. Make Source.getName() public.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/anarres/cpp/ErrorTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/anarres/cpp/ErrorTest.java b/src/test/java/org/anarres/cpp/ErrorTest.java
index 8777452..42240d4 100644
--- a/src/test/java/org/anarres/cpp/ErrorTest.java
+++ b/src/test/java/org/anarres/cpp/ErrorTest.java
@@ -22,7 +22,7 @@ public class ErrorTest {
private void testError(String input) throws Exception {
StringLexerSource sl;
- PreprocessorListener pl;
+ DefaultPreprocessorListener pl;
Preprocessor p;
/* Without a PreprocessorListener, throws an exception. */
@@ -42,7 +42,7 @@ public class ErrorTest {
p = new Preprocessor();
p.addFeature(Feature.CSYNTAX);
p.addInput(sl);
- pl = new PreprocessorListener();
+ pl = new DefaultPreprocessorListener();
p.setListener(pl);
assertNotNull("CPP has listener", p.getListener());
assertTrue(testError(p));