Home | History | Annotate | Download | only in steps

Lines Matching refs:tryStmt

36 import com.github.javaparser.ast.stmt.TryStmt;
62 private TryStmt tryStmt;
84 @Given("a TryStmt")
86 tryStmt = new TryStmt();
116 @When("the List of VariableDeclarations are set as the resources on TryStmt")
118 tryStmt.setResources(variableDeclarationExprList);
121 @When("empty list is set as the resources on TryStmt")
123 tryStmt.setResources(new NodeList<>());
237 @Then("all the VariableDeclarations parent is the TryStmt")
239 variableDeclarationExprList.forEach(expr -> assertThat(expr.getParentNode().get(), is(tryStmt)));
242 @Then("the TryStmt has no child nodes")
244 assertThat(tryStmt.getChildNodes().size(), is(0));