Skip to content
Merged
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 @@ -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
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 {assertj-core-github}/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
32 changes: 16 additions & 16 deletions src/docs/asciidoc/user-guide/assertj-joda-assertions-guide.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -89,28 +89,28 @@ In addition to specific type assertions, each type inherits assertions from {ass
|Verifies that the actual `LocalDateTime` is strictly after the given one

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isAfter-java.lang.String-[`isAfter(String localDateTimeAsString)`]
|Calls `isAfter(DateTime)` with a `LocalDateTime` built from the given `String` which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format].
|Calls `isAfter(DateTime)` with a `LocalDateTime` built from the given `String` which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format].

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isAfterOrEqualTo-org.joda.time.LocalDateTime-[`isAfterOrEqualTo(org.joda.time.LocalDateTime other)`]
|Verifies that the actual `LocalDateTime` is after or equals to the given one

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isAfterOrEqualTo-java.lang.String-[`isAfterOrEqualTo(String localDateTimeAsString)`]
|Calls `isAfterOrEqualTo(DateTime)` with a `LocalDateTime` built from the given `String` which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format].
|Calls `isAfterOrEqualTo(DateTime)` with a `LocalDateTime` built from the given `String` which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format].

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isBefore-org.joda.time.LocalDateTime-[`isBefore(org.joda.time.LocalDateTime other)`]
|Verifies that the actual `LocalDateTime` is strictly before the given one

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isBefore-java.lang.String-[`isBefore(String localDateTimeAsString)`]
|Calls `isBefore(DateTime)` with a `LocalDateTime` built from the given `String` which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format].
|Calls `isBefore(DateTime)` with a `LocalDateTime` built from the given `String` which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format].

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isBeforeOrEqualTo-org.joda.time.LocalDateTime-[`isBeforeOrEqualTo(org.joda.time.LocalDateTime other)`]
|Verifies that the actual `LocalDateTime` is before or equals to the given one

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isBeforeOrEqualTo-java.lang.String-[`isBeforeOrEqualTo(String localDateTimeAsString)`]
|Calls `isBeforeOrEqualTo(DateTime)` with a `LocalDateTime` built from the given `String` which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format].
|Calls `isBeforeOrEqualTo(DateTime)` with a `LocalDateTime` built from the given `String` which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format].

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isEqualTo-java.lang.String-[`isEqualTo(String localDateTimeAsString)`]
|Calls `AbstractAssert.isEqualTo(Object)` passing a `LocalDateTime` built from the given `String` which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format].
|Calls `AbstractAssert.isEqualTo(Object)` passing a `LocalDateTime` built from the given `String` which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format].

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isEqualToIgnoringHours-org.joda.time.LocalDateTime-[`isEqualToIgnoringHours(org.joda.time.LocalDateTime other)`]
|Verifies that actual and given `LocalDateTime` have same year, month and day fields (hour, minute, second and millisecond fields are ignored in comparison)
Expand All @@ -125,13 +125,13 @@ In addition to specific type assertions, each type inherits assertions from {ass
|Verifies that actual and given `LocalDateTime` have same year, month, day, hour, minute and second fields, (millisecond fields are ignored in comparison)

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isIn-java.lang.String\...-[`isIn(String... localDateTimesAsString)`]
|Calls `isIn(DateTime...)` with DateTimes built from given Strings which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format]
|Calls `isIn(DateTime...)` with DateTimes built from given Strings which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format]

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isNotEqualTo-java.lang.String-[`isNotEqualTo(String localDateTimeAsString)`]
|Calls `isNotEqualTo(DateTime)` with a `LocalDateTime` built from the given `String` which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format]
|Calls `isNotEqualTo(DateTime)` with a `LocalDateTime` built from the given `String` which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format]

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isNotIn-java.lang.String\...-[`isNotIn(String... dateTimesAsString)`]
|Calls `isNotIn(org.joda.DateTime...)` with DateTime built from the given strings which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format]
|Calls `isNotIn(org.joda.DateTime...)` with DateTime built from the given strings which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#localDateOptionalTimeParser()[ISO DateTime format]


