aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/zwobble/couscous/tests/frontends
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-10-25 18:29:43 +0000
committerMichael Williamson <mike@zwobble.org>2015-10-25 18:29:43 +0000
commitb2e4a0049d2e6139e51b91a666fb34d8ebe329aa (patch)
tree4f438e59a8bb46531b5cc095c4cef953171bd752 /src/test/java/org/zwobble/couscous/tests/frontends
parent8b3e130f87a9b55ce1d7ae02747a0eeb97204391 (diff)
Remove lombok from TernaryConditionalNode
Diffstat (limited to 'src/test/java/org/zwobble/couscous/tests/frontends')
-rw-r--r--src/test/java/org/zwobble/couscous/tests/frontends/java/JavaReaderTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/org/zwobble/couscous/tests/frontends/java/JavaReaderTests.java b/src/test/java/org/zwobble/couscous/tests/frontends/java/JavaReaderTests.java
index 5f30eb5..8c9ee95 100644
--- a/src/test/java/org/zwobble/couscous/tests/frontends/java/JavaReaderTests.java
+++ b/src/test/java/org/zwobble/couscous/tests/frontends/java/JavaReaderTests.java
@@ -9,7 +9,6 @@ import org.zwobble.couscous.ast.ExpressionNode;
import org.zwobble.couscous.ast.LocalVariableDeclarationNode;
import org.zwobble.couscous.ast.ReturnNode;
import org.zwobble.couscous.ast.StatementNode;
-import org.zwobble.couscous.ast.TernaryConditionalNode;
import org.zwobble.couscous.ast.ThisReferenceNode;
import org.zwobble.couscous.ast.TypeName;
import org.zwobble.couscous.frontends.java.JavaReader;
@@ -29,6 +28,7 @@ import static org.zwobble.couscous.ast.FieldDeclarationNode.field;
import static org.zwobble.couscous.ast.LiteralNode.literal;
import static org.zwobble.couscous.ast.MethodCallNode.methodCall;
import static org.zwobble.couscous.ast.StaticMethodCallNode.staticMethodCall;
+import static org.zwobble.couscous.ast.TernaryConditionalNode.ternaryConditional;
import static org.zwobble.couscous.ast.ThisReferenceNode.thisReference;
import static org.zwobble.couscous.ast.VariableReferenceNode.reference;
import static org.zwobble.couscous.tests.util.ExtraFiles.deleteRecursively;
@@ -145,7 +145,7 @@ public class JavaReaderTests {
@Test
public void canReadTernaryConditionals() {
assertEquals(
- new TernaryConditionalNode(literal(true), literal(1), literal(2)),
+ ternaryConditional(literal(true), literal(1), literal(2)),
readExpression("true ? 1 : 2"));
}