Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

This section describes the assertions provided by AssertJ Core and other useful features to get the best of it.

AssertJ Core http://www.javadoc.io/doc/org.assertj/assertj-core/[Javadoc] explains each assertion, most of them with code examples so be sure to check it if you want to know what a specific assertion does.
AssertJ Core https://www.javadoc.io/doc/org.assertj/assertj-core/[Javadoc] explains each assertion, most of them with code examples so be sure to check it if you want to know what a specific assertion does.

[[assertj-core-simple-example]]
==== A simple example
Expand Down Expand Up @@ -235,7 +235,7 @@ There are a few things to keep in mind when using AssertJ to avoid misusing it.
The main trap is to pass the object under test to `assertThat()` and forget to call an assertion afterward.
This misuse can be detected by multiple static code analysis tools:

* https://spotbugs.github.io/[SpotBugs] or http://findbugs.sourceforge.net/[FindBugs] with the https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#rv-method-ignores-return-value-is-this-ok-rv-return-value-ignored-inferred[`RV_RETURN_VALUE_IGNORED_INFERRED`] rule
* https://spotbugs.github.io/[SpotBugs] or https://findbugs.sourceforge.net/[FindBugs] with the https://spotbugs.readthedocs.io/en/latest/bugDescriptions.html#rv-method-ignores-return-value-is-this-ok-rv-return-value-ignored-inferred[`RV_RETURN_VALUE_IGNORED_INFERRED`] rule
* https://www.sonarsource.com/products/sonarqube/[SonarQube] with the https://sonarsource.atlassian.net/browse/RSPEC-2970[`Assertions should be complete (S2970)`] rule
* other tools that can evaluate whether calls to methods annotated with the `@CheckReturnValue` annotation are done correctly.

Expand Down Expand Up @@ -2750,4 +2750,4 @@ include::{testDir}/example/core/AssumptionsDemo.java[tags=assumption_met]
[[assertj-core-javadoc]]
==== Javadoc

http://www.javadoc.io/doc/org.assertj/assertj-core/ is the latest version of AssertJ Core Javadoc, each assertion is explained, most of them with code examples so be sure to check it if you want to know what a specific assertion does.
https://www.javadoc.io/doc/org.assertj/assertj-core/ is the latest version of AssertJ Core Javadoc, each assertion is explained, most of them with code examples so be sure to check it if you want to know what a specific assertion does.
2 changes: 1 addition & 1 deletion src/docs/asciidoc/user-guide/assertj-core-quickstart.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,4 @@ image::ide-completion.png[]
[[assertj-core-javadoc-quickstart]]
==== Javadoc

http://www.javadoc.io/doc/org.assertj/assertj-core/ is the latest version of AssertJ Core Javadoc, each assertion is explained, most of them with code examples so be sure to check it if you want to know what a specific assertion does.
https://www.javadoc.io/doc/org.assertj/assertj-core/ is the latest version of AssertJ Core Javadoc, each assertion is explained, most of them with code examples so be sure to check it if you want to know what a specific assertion does.
2 changes: 1 addition & 1 deletion src/docs/asciidoc/user-guide/assertj-core.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ programmers writing tests assertions with AssertJ.

AssertJ is a Java library that provides a rich set of assertions and truly helpful error messages, improves test code readability, and is designed to be super easy to use within your favorite IDE.

http://www.javadoc.io/doc/org.assertj/assertj-core/ is the latest version of AssertJ Core Javadoc, each assertion is explained, most of them with code examples so be sure to check it if you want to know what a specific assertion does.
https://www.javadoc.io/doc/org.assertj/assertj-core/ is the latest version of AssertJ Core Javadoc, each assertion is explained, most of them with code examples so be sure to check it if you want to know what a specific assertion does.

Here are a few examples of AssertJ assertions:

Expand Down
4 changes: 2 additions & 2 deletions src/docs/asciidoc/user-guide/assertj-db-concepts.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ It's also with a `AssertDbConnection` that you can instantiate the following ele
A https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/AssertDbConnection.html[AssertDbConnection]
is created with the factory https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/AssertDbConnectionFactory.html[AssertDbConnectionFactory].

There are 2 way to begin the AssertDbConnectionFactory, with a http://docs.oracle.com/javase/6/docs/api/javax/sql/DataSource.html[DataSource] ( the classic Java way
to get a http://docs.oracle.com/javase/6/docs/api/java/sql/Connection.html[Connection] to a database ) or with JDBC connection information.
There are 2 way to begin the AssertDbConnectionFactory, with a https://docs.oracle.com/javase/6/docs/api/javax/sql/DataSource.html[DataSource] ( the classic Java way
to get a https://docs.oracle.com/javase/6/docs/api/java/sql/Connection.html[Connection] to a database ) or with JDBC connection information.

Below is an example of using a DataSource to connect to H2 in memory database :

Expand Down
2 changes: 1 addition & 1 deletion src/docs/asciidoc/user-guide/assertj-db-quickstart.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ testImplementation("org.assertj:assertj-db:{assertj-db-version}")

===== Other dependency management tool

Check this page to find the relevant http://search.maven.org/#artifactdetails|org.assertj|assertj-db|3.0.1|bundle[assertj db dependency declaration].
Check this page to find the relevant https://search.maven.org/#artifactdetails|org.assertj|assertj-db|3.0.1|bundle[assertj db dependency declaration].

==== Statically import org.assertj.db.api.Assertions.assertThat

Expand Down
4 changes: 2 additions & 2 deletions src/docs/asciidoc/user-guide/assertj-guava-release-notes.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[[assertj-guava-release-notes]]
=== Release Notes

NOTE: AssertJ Guava main documentation is still in http://joel-costigliola.github.io/assertj/assertj-guava.html until it is moved to this website.
NOTE: AssertJ Guava main documentation is still in https://joel-costigliola.github.io/assertj/assertj-guava.html until it is moved to this website.

The latest release notes can be found in the https://github.com/assertj/assertj/releases[GitHub releases].

Expand All @@ -11,7 +11,7 @@ Older release notes:
- link:#assertj-guava-3-4-0-release-notes[AssertJ Guava 3.4.0]
- link:#assertj-guava-3-3-0-release-notes[AssertJ Guava 3.3.0]

Even older release notes can be found in the old site: http://joel-costigliola.github.io/assertj/assertj-guava.html#latest-release.
Even older release notes can be found in the old site: https://joel-costigliola.github.io/assertj/assertj-guava.html#latest-release.

[[assertj-guava-3-5-0-release-notes]]
==== AssertJ Guava 3.5.0
Expand Down
Loading