|===
Expand Down Expand Up @@ -167,31 +167,31 @@ In addition to specific type assertions, each type inherits assertions from {ass
|Verifies that the actual `DateTime` is strictly after the given one

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isAfter-java.lang.String-[`isAfter(String dateTimeAsString)`]
|Calls `isAfter(DateTime)` with a `DateTime` built from the given `String` which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format].
|Calls `isAfter(DateTime)` with a `DateTime` built from the given `String` which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format].

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isAfterOrEqualTo-org.joda.time.DateTime-[`isAfterOrEqualTo(org.joda.time.DateTime other)`]
|Verifies that the actual `DateTime` is after or equals to the given one

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isAfterOrEqualTo-java.lang.String-[`isAfterOrEqualTo(String dateTimeAsString)`]
|Calls `isAfterOrEqualTo(DateTime)` with a `DateTime` built from the given `String` which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format].
|Calls `isAfterOrEqualTo(DateTime)` with a `DateTime` built from the given `String` which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format].

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isBefore-org.joda.time.DateTime-[`isBefore(org.joda.time.DateTime other)`]
|Verifies that the actual `DateTime` is strictly before the given one

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isBefore-java.lang.String-[`isBefore(String dateTimeAsString)`]
|Calls `isBefore(DateTime)` with a `DateTime` built from the given `String` which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format].
|Calls `isBefore(DateTime)` with a `DateTime` built from the given `String` which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format].

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isBeforeOrEqualTo-org.joda.time.DateTime-[`isBeforeOrEqualTo(org.joda.time.DateTime other)`]
|Verifies that the actual `DateTime` is before or equals to the given one

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isBeforeOrEqualTo-java.lang.String-[`isBeforeOrEqualTo(String dateTimeAsString)`]
|Calls `isBeforeOrEqualTo(DateTime)` with a `DateTime` built from the given `String` which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format].
|Calls `isBeforeOrEqualTo(DateTime)` with a `DateTime` built from the given `String` which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format].

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isEqualTo-org.joda.time.DateTime-[`isEqualTo(org.joda.time.DateTime expected)`]
|Verifies that the actual `DateTime` is equal to the given one in actual's DateTimeZone

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isEqualTo-java.lang.String-[`isEqualTo(String dateTimeAsString)`]
|Calls `isEqualTo(DateTime)` with a `DateTime` built from the given `String` which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format].
|Calls `isEqualTo(DateTime)` with a `DateTime` built from the given `String` which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format].

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isEqualToIgnoringHours-org.joda.time.DateTime-[`isEqualToIgnoringHours(org.joda.time.DateTime other)`]
|Verifies that actual and given `DateTime` have same year, month and day fields (hour, minute, second and millisecond fields are ignored in comparison)
Expand All @@ -209,19 +209,19 @@ In addition to specific type assertions, each type inherits assertions from {ass
|Verifies that the actual `DateTime` is equal to one of the given `DateTime` in the actual's DateTimeZone

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isIn-java.lang.String\...-[`isIn(String... dateTimesAsString)`]
|Calls `isIn(DateTime...)` with DateTimes built from given Strings which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format]
|Calls `isIn(DateTime...)` with DateTimes built from given Strings which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format]

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isNotEqualTo-org.joda.time.DateTime-[`isNotEqualTo(org.joda.time.DateTime expected)`]
|Verifies that the actual value is not equal to the given one in actual's DateTimeZone

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isNotEqualTo-java.lang.String-[`isNotEqualTo(String dateTimeAsString)`]
|Calls `isNotEqualTo(DateTime)` with a `DateTime` built from the given `String` which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format]
|Calls `isNotEqualTo(DateTime)` with a `DateTime` built from the given `String` which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format]

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isNotIn-org.joda.time.DateTime\...-[`isNotIn(org.joda.time.DateTime... expected)`]
|Verifies that the actual `DateTime` is equal to one of the given `DateTime` in the actual's DateTimeZone

|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isNotIn-java.lang.String\...-[`isNotIn(String... dateTimesAsString)`]
|Calls `isNotIn(org.joda.DateTime...)` with DateTime built from the given strings which must follow http://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format]
|Calls `isNotIn(org.joda.DateTime...)` with DateTime built from the given strings which must follow https://joda-time.sourceforge.net/api-release/org/joda/time/format/ISODateTimeFormat.html#dateTimeParser()[ISO DateTime format]

|===

Expand Down