GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - assertj/assertj: Fluent testing assertions for Java and the JVM

BranchesTags
Open more actions menu

Latest commit

 

History

6,434 Commits
6,434 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.idea
.idea
 
 
.mvn
.mvn
 
 
assertj-bom
assertj-bom
 
 
assertj-core
assertj-core
 
 
assertj-guava
assertj-guava
 
 
assertj-parent
assertj-parent
 
 
assertj-tests
assertj-tests
 
 
eclipse
eclipse
 
 
javadoc-theme
javadoc-theme
 
 
scripts
scripts
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
ISSUE_TEMPLATE.md
ISSUE_TEMPLATE.md
 
 
LICENSE.txt
LICENSE.txt
 
 
NOTICE.txt
NOTICE.txt
 
 
PULL_REQUEST_TEMPLATE.md
PULL_REQUEST_TEMPLATE.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
arcmutate-licence.txt
arcmutate-licence.txt
 
 
mvnw
mvnw
 
 
mvnw.cmd
mvnw.cmd
 
 
pom.xml
pom.xml
 
 

Repository files navigation

AssertJ - Fluent Assertions for Java Maven Central Javadocs

CI Binary Compatibility Quality Gate Status

AssertJ provides a rich and intuitive set of strongly-typed assertions to use for unit testing (with JUnit, TestNG or any other test framework).

  • AssertJ's Goals
  • Quick start
  • Documentation
  • Want to Contribute?

You can ask questions in stackoverflow (assertj tag) and make suggestions by simply creating an issue.

Sponsors

TestMu AI

AssertJ's Goals

AssertJ's ambition is to provide a rich and intuitive set of strongly-typed assertions for unit testing.

The idea is that disposal assertions should be specific to the type of the objects we are checking when writing unit tests. If you're checking the value of a String, you use String-specific assertions. Checking the value of a Map? Use Map-specific assertions to easily check the contents of the map.

AssertJ's assertions are super easy to use: just type assertThat(underTest). and use code completion to show you all assertions available.

Assertion missing? Please create an issue to discuss it and even better contribute to the project!

AssertJ is composed of several modules:

  • A core module to provide assertions for JDK types (String, Iterable, Stream, Path, File, Map...) - see AssertJ Core documentation and javadoc.
  • A Guava module to provide assertions for Guava types (Multimap, Optional...) - see AssertJ Guava documentation and javadoc.
  • A Joda Time module to provide assertions for Joda Time types (DateTime, LocalDateTime) - see AssertJ Joda Time documentation and javadoc.
  • A Neo4J module to provide assertions for Neo4J types (Path, Node, Relationship...) - see AssertJ Neo4J documentation and javadoc.
  • A DB module to provide assertions for relational database types (Table, Row, Column...) - see AssertJ DB documentation and javadoc.
  • A Swing module provides a simple and intuitive API for functional testing of Swing user interfaces - see AssertJ Swing documentation and javadoc.

Want to Contribute?

You are encouraged to contribute any missing useful assertions.

Please read the contributing section and raise a PR!

About

Fluent testing assertions for Java and the JVM

assertj.github.io/doc/

Topics

assertionsassertjgroovyhacktoberfestjavakotlintestingtyped-assertions

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

2.9k stars

Watchers

67 watching

Forks

798 forks
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.