> ## Documentation Index
> Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Java: AssertionReturn

> CDKTN Core API Reference for AssertionReturn in Java.

Class representing the contents of a return by an assertion.

## Initializers <a name="Initializers" id="cdktn.testingMatchers.AssertionReturn.Initializer" />

```java theme={null}
import io.cdktn.cdktn.testing_matchers.AssertionReturn;

new AssertionReturn(java.lang.String message, java.lang.Boolean pass);
```

| **Name**                                                                                                | **Type**                       | **Description**                                                            |
| ------------------------------------------------------------------------------------------------------- | ------------------------------ | -------------------------------------------------------------------------- |
| <code><a href="#cdktn.testingMatchers.AssertionReturn.Initializer.parameter.message">message</a></code> | <code>java.lang.String</code>  | - String message containing information about the result of the assertion. |
| <code><a href="#cdktn.testingMatchers.AssertionReturn.Initializer.parameter.pass">pass</a></code>       | <code>java.lang.Boolean</code> | - Boolean pass denoting the success of the assertion.                      |

***

### `message`<sup>Required</sup> <a name="message" id="cdktn.testingMatchers.AssertionReturn.Initializer.parameter.message" />

* *Type:* java.lang.String

String message containing information about the result of the assertion.

***

### `pass`<sup>Required</sup> <a name="pass" id="cdktn.testingMatchers.AssertionReturn.Initializer.parameter.pass" />

* *Type:* java.lang.Boolean

Boolean pass denoting the success of the assertion.

***

## Properties <a name="Properties" id="Properties" />

| **Name**                                                                                   | **Type**                       | **Description**                                                            |
| ------------------------------------------------------------------------------------------ | ------------------------------ | -------------------------------------------------------------------------- |
| <code><a href="#cdktn.testingMatchers.AssertionReturn.property.message">message</a></code> | <code>java.lang.String</code>  | - String message containing information about the result of the assertion. |
| <code><a href="#cdktn.testingMatchers.AssertionReturn.property.pass">pass</a></code>       | <code>java.lang.Boolean</code> | - Boolean pass denoting the success of the assertion.                      |

***

### `message`<sup>Required</sup> <a name="message" id="cdktn.testingMatchers.AssertionReturn.property.message" />

```java theme={null}
public java.lang.String getMessage();
```

* *Type:* java.lang.String

String message containing information about the result of the assertion.

***

### `pass`<sup>Required</sup> <a name="pass" id="cdktn.testingMatchers.AssertionReturn.property.pass" />

```java theme={null}
public java.lang.Boolean getPass();
```

* *Type:* java.lang.Boolean

Boolean pass denoting the success of the assertion.

***
