Skip to content

Commit

Permalink
added test isThrowStatement
Browse files Browse the repository at this point in the history
  • Loading branch information
nbauma109 committed May 21, 2023
1 parent ad764b6 commit f6688e6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public void testThrowStatement() {
ThrowStatement throwStatement = new ThrowStatement(newExpression);

assertTrue(throwStatement.getExpression() instanceof NewExpression);
assertTrue(throwStatement.isThrowStatement());

// Test setExpression method
NewExpression newNewExpression = new NewExpression(2, type, "(Ljava/lang/String;)V", false, false);
Expand Down

0 comments on commit f6688e6

Please sign in to comment.