Skip to content

Glossary: Java Beyond the Basics

assertEquals

Also written: assertTrue, assertFalse

A JUnit check that fails the test, showing both values, if the expected value and the actual value differ. Put the expected value first.

Where the book teaches it

Related terms

JUnitassertThrowsUnit test