Interface CtAssert<T>

    • Method Detail

      • getAssertExpression

        CtExpression<java.lang.Boolean> getAssertExpression()
        Gets the assert expression.
      • setAssertExpression

        <A extends CtAssert<T>> A setAssertExpression​(CtExpression<java.lang.Boolean> asserted)
        Sets the assert expression.
      • getExpression

        CtExpression<T> getExpression()
        Gets the expression of the assertion if defined.
      • setExpression

        <A extends CtAssert<T>> A setExpression​(CtExpression<T> expression)
        Sets the expression of the assertion. For instance assert.setExpression(factory.createCodeSnippetExpression("param != null"))