assertHasElseStatement

public static CtStatement assertHasElseStatement(CtIf ifStatement, Context context, PreCommentSupplier<? super Result<? extends Object, ? extends Object, ? extends Object, ? extends Object>> comment)(source)

Asserts that the given CtIf statement has an else statement.

Return

the else statement

Parameters

ifStatement

the if statement

context

the context of this test

comment

the comment to be displayed in case of a failure