You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/docs/asciidoc/user-guide/assertj-core-assertions-guide.adoc
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -235,7 +235,7 @@ There are a few things to keep in mind when using AssertJ to avoid misusing it.
235
235
The main trap is to pass the object under test to `assertThat()` and forget to call an assertion afterward.
236
236
This misuse can be detected by multiple static code analysis tools:
237
237
238
-
* 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
238
+
* 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
239
239
* https://www.sonarsource.com/products/sonarqube/[SonarQube] with the https://sonarsource.atlassian.net/browse/RSPEC-2970[`Assertions should be complete (S2970)`] rule
240
240
* other tools that can evaluate whether calls to methods annotated with the `@CheckReturnValue` annotation are done correctly.
Copy file name to clipboardExpand all lines: src/docs/asciidoc/user-guide/assertj-db-concepts.adoc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,8 +93,8 @@ It's also with a `AssertDbConnection` that you can instantiate the following ele
93
93
A https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/AssertDbConnection.html[AssertDbConnection]
94
94
is created with the factory https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/AssertDbConnectionFactory.html[AssertDbConnectionFactory].
95
95
96
-
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
97
-
to get a http://docs.oracle.com/javase/6/docs/api/java/sql/Connection.html[Connection] to a database ) or with JDBC connection information.
96
+
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
97
+
to get a https://docs.oracle.com/javase/6/docs/api/java/sql/Connection.html[Connection] to a database ) or with JDBC connection information.
98
98
99
99
Below is an example of using a DataSource to connect to H2 in memory database :
|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].
92
+
|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].
|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].
98
+
|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].
|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].
104
+
|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].
|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].
110
+
|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].
|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].
113
+
|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].
|Verifies that actual and given `LocalDateTime` have same year, month and day fields (hour, minute, second and millisecond fields are ignored in comparison)
@@ -125,13 +125,13 @@ In addition to specific type assertions, each type inherits assertions from {ass
125
125
|Verifies that actual and given `LocalDateTime` have same year, month, day, hour, minute and second fields, (millisecond fields are ignored in comparison)
|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]
128
+
|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]
|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]
131
+
|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]
|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]
134
+
|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]
135
135
136
136
137
137
|===
@@ -167,31 +167,31 @@ In addition to specific type assertions, each type inherits assertions from {ass
167
167
|Verifies that the actual `DateTime` is strictly after the given one
|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].
170
+
|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].
|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].
176
+
|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].
|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].
182
+
|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].
|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].
188
+
|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].
|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].
194
+
|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].
|Verifies that actual and given `DateTime` have same year, month and day fields (hour, minute, second and millisecond fields are ignored in comparison)
@@ -209,19 +209,19 @@ In addition to specific type assertions, each type inherits assertions from {ass
209
209
|Verifies that the actual `DateTime` is equal to one of the given `DateTime` in the actual's DateTimeZone
|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]
212
+
|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]
|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]
218
+
|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]
|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]
224
+
|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]
0 commit comments