---
schema_version: "1"
id: b74c758a617afaa9b7daf2d8c3d7bb73f71d77987970a3153ee2c0ed8d01815a
title: Assert Equals
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/munit/3.0/assertion-equals-processor.md
canonical_url: https://docs.mulesoft.com/jp/munit/3.0/assertion-equals-processor
source_site: docs.mulesoft.com
content_type: documentation
content_hash: f808bc2b3730bd5b0bc9c11e7cf1367233a798f665fb50ab5ba0070f09861657
description: MuleSoft Documentation Site
release: "3.0"
latest: false
---
# Assert Equals

Assert Equals プロセッサーでは、Mule イベントのコンテンツの状態を検証するためにアサーションを実行できます。このプロセッサーは、本番コードの実行後に Mule イベントを検証するために使用できます。

たとえば、ペイロードが特定の値と等しいことをアサートするため、次の方法で Assert-Equals プロセッサーを設定できます。

```xml
<munit-tools:assert-equals
  actual="#[payload]"
  expected="#[2]"
  message="The payload should be 2"/>
```

`expected`​ 属性が String (文字列) の場合、式を使用せずにリテラル値を指定できます。

```xml
<munit-tools:assert-equals
  actual="#[payload]"
  expected="Example"
  message="The payload should be 'Example'"/>
```

このアサーションが失敗すると、プロセッサーは ​`java.lang.AssertionError`​ をスローします。