Skip to content

Commit

Permalink
Use pluginDef
Browse files Browse the repository at this point in the history
Fixes #9314
  • Loading branch information
ycombinator committed Apr 4, 2018
1 parent ec3e8be commit cf16429
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -37,7 +37,7 @@ public void testEmptyIf() throws InvalidIRException {
@Test
public void testIfWithOneTrueStatement() throws InvalidIRException {
PluginDefinition pluginDef = testPluginDefinition();
Statement trueStatement = new PluginStatement(randMeta(), testPluginDefinition());
Statement trueStatement = new PluginStatement(randMeta(), pluginDef);
Statement falseStatement = new NoopStatement(randMeta());
BooleanExpression ifExpression = createTestExpression();
IfStatement ifStatement = new IfStatement(
Expand All @@ -53,7 +53,7 @@ public void testIfWithOneTrueStatement() throws InvalidIRException {
Graph expected = new Graph();
IfVertex expectedIf = DSL.gIf(randMeta(), ifExpression);
expected.addVertex(expectedIf);
PluginVertex expectedT = DSL.gPlugin(randMeta(), testPluginDefinition());
PluginVertex expectedT = DSL.gPlugin(randMeta(), pluginDef);
expected.chainVertices(true, expectedIf, expectedT);

assertSyntaxEquals(expected, ifStatementGraph);
Expand Down

0 comments on commit cf16429

Please sign in to comment.