summaryrefslogtreecommitdiffstats
path: root/yolean/src/test/java/com/yahoo/yolean/trace/TraceVisitorTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'yolean/src/test/java/com/yahoo/yolean/trace/TraceVisitorTestCase.java')
-rw-r--r--yolean/src/test/java/com/yahoo/yolean/trace/TraceVisitorTestCase.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/yolean/src/test/java/com/yahoo/yolean/trace/TraceVisitorTestCase.java b/yolean/src/test/java/com/yahoo/yolean/trace/TraceVisitorTestCase.java
new file mode 100644
index 00000000000..3b04c210c2f
--- /dev/null
+++ b/yolean/src/test/java/com/yahoo/yolean/trace/TraceVisitorTestCase.java
@@ -0,0 +1,21 @@
+// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.yolean.trace;
+
+import org.junit.Test;
+
+/**
+ * @author <a href="mailto:simon@yahoo-inc.com">Simon Thoresen Hult</a>
+ */
+public class TraceVisitorTestCase {
+
+ @Test
+ public void requireThatTraceVisitorCompilesWithOnlyVisitImplemented() {
+ new TraceNode(null, 0).accept(new TraceVisitor() {
+
+ @Override
+ public void visit(TraceNode node) {
+
+ }
+ });
+ }
+}