groovy / 4.0 / org / apache / groovy / contracts / domain / assertion.html

[Java] Class Assertion<T extends Assertion>

  • org.apache.groovy.contracts.domain.Assertion
public abstract class Assertion<T extends Assertion>
extends Object

Base class for all assertion types.

Parameters:

Constructor Summary

Constructors
Constructor and description
Assertion()
Assertion(BlockStatement blockStatement, BooleanExpression booleanExpression)

Methods Summary

Methods
Type Params Return Type Name and description
public void and(T other)
public BooleanExpression booleanExpression()
public void or(T other)
public BlockStatement originalBlockStatement()
public void renew(BooleanExpression booleanExpression)

Inherited Methods Summary

Inherited Methods
Methods inherited from class Name
class Object wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll

Constructor Detail

public Assertion()

public Assertion(BlockStatement blockStatement, BooleanExpression booleanExpression)

Method Detail

public void and(T other)

public BooleanExpression booleanExpression()

public void or(T other)

public BlockStatement originalBlockStatement()

public void renew(BooleanExpression booleanExpression)

© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/org/apache/groovy/contracts/domain/Assertion.html