diff --git a/gradle.properties b/gradle.properties index e50e325..3cf9b9c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ version = 1.0 # Note that if --release is added then -target and -source are ignored. javacRelease = 8 -assertjVersion = 3.27.6 +assertjVersion = 3.27.7 assertjJodaTimeVersion = 2.2.0 assertjDbVersion = 2.0.2 ota4jVersion = 1.2.0 diff --git a/src/docs/asciidoc/link-attributes.adoc b/src/docs/asciidoc/link-attributes.adoc index a6e4f23..95d4839 100644 --- a/src/docs/asciidoc/link-attributes.adoc +++ b/src/docs/asciidoc/link-attributes.adoc @@ -1,14 +1,15 @@ -:assertj-core-javadoc-root: https://www.javadoc.io/doc/org.assertj/assertj-core/latest/ -:assertj-guava-javadoc-root: https://www.javadoc.io/doc/org.assertj/assertj-guava/latest/ -:assertj-joda-time-javadoc-root: https://www.javadoc.io/doc/org.assertj/assertj-joda-time/latest/ +:assertj-core-javadoc: https://www.javadoc.io/doc/org.assertj/assertj-core/{assertj-version} +:assertj-guava-javadoc: https://www.javadoc.io/doc/org.assertj/assertj-guava/{assertj-version} +:assertj-joda-time-javadoc: https://www.javadoc.io/doc/org.assertj/assertj-joda-time/{assertj-joda-time-version} // -:assertj-core-repo: https://github.com/assertj/assertj -:assertj-examples-repo: https://github.com/assertj/assertj-examples -:assertj-examples-base-package: https://github.com/assertj/assertj-examples/blob/main/assertions-examples/src/test/java/org/assertj/examples/ -:assertj-guava-repo: https://github.com/assertj/assertj -:assertj-swing-repo: https://github.com/assertj/assertj-swing -:release-branch: main -:current-branch: {assertj-core-repo}/tree/{release-branch} +:assertj-core-github: https://github.com/assertj/assertj +:assertj-doc-github: https://github.com/assertj/doc +:assertj-examples-github: https://github.com/assertj/assertj-examples +:assertj-examples-base-package: https://github.com/assertj/assertj-examples/blob/main/assertions-examples/src/test/java/org/assertj/examples +:assertj-guava-github: https://github.com/assertj/assertj +:assertj-swing-github: https://github.com/assertj/assertj-swing +:release-branch: main +:current-branch: {assertj-core-github}/tree/{release-branch} // -:AssertJ: https://assertj.github.io/doc/[AssertJ] -:StackOverflow: https://stackoverflow.com/questions/tagged/assertj[Stack Overflow] +:AssertJ: https://assertj.github.io/doc/[AssertJ] +:StackOverflow: https://stackoverflow.com/questions/tagged/assertj[Stack Overflow] diff --git a/src/docs/asciidoc/user-guide/assertj-core-assertions-guide.adoc b/src/docs/asciidoc/user-guide/assertj-core-assertions-guide.adoc index ce5ef1e..1c1adc7 100644 --- a/src/docs/asciidoc/user-guide/assertj-core-assertions-guide.adoc +++ b/src/docs/asciidoc/user-guide/assertj-core-assertions-guide.adoc @@ -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 {assertj-core-javadoc}[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 @@ -758,19 +758,19 @@ expected: JEDI [name=Luke, age=23] [[assertj-core-common-assertions]] ==== Common assertions -This section describes the assertions common to all types, the Javadoc for common assertions methods is available https://www.javadoc.io/static/org.assertj/assertj-core/{assertj-version}/org/assertj/core/api/AbstractAssert.html#method.summary[here]. +This section describes the assertions common to all types, the Javadoc for common assertions methods is available {assertj-core-javadoc}/org/assertj/core/api/AbstractAssert.html#method.summary[here]. [[assertj-core-object-assertions]] ==== Object assertions -The Javadoc for `Object` assertions is available https://www.javadoc.io/static/org.assertj/assertj-core/{assertj-version}/org/assertj/core/api/AbstractObjectAssert.html#method.summary[here]. +The Javadoc for `Object` assertions is available {assertj-core-javadoc}/org/assertj/core/api/AbstractObjectAssert.html#method.summary[here]. [[assertj-string-object-assertions]] ==== String/CharSequence assertions This section describes all the available assertions for `CharSequence` (including `String`, `StringBuilder`, `StringBuffer`, ...): -The Javadoc for `CharSequence` assertions is available https://www.javadoc.io/static/org.assertj/assertj-core/{assertj-version}/org/assertj/core/api/AbstractCharSequenceAssert.html#method.summary[here]. +The Javadoc for `CharSequence` assertions is available {assertj-core-javadoc}/org/assertj/core/api/AbstractCharSequenceAssert.html#method.summary[here]. [[assertj-core-group-assertions]] @@ -781,8 +781,8 @@ The Javadoc for `CharSequence` assertions is available https://www.javadoc.io/st All the available assertions are described in: -* iterables: {assertj-core-javadoc-root}org/assertj/core/api/AbstractIterableAssert.html#method.summary -* arrays: {assertj-core-javadoc-root}org/assertj/core/api/AbstractObjectArrayAssert.html#method.summary +* iterables: {assertj-core-javadoc}/org/assertj/core/api/AbstractIterableAssert.html#method.summary +* arrays: {assertj-core-javadoc}/org/assertj/core/api/AbstractObjectArrayAssert.html#method.summary The next sections focus on some features worth knowing to get the best of AssertJ, notably: @@ -802,28 +802,28 @@ There are different flavors of `contains` assertion, here's a table to help choo |=== |Assertion |Description -|{assertj-core-javadoc-root}org/assertj/core/api/AbstractIterableAssert.html#contains(ELEMENT...)[`contains`] +|{assertj-core-javadoc}/org/assertj/core/api/AbstractIterableAssert.html#contains(ELEMENT...)[`contains`] |Verifies that the actual iterable/array contains the given values in any order -|{assertj-core-javadoc-root}org/assertj/core/api/AbstractIterableAssert.html#containsOnly(ELEMENT...)[`containsOnly`] +|{assertj-core-javadoc}/org/assertj/core/api/AbstractIterableAssert.html#containsOnly(ELEMENT...)[`containsOnly`] |Verifies that the actual group contains only the given values and nothing else in any order and ignoring duplicates (i.e. once a value is found, its duplicates are also considered found) -|{assertj-core-javadoc-root}org/assertj/core/api/AbstractIterableAssert.html#containsExactly(ELEMENT...)[`containsExactly`] +|{assertj-core-javadoc}/org/assertj/core/api/AbstractIterableAssert.html#containsExactly(ELEMENT...)[`containsExactly`] |Verifies that the actual iterable/array contains exactly the given values and nothing else **in order** -|{assertj-core-javadoc-root}org/assertj/core/api/AbstractIterableAssert.html#containsExactlyInAnyOrder(ELEMENT...)[`containsExactlyInAnyOrder`] +|{assertj-core-javadoc}/org/assertj/core/api/AbstractIterableAssert.html#containsExactlyInAnyOrder(ELEMENT...)[`containsExactlyInAnyOrder`] |Verifies that the actual iterable/array contains exactly the given values and nothing else **in any order** -|{assertj-core-javadoc-root}org/assertj/core/api/AbstractIterableAssert.html#containsSequence(ELEMENT...)[`containsSequence`] +|{assertj-core-javadoc}/org/assertj/core/api/AbstractIterableAssert.html#containsSequence(ELEMENT...)[`containsSequence`] |Verifies that the actual group contains the given sequence in the correct order and **without extra values between the sequence values** -|{assertj-core-javadoc-root}org/assertj/core/api/AbstractIterableAssert.html#containsSubsequence(ELEMENT...)[`containsSubsequence`] +|{assertj-core-javadoc}/org/assertj/core/api/AbstractIterableAssert.html#containsSubsequence(ELEMENT...)[`containsSubsequence`] |Verifies that the actual group contains the given subsequence in the correct order **possibly with other values between them** -|{assertj-core-javadoc-root}org/assertj/core/api/AbstractIterableAssert.html#containsOnlyOnce(ELEMENT...)[`containsOnlyOnce`] +|{assertj-core-javadoc}/org/assertj/core/api/AbstractIterableAssert.html#containsOnlyOnce(ELEMENT...)[`containsOnlyOnce`] |Verifies that the actual iterable/array contains the given values only once -|{assertj-core-javadoc-root}org/assertj/core/api/AbstractIterableAssert.html#containsAnyOf(ELEMENT...)[`containsAnyOf`] +|{assertj-core-javadoc}/org/assertj/core/api/AbstractIterableAssert.html#containsAnyOf(ELEMENT...)[`containsAnyOf`] |Verifies that the actual iterable/array contains at least one of the given values (like an `or` operator on the given values) |=== @@ -954,7 +954,7 @@ Filtering is handy to target assertions on some specific elements, the filter cr * an element link:#filtering-elements-matching-given-assertions[matching some assertions] * an element matching a link:#filtering-with-a-condition[Condition] -Let's explore these options in some examples taken from {assertj-examples-repo}/tree/main/assertions-examples/src/test/java/org/assertj/examples/FilterExamples.java#L47[FilterExamples] from the {assertj-examples-repo}[assertions-examples] project. +Let's explore these options in some examples taken from {assertj-examples-github}/tree/main/assertions-examples/src/test/java/org/assertj/examples/FilterExamples.java#L47[FilterExamples] from the {assertj-examples-github}[assertions-examples] project. ====== Filtering with a Predicate @@ -1148,7 +1148,7 @@ assertThat(fellowshipOfTheRing).extracting("name", String.class) ====== Extracting multiple values -You can extract several values from the elements under test and check them using {assertj-core-javadoc-root}org/assertj/core/api/Assertions.html#tuple(java.lang.Object...)[tuples]. +You can extract several values from the elements under test and check them using {assertj-core-javadoc}/org/assertj/core/api/Assertions.html#tuple(java.lang.Object...)[tuples]. As an example, let's check the name, age and race's name of each TolkienCharacter element: @@ -1174,7 +1174,7 @@ assertThat(fellowshipOfTheRing).extracting(TolkienCharacter::getName, The extracted name, age and race's name values of the current element are grouped in a tuple, thus you need to use tuples for specifying the expected values. -More examples are available in link:{assertj-examples-base-package}IterableAssertionsExamples.java#L210[IterableAssertionsExamples.java] of the link:{assertj-examples-repo}[assertj-examples] project. +More examples are available in link:{assertj-examples-base-package}/IterableAssertionsExamples.java#L210[IterableAssertionsExamples.java] of the link:{assertj-examples-github}[assertj-examples] project. [[group-flat-extracting]] ====== Extracting and flattening multiple values per element @@ -1248,7 +1248,7 @@ This chapter answers the question: how to assert that an exception has been thro [[assertj-core-exception-assertions-reference]] ===== Reference -All the available assertions are described in the link:{assertj-core-javadoc-root}org/assertj/core/api/AbstractThrowableAssert.html#method.summary[AbstractThrowableAssert javadoc]. +All the available assertions are described in the link:{assertj-core-javadoc}/org/assertj/core/api/AbstractThrowableAssert.html#method.summary[`AbstractThrowableAssert` Javadoc]. In this chapter the term `exception` is used interchangeably with `throwable`. @@ -1269,7 +1269,7 @@ If you use java 7, check the link:#assertj-core-exception-assertions-java-7[Java There are various ways for checking the exception message content, you can check the exact message, what it contains, its start, its end, if it matches a regex. -Most of the assertions expecting a `String` can use the https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true#format-java.lang.String-java.lang.Object...-[String.format] syntax. +Most of the assertions expecting a `String` can use the https://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true#format-java.lang.String-java.lang.Object\...-[String.format] syntax. Examples: [source,java] @@ -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. +{assertj-core-javadoc} 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. diff --git a/src/docs/asciidoc/user-guide/assertj-core-extension.adoc b/src/docs/asciidoc/user-guide/assertj-core-extension.adoc index 4f82e19..286cffd 100644 --- a/src/docs/asciidoc/user-guide/assertj-core-extension.adoc +++ b/src/docs/asciidoc/user-guide/assertj-core-extension.adoc @@ -6,7 +6,7 @@ AssertJ can be extends by Condition or writing your own assertions class. [[assertj-core-conditions]] ==== Conditions -Assertions can be extended by using conditions, to create a condition you just have to implement https://www.javadoc.io/doc/org.assertj/assertj-core/latest/org/assertj/core/api/Condition.html[`org.assertj.assertions.core.Condition`] and its unique method matches. +Assertions can be extended by using conditions, to create a condition you just have to implement {assertj-core-javadoc}/org/assertj/core/api/Condition.html[`org.assertj.assertions.core.Condition`] and its unique method matches. Once your Condition is created, you can use it with methods: `is(myCondition)` or `has(myCondition)`, both verifying that the condition is met (hint: pick the one that makes your code more readable). @@ -32,7 +32,7 @@ You can verify that a Condition is met on elements of a collection, with the fol Moreover all Condition related methods have their negation counterpart, `is`/`isNot`, `have`/`doesNotHave`, `are`/`areNot`, ... -The examples below are from https://github.com/assertj/assertj-examples/[assertj-examples] and more specifically https://github.com/assertj/assertj-examples/blob/main/assertions-examples/src/test/java/org/assertj/examples/condition/UsingConditionExamples.java[UsingConditionExamples.java]. +The examples below are from {assertj-examples-github}[assertj-examples] and more specifically {assertj-examples-base-package}/condition/UsingConditionExamples.java[`UsingConditionExamples`]. [[assertj-core-condition-creation]] ===== Creating a Condition @@ -46,7 +46,7 @@ import static org.assertj.core.util.Sets.newLinkedHashSet; static Set JEDIS = newLinkedHashSet("Luke", "Yoda", "Obiwan"); // implementation with Java 8 lambda -Condition jediPower = new Condition<>(JEDIS::contains, "jedi power"); +Condition jediPower = new Condition<>(JEDIS::contains, "jedi power"); // implementation with Java 7 Condition jedi = new Condition("jedi") { @@ -115,7 +115,7 @@ Let's define a sith condition: [source,java] ---- List SITHS = list("Sidious", "Vader", "Plagueis"); -Condition sith = new Condition<>(SITHS::contains, "sith"); +Condition sith = new Condition<>(SITHS::contains, "sith"); ---- We can write these assertions: @@ -147,7 +147,7 @@ Sections: Let's see how to do that with an example! -The example is taken from https://github.com/assertj/assertj-examples/[assertj-examples] and more specifically https://github.com/assertj/assertj-examples/blob/main/assertions-examples/src/test/java/org/assertj/examples/custom/TolkienCharacterAssert.java[TolkienCharacterAssert.java]. +The example is taken from {assertj-examples}/[assertj-examples] and more specifically {assertj-examples-base-package}/custom/TolkienCharacterAssert.java[TolkienCharacterAssert.java]. We want to have assertion for the `TolkienCharacter` domain model class shown below: [source,java] @@ -210,7 +210,7 @@ public class TolkienCharacterAssert extends AbstractAssert { throw new Exception("boom!"); }).hasMessage("boom!"); Throwable thrown = catchThrowable(() -> { throw new Exception("boom!"); }); assertThat(thrown).hasMessageContaining("boom"); -// using the 'extracting' feature to check fellowshipOfTheRing character's names +// using the 'extracting' feature to check fellowshipOfTheRing character's names assertThat(fellowshipOfTheRing).extracting(TolkienCharacter::getName) .doesNotContain("Sauron", "Elrond"); @@ -54,7 +54,7 @@ assertThat(fellowshipOfTheRing).extracting("name", "age", "race.name") tuple("Sam", 38, "Hobbit"), tuple("Legolas", 1000, "Elf")); -// filtering a collection before asserting +// filtering a collection before asserting assertThat(fellowshipOfTheRing).filteredOn(character -> character.getName().contains("o")) .containsOnly(aragorn, frodo, legolas, boromir); @@ -77,7 +77,7 @@ Ask AssertJ related questions on {StackOverflow}. You are very welcome to suggest or contribute improvements to this guide, that's one great way to give back to open source projects! -The repository containing the guide is https://github.com/assertj/doc, you can https://github.com/assertj/doc/issues[create a new issue], submit a pull request. Et voila! +The repository containing the guide is {assertj-doc-github}, you can {assertj-doc-github}/issues[create a new issue], submit a pull request. Et voila! This guide is written with the awesome https://asciidoctor.org/docs/asciidoc-writers-guide/[Asciidoctor] which makes it easy to improve. diff --git a/src/docs/asciidoc/user-guide/assertj-db-concepts.adoc b/src/docs/asciidoc/user-guide/assertj-db-concepts.adoc index 2baed7e..35635e0 100644 --- a/src/docs/asciidoc/user-guide/assertj-db-concepts.adoc +++ b/src/docs/asciidoc/user-guide/assertj-db-concepts.adoc @@ -748,7 +748,7 @@ The type of the order can be : The navigation offers the ability to chain assertions at different levels and instructions to go inside the sub-elements and return to root element. -There are examples of the navigation in {assertj-examples-repo}/blob/main/assertions-examples/src/test/java/org/assertj/examples/db/NavigationExamples.java[NavigationExamples.java] +There are examples of the navigation in {assertj-examples-github}/blob/main/assertions-examples/src/test/java/org/assertj/examples/db/NavigationExamples.java[NavigationExamples.java] [[assertj-db-concepts-tableorrequestasroot]] ===== With a Table or a Request as root diff --git a/src/docs/asciidoc/user-guide/assertj-db-quickstart.adoc b/src/docs/asciidoc/user-guide/assertj-db-quickstart.adoc index 3960cbe..eff28f9 100644 --- a/src/docs/asciidoc/user-guide/assertj-db-quickstart.adoc +++ b/src/docs/asciidoc/user-guide/assertj-db-quickstart.adoc @@ -46,7 +46,7 @@ Check this page to find the relevant http://search.maven.org/#artifactdetails|or \... and use your preferred IDE code completion after assertThat. -Example from {assertj-examples-repo}/blob/main/assertions-examples/src/test/java/org/assertj/examples/db/TableAssertionExamples.java[TableAssertionExamples.java] : +Example from {assertj-examples-github}/blob/main/assertions-examples/src/test/java/org/assertj/examples/db/TableAssertionExamples.java[TableAssertionExamples.java] : [source,java] ---- diff --git a/src/docs/asciidoc/user-guide/assertj-db.adoc b/src/docs/asciidoc/user-guide/assertj-db.adoc index aa331f1..e11207f 100644 --- a/src/docs/asciidoc/user-guide/assertj-db.adoc +++ b/src/docs/asciidoc/user-guide/assertj-db.adoc @@ -27,7 +27,7 @@ Latest Javadoc release: https://www.javadoc.io/doc/org.assertj/assertj-db/latest === Examples -Some implementations examples are visible at the {assertj-examples-repo}/tree/main/assertions-examples/src/test/java/org/assertj/examples/db[assertj-db-examples tests]. +Some implementations examples are visible at the {assertj-examples-github}/tree/main/assertions-examples/src/test/java/org/assertj/examples/db[assertj-db-examples tests]. They show what is possible with AssertJ DB Assertions with running code. You can clone the repository and run its tests ! diff --git a/src/docs/asciidoc/user-guide/assertj-guava-assertions-guide.adoc b/src/docs/asciidoc/user-guide/assertj-guava-assertions-guide.adoc index a7d58a2..0908daf 100644 --- a/src/docs/asciidoc/user-guide/assertj-guava-assertions-guide.adoc +++ b/src/docs/asciidoc/user-guide/assertj-guava-assertions-guide.adoc @@ -9,13 +9,13 @@ This section describes the assertions provided by AssertJ Guava. |=== |Assertion |Description -|{assertj-guava-javadoc-root}org/assertj/guava/api/ByteSourceAssert.html#hasSameContentAs(com.google.common.io.ByteSource)[`hasSameContentAs`] +|{assertj-guava-javadoc}/org/assertj/guava/api/ByteSourceAssert.html#hasSameContentAs(com.google.common.io.ByteSource)[`hasSameContentAs`] |Verifies that the actual `ByteSource` has the same content as the provided one. -|{assertj-guava-javadoc-root}org/assertj/guava/api/ByteSourceAssert.html#hasSize(long)[`hasSize`] +|{assertj-guava-javadoc}/org/assertj/guava/api/ByteSourceAssert.html#hasSize(long)[`hasSize`] |Verifies that the size of the actual `ByteSource` is equal to the given one. -|{assertj-guava-javadoc-root}org/assertj/guava/api/ByteSourceAssert.html#isEmpty()[`isEmpty`] +|{assertj-guava-javadoc}/org/assertj/guava/api/ByteSourceAssert.html#isEmpty()[`isEmpty`] |Verifies that the actual `ByteSource` is empty. |=== @@ -25,52 +25,52 @@ This section describes the assertions provided by AssertJ Guava. |=== |Assertion |Description -|{assertj-guava-javadoc-root}org/assertj/guava/api/MultimapAssert.html#contains(org.assertj.core.data.MapEntry...)[`contains`] +|{assertj-guava-javadoc}/org/assertj/guava/api/MultimapAssert.html#contains(org.assertj.core.data.MapEntry\...)[`contains`] |Verifies that the actual `Multimap` contains the given entries. -|{assertj-guava-javadoc-root}org/assertj/guava/api/MultimapAssert.html#containsAllEntriesOf(com.google.common.collect.Multimap)[`containsAllEntriesOf`] +|{assertj-guava-javadoc}/org/assertj/guava/api/MultimapAssert.html#containsAllEntriesOf(com.google.common.collect.Multimap)[`containsAllEntriesOf`] |Verifies that the actual `Multimap` contains all entries of the given one (it might contain more entries). -|{assertj-guava-javadoc-root}org/assertj/guava/api/MultimapAssert.html#containsKeys(K...)[`containsKeys`] +|{assertj-guava-javadoc}/org/assertj/guava/api/MultimapAssert.html#containsKeys(K\...)[`containsKeys`] |Verifies that the actual `Multimap` contains the given keys. -|{assertj-guava-javadoc-root}org/assertj/guava/api/MultimapAssert.html#containsValues(V...)[`containsValues`] +|{assertj-guava-javadoc}/org/assertj/guava/api/MultimapAssert.html#containsValues(V\...)[`containsValues`] |Verifies that the actual `Multimap` contains the given values for any key. -|{assertj-guava-javadoc-root}org/assertj/guava/api/MultimapAssert.html#doesNotContainKey(K)[`doesNotContainKey`] +|{assertj-guava-javadoc}/org/assertj/guava/api/MultimapAssert.html#doesNotContainKey(K)[`doesNotContainKey`] |Verifies that the actual `Multimap` does not contain the given key. -|{assertj-guava-javadoc-root}org/assertj/guava/api/MultimapAssert.html#doesNotContainKeys(K...)[`doesNotContainKeys`] +|{assertj-guava-javadoc}/org/assertj/guava/api/MultimapAssert.html#doesNotContainKeys(K\...)[`doesNotContainKeys`] |Verifies that the actual `Multimap` does not contain the given keys. -|{assertj-guava-javadoc-root}org/assertj/guava/api/MultimapAssert.html#hasSameEntriesAs(com.google.common.collect.Multimap)[`hasSameEntriesAs`] +|{assertj-guava-javadoc}/org/assertj/guava/api/MultimapAssert.html#hasSameEntriesAs(com.google.common.collect.Multimap)[`hasSameEntriesAs`] |Verifies that the actual `Multimap` has the same entries as the given one. -|{assertj-guava-javadoc-root}org/assertj/guava/api/MultimapAssert.html#hasSize(int)[`hasSize`] +|{assertj-guava-javadoc}/org/assertj/guava/api/MultimapAssert.html#hasSize(int)[`hasSize`] |Verifies that the number of values in the actual `Multimap` is equal to the given one. -|{assertj-guava-javadoc-root}org/assertj/guava/api/MultimapAssert.html#isEmpty()[`isEmpty`] +|{assertj-guava-javadoc}/org/assertj/guava/api/MultimapAssert.html#isEmpty()[`isEmpty`] |Verifies that the actual `Multimap` is empty. -|{assertj-guava-javadoc-root}org/assertj/guava/api/MultimapAssert.html#isNotEmpty()[`isNotEmpty`] +|{assertj-guava-javadoc}/org/assertj/guava/api/MultimapAssert.html#isNotEmpty()[`isNotEmpty`] |Verifies that the actual `Multimap` is not empty. |=== ==== Multiset -In addition to `Iterable` {assertj-core-javadoc-root}org/assertj/core/api/AbstractIterableAssert.html#method.summary[assertions], the following are also available. +In addition to `Iterable` {assertj-core-javadoc}/org/assertj/core/api/AbstractIterableAssert.html#method.summary[assertions], the following are also available. [%autowidth] |=== |Assertion |Description -|{assertj-guava-javadoc-root}org/assertj/guava/api/MultisetAssert.html#contains(int,T)[`contains`] +|{assertj-guava-javadoc}/org/assertj/guava/api/MultisetAssert.html#contains(int,T)[`contains`] |Verifies the actual `Multiset` contains the given value *exactly* the given number of times. -|{assertj-guava-javadoc-root}org/assertj/guava/api/MultisetAssert.html#containsAtLeast(int,T)[`containsAtLeast`] +|{assertj-guava-javadoc}/org/assertj/guava/api/MultisetAssert.html#containsAtLeast(int,T)[`containsAtLeast`] |Verifies the actual `Multiset` contains the given value *at least* the given number of times. -|{assertj-guava-javadoc-root}org/assertj/guava/api/MultisetAssert.html#containsAtMost(int,T)[`containsAtMost`] +|{assertj-guava-javadoc}/org/assertj/guava/api/MultisetAssert.html#containsAtMost(int,T)[`containsAtMost`] |Verifies the actual `Multiset` contains the given value *at most* the given number of times. |=== @@ -80,19 +80,19 @@ In addition to `Iterable` {assertj-core-javadoc-root}org/assertj/core/api/Abstra |=== |Assertion |Description -|{assertj-guava-javadoc-root}org/assertj/guava/api/OptionalAssert.html#contains(java.lang.Object)[`contains`] +|{assertj-guava-javadoc}/org/assertj/guava/api/OptionalAssert.html#contains(java.lang.Object)[`contains`] |Verifies that the actual `Optional` contains the given value. -|{assertj-guava-javadoc-root}org/assertj/guava/api/OptionalAssert.html#extractingCharSequence()[`extractingCharSequence`] +|{assertj-guava-javadoc}/org/assertj/guava/api/OptionalAssert.html#extractingCharSequence()[`extractingCharSequence`] |Chain assertion on the content of the `Optional`. -|{assertj-guava-javadoc-root}org/assertj/guava/api/OptionalAssert.html#extractingValue()[`extractingValue`] +|{assertj-guava-javadoc}/org/assertj/guava/api/OptionalAssert.html#extractingValue()[`extractingValue`] |Chain assertion on the content of the `Optional`. -|{assertj-guava-javadoc-root}org/assertj/guava/api/OptionalAssert.html#isAbsent()[`isAbsent`] +|{assertj-guava-javadoc}/org/assertj/guava/api/OptionalAssert.html#isAbsent()[`isAbsent`] |Verifies that the actual `Optional` contained instance is absent/null. -|{assertj-guava-javadoc-root}org/assertj/guava/api/OptionalAssert.html#isPresent()[`isPresent`] +|{assertj-guava-javadoc}/org/assertj/guava/api/OptionalAssert.html#isPresent()[`isPresent`] |Verifies that the actual `Optional` contains a (non-null) instance. |=== @@ -102,34 +102,34 @@ In addition to `Iterable` {assertj-core-javadoc-root}org/assertj/core/api/Abstra |=== |Assertion |Description -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeAssert.html#contains(T...)[`contains`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeAssert.html#contains(T\...)[`contains`] |Verifies that the actual `Range` contains the given values. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeAssert.html#doesNotContain(T...)[`doesNotContain`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeAssert.html#doesNotContain(T\...)[`doesNotContain`] |Verifies that the actual `Range` does not contain the given values. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeAssert.html#hasClosedLowerBound()[`hasClosedLowerBound`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeAssert.html#hasClosedLowerBound()[`hasClosedLowerBound`] |Verifies that the actual `Range` lower bound is closed. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeAssert.html#hasClosedUpperBound()[`hasClosedUpperBound`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeAssert.html#hasClosedUpperBound()[`hasClosedUpperBound`] |Verifies that the actual `Range` upper bound is closed. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeAssert.html#hasLowerEndpointEqualTo(T)[`hasLowerEndpointEqualTo`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeAssert.html#hasLowerEndpointEqualTo(T)[`hasLowerEndpointEqualTo`] |Verifies that the actual `Range` lower endpoint is equal to the given value. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeAssert.html#hasOpenedLowerBound()[`hasOpenedLowerBound`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeAssert.html#hasOpenedLowerBound()[`hasOpenedLowerBound`] |Verifies that the actual `Range` lower bound is opened. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeAssert.html#hasOpenedUpperBound()[`hasOpenedUpperBound`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeAssert.html#hasOpenedUpperBound()[`hasOpenedUpperBound`] |Verifies that the actual `Range` upper bound is opened. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeAssert.html#hasUpperEndpointEqualTo(T)[`hasUpperEndpointEqualTo`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeAssert.html#hasUpperEndpointEqualTo(T)[`hasUpperEndpointEqualTo`] |Verifies that the actual `Range` upper endpoint is equal to the given value. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeAssert.html#isEmpty()[`isEmpty`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeAssert.html#isEmpty()[`isEmpty`] |Verifies that the actual `Range` is empty. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeAssert.html#isNotEmpty()[`isNotEmpty`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeAssert.html#isNotEmpty()[`isNotEmpty`] |Verifies that the actual `Range` is not empty. |=== @@ -139,19 +139,19 @@ In addition to `Iterable` {assertj-core-javadoc-root}org/assertj/core/api/Abstra |=== |Assertion |Description -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeMapAssert.html#contains(org.assertj.core.data.MapEntry...)[`contains`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeMapAssert.html#contains(org.assertj.core.data.MapEntry\...)[`contains`] |Verifies that the actual `RangeMap` contains the given entries. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeMapAssert.html#containsKeys(K...)[`containsKeys`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeMapAssert.html#containsKeys(K\...)[`containsKeys`] |Verifies that the actual `RangeMap` contains the given keys. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeMapAssert.html#containsValues(V...)[`containsValues`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeMapAssert.html#containsValues(V\...)[`containsValues`] |Verifies that the actual `RangeMap` contains the given values. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeMapAssert.html#isEmpty()[`isEmpty`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeMapAssert.html#isEmpty()[`isEmpty`] |Verifies that the actual `RangeMap` is empty. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeMapAssert.html#isNotEmpty()[`isNotEmpty`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeMapAssert.html#isNotEmpty()[`isNotEmpty`] |Verifies that the actual `RangeMap` is not empty. |=== @@ -161,88 +161,88 @@ In addition to `Iterable` {assertj-core-javadoc-root}org/assertj/core/api/Abstra |=== |Assertion |Description -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#contains(T...)[`contains`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#contains(T\...)[`contains`] |Verifies that the given `RangeSet` contains the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#containsAll(java.lang.Iterable)[`containsAll`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#containsAll(java.lang.Iterable)[`containsAll`] |Verifies that the given `RangeSet` contains all the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#containsAnyOf(T...)[`containsAnyOf`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#containsAnyOf(T\...)[`containsAnyOf`] |Verifies that the given `RangeSet` contains at least one of the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#containsAnyRangesOf(java.lang.Iterable)[`containsAnyRangesOf`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#containsAnyRangesOf(java.lang.Iterable)[`containsAnyRangesOf`] |Verifies that the given `RangeSet` contains at least one of the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#doesNotContain(T...)[`doesNotContain`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#doesNotContain(T\...)[`doesNotContain`] |Verifies that the given `RangeSet` does not contain any of the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#doesNotContainAll(java.lang.Iterable)[`doesNotContainAll`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#doesNotContainAll(java.lang.Iterable)[`doesNotContainAll`] |Verifies that the given `RangeSet` does not contain any of the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#doesNotEnclose(com.google.common.collect.Range...)[`doesNotEnclose`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#doesNotEnclose(com.google.common.collect.Range\...)[`doesNotEnclose`] |Verifies that the given `RangeSet` does not enclose the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#doesNotEncloseAnyRangesOf(com.google.common.collect.RangeSet)[`doesNotEncloseAnyRangesOf`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#doesNotEncloseAnyRangesOf(com.google.common.collect.RangeSet)[`doesNotEncloseAnyRangesOf`] |Verifies that the given `RangeSet` does not enclose any range from the given range set. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#doesNotEncloseAnyRangesOf(java.lang.Iterable)[`doesNotEncloseAnyRangesOf`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#doesNotEncloseAnyRangesOf(java.lang.Iterable)[`doesNotEncloseAnyRangesOf`] |Verifies that the given `RangeSet` does not enclose any of the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#doesNotIntersect(com.google.common.collect.Range...)[`doesNotIntersect`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#doesNotIntersect(com.google.common.collect.Range\...)[`doesNotIntersect`] |Verifies that the given `RangeSet` does not intersect the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#doesNotIntersectAnyRangeFrom(com.google.common.collect.RangeSet)[`doesNotIntersectAnyRangeFrom`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#doesNotIntersectAnyRangeFrom(com.google.common.collect.RangeSet)[`doesNotIntersectAnyRangeFrom`] |Verifies that the given `RangeSet` does not intersect ranges from the given range set. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#doesNotIntersectAnyRangeFrom(java.lang.Iterable)[`doesNotIntersectAnyRangeFrom`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#doesNotIntersectAnyRangeFrom(java.lang.Iterable)[`doesNotIntersectAnyRangeFrom`] |Verifies that the given `RangeSet` does not intersect all the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#encloses(com.google.common.collect.Range...)[`encloses`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#encloses(com.google.common.collect.Range\...)[`encloses`] |Verifies that the given `RangeSet` encloses the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#enclosesAll(com.google.common.collect.RangeSet)[`enclosesAll`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#enclosesAll(com.google.common.collect.RangeSet)[`enclosesAll`] |Verifies that the given `RangeSet` encloses all ranges from the given range set. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#enclosesAll(java.lang.Iterable)[`enclosesAll`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#enclosesAll(java.lang.Iterable)[`enclosesAll`] |Verifies that the given `RangeSet` encloses all the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#enclosesAnyOf(com.google.common.collect.Range...)[`enclosesAnyOf`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#enclosesAnyOf(com.google.common.collect.Range\...)[`enclosesAnyOf`] |Verifies that the given `RangeSet` encloses at least one of the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#enclosesAnyRangesOf(com.google.common.collect.RangeSet)[`enclosesAnyRangesOf`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#enclosesAnyRangesOf(com.google.common.collect.RangeSet)[`enclosesAnyRangesOf`] |Verifies that the given `RangeSet` encloses at least one range from the given range set. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#enclosesAnyRangesOf(java.lang.Iterable)[`enclosesAnyRangesOf`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#enclosesAnyRangesOf(java.lang.Iterable)[`enclosesAnyRangesOf`] |Verifies that the given `RangeSet` encloses at least one range of the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#hasSize(int)[`hasSize`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#hasSize(int)[`hasSize`] |Verifies that the given `RangeSet` has specific `size` of disconnected `Range` elements. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#intersects(com.google.common.collect.Range...)[`intersects`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#intersects(com.google.common.collect.Range\...)[`intersects`] |Verifies that the given `RangeSet` intersects all the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#intersectsAll(com.google.common.collect.RangeSet)[`intersectsAll`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#intersectsAll(com.google.common.collect.RangeSet)[`intersectsAll`] |Verifies that the given `RangeSet` intersects all the given range set. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#intersectsAll(java.lang.Iterable)[`intersectsAll`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#intersectsAll(java.lang.Iterable)[`intersectsAll`] |Verifies that the given `RangeSet` intersects all the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#intersectsAnyOf(com.google.common.collect.Range...)[`intersectsAnyOf`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#intersectsAnyOf(com.google.common.collect.Range\...)[`intersectsAnyOf`] |Verifies that the given `RangeSet` intersects at least one of the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#intersectsAnyRangesOf(com.google.common.collect.RangeSet)[`intersectsAnyRangesOf`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#intersectsAnyRangesOf(com.google.common.collect.RangeSet)[`intersectsAnyRangesOf`] |Verifies that the given `RangeSet` intersects at least one range of the given range set. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#intersectsAnyRangesOf(java.lang.Iterable)[`intersectsAnyRangesOf`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#intersectsAnyRangesOf(java.lang.Iterable)[`intersectsAnyRangesOf`] |Verifies that the given `RangeSet` intersects at least one of the given ranges. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#isEmpty()[`isEmpty`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#isEmpty()[`isEmpty`] |Verifies that the actual `RangeSet` is empty. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#isNotEmpty()[`isNotEmpty`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#isNotEmpty()[`isNotEmpty`] |Verifies that the actual `RangeSet` is not empty. -|{assertj-guava-javadoc-root}org/assertj/guava/api/RangeSetAssert.html#isNullOrEmpty()[`isNullOrEmpty`] +|{assertj-guava-javadoc}/org/assertj/guava/api/RangeSetAssert.html#isNullOrEmpty()[`isNullOrEmpty`] |Verifies that the actual `RangeSet` is null or empty. |=== @@ -252,37 +252,37 @@ In addition to `Iterable` {assertj-core-javadoc-root}org/assertj/core/api/Abstra |=== |Assertion |Description -|{assertj-guava-javadoc-root}org/assertj/guava/api/TableAssert.html#containsCell(R,C,V)[`containsCell`] +|{assertj-guava-javadoc}/org/assertj/guava/api/TableAssert.html#containsCell(R,C,V)[`containsCell`] |Verifies that the actual `Table` contains the mapping of row/column to value. -|{assertj-guava-javadoc-root}org/assertj/guava/api/TableAssert.html#containsColumns(C...)[`containsColumns`] +|{assertj-guava-javadoc}/org/assertj/guava/api/TableAssert.html#containsColumns(C\...)[`containsColumns`] |Verifies that the actual `Table` contains the given columns. -|{assertj-guava-javadoc-root}org/assertj/guava/api/TableAssert.html#containsRows(R...)[`containsRows`] +|{assertj-guava-javadoc}/org/assertj/guava/api/TableAssert.html#containsRows(R\...)[`containsRows`] |Verifies that the actual `Table` contains the given rows. -|{assertj-guava-javadoc-root}org/assertj/guava/api/TableAssert.html#containsValues(V...)[`containsValues`] +|{assertj-guava-javadoc}/org/assertj/guava/api/TableAssert.html#containsValues(V\...)[`containsValues`] |Verifies that the actual `Table` contains the given values for any key. -|{assertj-guava-javadoc-root}org/assertj/guava/api/TableAssert.html#hasColumnCount(int)[`hasColumnCount`] +|{assertj-guava-javadoc}/org/assertj/guava/api/TableAssert.html#hasColumnCount(int)[`hasColumnCount`] |Verifies that the actual `Table` has the expected number of columns. -|{assertj-guava-javadoc-root}org/assertj/guava/api/TableAssert.html#hasRowCount(int)[`hasRowCount`] +|{assertj-guava-javadoc}/org/assertj/guava/api/TableAssert.html#hasRowCount(int)[`hasRowCount`] |Verifies that the actual `Table` has the expected number of rows. -|{assertj-guava-javadoc-root}org/assertj/guava/api/TableAssert.html#hasSize(int)[`hasSize`] +|{assertj-guava-javadoc}/org/assertj/guava/api/TableAssert.html#hasSize(int)[`hasSize`] |Verifies that the actual `Table` has the expected number of cells. -|{assertj-guava-javadoc-root}org/assertj/guava/api/TableAssert.html#isEmpty()[`isEmpty`] +|{assertj-guava-javadoc}/org/assertj/guava/api/TableAssert.html#isEmpty()[`isEmpty`] |Verifies that the actual `Table` is empty. -|{assertj-guava-javadoc-root}org/assertj/guava/api/TableAssert.html#isNotEmpty()[`isNotEmpty`] +|{assertj-guava-javadoc}/org/assertj/guava/api/TableAssert.html#isNotEmpty()[`isNotEmpty`] |Verifies that the actual `Table` is not empty. |=== [[assertj-guava-javadoc]] === Javadoc -The latest Javadoc for AssertJ Guava API is here: https://www.javadoc.io/doc/org.assertj/assertj-guava/latest/org/assertj/guava/api/package-summary.html +The latest Javadoc for AssertJ Guava API is {assertj-guava-javadoc}[here]. diff --git a/src/docs/asciidoc/user-guide/assertj-guava-quickstart.adoc b/src/docs/asciidoc/user-guide/assertj-guava-quickstart.adoc index a827dc5..7f0e35f 100644 --- a/src/docs/asciidoc/user-guide/assertj-guava-quickstart.adoc +++ b/src/docs/asciidoc/user-guide/assertj-guava-quickstart.adoc @@ -93,7 +93,7 @@ assertThat(bestMovies).hasRowCount(5).hasColumnCount(3).hasSize(5) .containsRows(1970, 1994, 2000, 2008, 2011); ---- -Note that you can find more working examples in the assertj-examples project: https://github.com/assertj/assertj-examples/tree/main/assertions-examples/src/test/java/org/assertj/examples/guava. +Note that you can find more working examples in the assertj-examples project: {assertj-examples-github}/tree/main/assertions-examples/src/test/java/org/assertj/examples/guava. [[assertj-guava-ide]] ==== IDE configuration diff --git a/src/docs/asciidoc/user-guide/assertj-guava-release-notes.adoc b/src/docs/asciidoc/user-guide/assertj-guava-release-notes.adoc index ba1b7f2..25b7fb7 100644 --- a/src/docs/asciidoc/user-guide/assertj-guava-release-notes.adoc +++ b/src/docs/asciidoc/user-guide/assertj-guava-release-notes.adoc @@ -3,7 +3,7 @@ NOTE: AssertJ Guava main documentation is still in http://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]. +The latest release notes can be found in the {assertj-core-github}/releases[GitHub releases]. Older release notes: diff --git a/src/docs/asciidoc/user-guide/assertj-joda-assertions-guide.adoc b/src/docs/asciidoc/user-guide/assertj-joda-assertions-guide.adoc index 25ba95b..b0cde20 100644 --- a/src/docs/asciidoc/user-guide/assertj-joda-assertions-guide.adoc +++ b/src/docs/asciidoc/user-guide/assertj-joda-assertions-guide.adoc @@ -3,7 +3,7 @@ This section describes the assertions provided by AssertJ Joda Time. -In addition to specific type assertions, each type inherits assertions from http://www.javadoc.io/doc/org.assertj/assertj-core/latest/org/assertj/core/api/AbstractAssert.html[`org.assertj.core.api.AbstractAssert`]. +In addition to specific type assertions, each type inherits assertions from {assertj-core-javadoc}/org/assertj/core/api/AbstractAssert.html[`org.assertj.core.api.AbstractAssert`]. ==== LocalDate @@ -11,49 +11,49 @@ In addition to specific type assertions, each type inherits assertions from http |=== |Assertion |Description -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#hasYear-int-[`hasYear(int expectedYear)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#hasYear-int-[`hasYear(int expectedYear)`] |Verifies that the year of the actual `LocalDate` is equal to the given year -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#hasMonthOfYear-int-[`hasMonthOfYear(int expectedMonthOfYear)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#hasMonthOfYear-int-[`hasMonthOfYear(int expectedMonthOfYear)`] |Verifies that the month of the actual `LocalDate` is equal to the given month -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#hasDayOfMonth-int-[`hasDayOfMonth(int expectedDayOfMonth)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#hasDayOfMonth-int-[`hasDayOfMonth(int expectedDayOfMonth)`] |Verifies that the day of month of the actual `LocalDate` is equal to the given day of month -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#isAfter-org.joda.time.LocalDate-[`isAfter(org.joda.time.LocalDate other)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#isAfter-org.joda.time.LocalDate-[`isAfter(org.joda.time.LocalDate other)`] |Verifies that the actual `LocalDate` is strictly after the given one -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#isAfter-java.lang.String-[`isAfter(String localDateAsString)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#isAfter-java.lang.String-[`isAfter(String localDateAsString)`] |Calls `isAfter(DateTime)` with a `LocalDate` built from the given `String` which must follow ISO8601 format `yyyy-MM-dd` -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#isAfterOrEqualTo-org.joda.time.LocalDate-[`isAfterOrEqualTo(org.joda.time.LocalDate other)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#isAfterOrEqualTo-org.joda.time.LocalDate-[`isAfterOrEqualTo(org.joda.time.LocalDate other)`] |Verifies that the actual `LocalDate` is after or equals to the given one -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#isAfterOrEqualTo-java.lang.String-[`isAfterOrEqualTo(String localDateAsString)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#isAfterOrEqualTo-java.lang.String-[`isAfterOrEqualTo(String localDateAsString)`] |Calls `isAfterOrEqualTo(DateTime)` with a `LocalDate` built from the given `String` which must follow ISO8601 format `yyyy-MM-dd` -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#isBefore-org.joda.time.LocalDate-[`isBefore(org.joda.time.LocalDate other)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#isBefore-org.joda.time.LocalDate-[`isBefore(org.joda.time.LocalDate other)`] |Verifies that the actual `LocalDate` is strictly before the given one -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#isBefore-java.lang.String-[`isBefore(String localDateAsString)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#isBefore-java.lang.String-[`isBefore(String localDateAsString)`] |Calls `isBefore(DateTime)` with a `LocalDate` built from the given `String` which must follow ISO8601 format `yyyy-MM-dd` -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#isBeforeOrEqualTo-org.joda.time.LocalDate-[`isBeforeOrEqualTo(org.joda.time.LocalDate other)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#isBeforeOrEqualTo-org.joda.time.LocalDate-[`isBeforeOrEqualTo(org.joda.time.LocalDate other)`] |Verifies that the actual `LocalDate` is before or equals to the given one -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#isBeforeOrEqualTo-java.lang.String-[`isBeforeOrEqualTo(String localDateAsString)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#isBeforeOrEqualTo-java.lang.String-[`isBeforeOrEqualTo(String localDateAsString)`] |Calls `isBeforeOrEqualTo(DateTime)` with a `LocalDate` built from the given `String` which must follow ISO8601 format `yyyy-MM-dd` -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#isEqualTo-java.lang.String-[`isEqualTo(String localDateAsString)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#isEqualTo-java.lang.String-[`isEqualTo(String localDateAsString)`] |Calls `AbstractAssert.isEqualTo(Object)` passing a `LocalDate` built from the given `String` which must follow ISO8601 format `yyyy-MM-dd` -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#isIn-java.lang.String\...-[`isIn(String... dateTimesAsString)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#isIn-java.lang.String\...-[`isIn(String... dateTimesAsString)`] |Calls `isIn(DateTime...)` with DateTimes built from given Strings which must follow ISO8601 format `yyyy-MM-dd` -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#isNotEqualTo-java.lang.String-[`isNotEqualTo(String localDateAsString)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#isNotEqualTo-java.lang.String-[`isNotEqualTo(String localDateAsString)`] |Calls `isNotEqualTo(DateTime)` with a `LocalDate` built from the given `String` which must follow ISO8601 format `yyyy-MM-dd` -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateAssert.html#isNotIn-java.lang.String\...-[`isNotIn(String... localDatesAsString)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateAssert.html#isNotIn-java.lang.String\...-[`isNotIn(String... localDatesAsString)`] |Calls `isNotIn(org.joda.DateTime...)` with DateTime built from the given strings which must follow ISO8601 format `yyyy-MM-dd` |=== @@ -64,73 +64,73 @@ In addition to specific type assertions, each type inherits assertions from http |=== |Assertion |Description -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#hasDayOfMonth-int-[`hasDayOfMonth(int expectedDayOfMonth)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#hasDayOfMonth-int-[`hasDayOfMonth(int expectedDayOfMonth)`] |Verifies that the day of month of the actual `LocalDateTime` is equal to the given day of month -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#hasHourOfDay-int-[`hasHourOfDay(int expectedHourOfDay)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#hasHourOfDay-int-[`hasHourOfDay(int expectedHourOfDay)`] |Verifies that the hour of the actual `LocalDateTime` is equal to the given hour -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#hasMillisOfSecond-int-[`hasMillisOfSecond(int expectedMillisOfSecond)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#hasMillisOfSecond-int-[`hasMillisOfSecond(int expectedMillisOfSecond)`] |Verifies that the milliseconds of the actual `LocalDateTime` is equal to the given milliseconds -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#hasMinuteOfHour-int-[`hasMinuteOfHour(int expectedMinuteOfHour)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#hasMinuteOfHour-int-[`hasMinuteOfHour(int expectedMinuteOfHour)`] |Verifies that the minute of the actual `LocalDateTime` is equal to the given minute -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#hasMonthOfYear-int-[`hasMonthOfYear(int expectedMonthOfYear)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#hasMonthOfYear-int-[`hasMonthOfYear(int expectedMonthOfYear)`] |Verifies that the month of the actual `LocalDateTime` is equal to the given month -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#hasSecondOfMinute-int-[`hasSecondOfMinute(int expectedSecondOfMinute)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#hasSecondOfMinute-int-[`hasSecondOfMinute(int expectedSecondOfMinute)`] |Verifies that the seconds of the actual `LocalDateTime` is equal to the given seconds -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#hasYear-int-[`hasYear(int expectedYear)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#hasYear-int-[`hasYear(int expectedYear)`] |Verifies that the year of the actual `LocalDateTime` is equal to the given year -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isAfter-org.joda.time.LocalDateTime-[`isAfter(org.joda.time.LocalDateTime other)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isAfter-org.joda.time.LocalDateTime-[`isAfter(org.joda.time.LocalDateTime other)`] |Verifies that the actual `LocalDateTime` is strictly after the given one -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isAfter-java.lang.String-[`isAfter(String localDateTimeAsString)`] +|{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]. -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isAfterOrEqualTo-org.joda.time.LocalDateTime-[`isAfterOrEqualTo(org.joda.time.LocalDateTime other)`] +|{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-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isAfterOrEqualTo-java.lang.String-[`isAfterOrEqualTo(String localDateTimeAsString)`] +|{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]. -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isBefore-org.joda.time.LocalDateTime-[`isBefore(org.joda.time.LocalDateTime other)`] +|{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-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isBefore-java.lang.String-[`isBefore(String localDateTimeAsString)`] +|{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]. -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isBeforeOrEqualTo-org.joda.time.LocalDateTime-[`isBeforeOrEqualTo(org.joda.time.LocalDateTime other)`] +|{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-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isBeforeOrEqualTo-java.lang.String-[`isBeforeOrEqualTo(String localDateTimeAsString)`] +|{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]. -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isEqualTo-java.lang.String-[`isEqualTo(String localDateTimeAsString)`] +|{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]. -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isEqualToIgnoringHours-org.joda.time.LocalDateTime-[`isEqualToIgnoringHours(org.joda.time.LocalDateTime other)`] +|{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) -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isEqualToIgnoringMinutes-org.joda.time.LocalDateTime-[`isEqualToIgnoringMinutes(org.joda.time.LocalDateTime other)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isEqualToIgnoringMinutes-org.joda.time.LocalDateTime-[`isEqualToIgnoringMinutes(org.joda.time.LocalDateTime other)`] |Verifies that actual and given `LocalDateTime` have same year, month, day and hour fields (minute, second and millisecond fields are ignored in comparison) -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isEqualToIgnoringSeconds-org.joda.time.LocalDateTime-[`isEqualToIgnoringSeconds(org.joda.time.LocalDateTime other)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isEqualToIgnoringSeconds-org.joda.time.LocalDateTime-[`isEqualToIgnoringSeconds(org.joda.time.LocalDateTime other)`] |Verifies that actual and given `LocalDateTime` have same year, month, day, hour and minute fields (second and millisecond fields are ignored in comparison) -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isEqualToIgnoringMillis-org.joda.time.LocalDateTime-[`isEqualToIgnoringMillis(org.joda.time.LocalDateTime other)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/LocalDateTimeAssert.html#isEqualToIgnoringMillis-org.joda.time.LocalDateTime-[`isEqualToIgnoringMillis(org.joda.time.LocalDateTime other)`] |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-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isIn-java.lang.String\...-[`isIn(String... localDateTimesAsString)`] +|{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] -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isNotEqualTo-java.lang.String-[`isNotEqualTo(String localDateTimeAsString)`] +|{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] -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/LocalDateTimeAssert.html#isNotIn-java.lang.String\...-[`isNotIn(String... dateTimesAsString)`] +|{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] @@ -142,85 +142,85 @@ In addition to specific type assertions, each type inherits assertions from http |=== |Assertion |Description -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#hasDayOfMonth-int-[`hasDayOfMonth(int expectedDayOfMonth)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#hasDayOfMonth-int-[`hasDayOfMonth(int expectedDayOfMonth)`] |Verifies that the day of month of the actual `DateTime` is equal to the given day of month -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#hasHourOfDay-int-[`hasHourOfDay(int expectedHourOfDay)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#hasHourOfDay-int-[`hasHourOfDay(int expectedHourOfDay)`] |Verifies that the hour of the actual `DateTime` is equal to the given hour -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#hasMillisOfSecond-int-[`hasMillisOfSecond(int expectedMillisOfSecond)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#hasMillisOfSecond-int-[`hasMillisOfSecond(int expectedMillisOfSecond)`] |Verifies that the milliseconds of the actual `DateTime` is equal to the given milliseconds -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#hasMinuteOfHour-int-[`hasMinuteOfHour(int expectedMinuteOfHour)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#hasMinuteOfHour-int-[`hasMinuteOfHour(int expectedMinuteOfHour)`] |Verifies that the minute of the actual `DateTime` is equal to the given minute -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#hasMonthOfYear-int-[`hasMonthOfYear(int expectedMonthOfYear)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#hasMonthOfYear-int-[`hasMonthOfYear(int expectedMonthOfYear)`] |Verifies that the month of the actual `DateTime` is equal to the given month -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#hasSecondOfMinute-int-[`hasSecondOfMinute(int expectedSecondOfMinute)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#hasSecondOfMinute-int-[`hasSecondOfMinute(int expectedSecondOfMinute)`] |Verifies that the seconds of the actual `DateTime` is equal to the given seconds -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#hasYear-int-[`hasYear(int expectedYear)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#hasYear-int-[`hasYear(int expectedYear)`] |Verifies that the year of the actual `DateTime` is equal to the given year -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#isAfter-org.joda.time.DateTime-[`isAfter(org.joda.time.DateTime other)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isAfter-org.joda.time.DateTime-[`isAfter(org.joda.time.DateTime other)`] |Verifies that the actual `DateTime` is strictly after the given one -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#isAfter-java.lang.String-[`isAfter(String dateTimeAsString)`] +|{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]. -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#isAfterOrEqualTo-org.joda.time.DateTime-[`isAfterOrEqualTo(org.joda.time.DateTime other)`] +|{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-root}org/assertj/jodatime/api/DateTimeAssert.html#isAfterOrEqualTo-java.lang.String-[`isAfterOrEqualTo(String dateTimeAsString)`] +|{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]. -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#isBefore-org.joda.time.DateTime-[`isBefore(org.joda.time.DateTime other)`] +|{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-root}org/assertj/jodatime/api/DateTimeAssert.html#isBefore-java.lang.String-[`isBefore(String dateTimeAsString)`] +|{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]. -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#isBeforeOrEqualTo-org.joda.time.DateTime-[`isBeforeOrEqualTo(org.joda.time.DateTime other)`] +|{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-root}org/assertj/jodatime/api/DateTimeAssert.html#isBeforeOrEqualTo-java.lang.String-[`isBeforeOrEqualTo(String dateTimeAsString)`] +|{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]. -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#isEqualTo-org.joda.time.DateTime-[`isEqualTo(org.joda.time.DateTime expected)`] +|{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-root}org/assertj/jodatime/api/DateTimeAssert.html#isEqualTo-java.lang.String-[`isEqualTo(String dateTimeAsString)`] +|{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]. -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#isEqualToIgnoringHours-org.joda.time.DateTime-[`isEqualToIgnoringHours(org.joda.time.DateTime other)`] +|{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) -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#isEqualToIgnoringMinutes-org.joda.time.DateTime-[`isEqualToIgnoringMinutes(org.joda.time.DateTime other)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isEqualToIgnoringMinutes-org.joda.time.DateTime-[`isEqualToIgnoringMinutes(org.joda.time.DateTime other)`] |Verifies that actual and given `DateTime` have same year, month, day and hour fields (minute, second and millisecond fields are ignored in comparison) -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#isEqualToIgnoringSeconds-org.joda.time.DateTime-[`isEqualToIgnoringSeconds(org.joda.time.DateTime other)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isEqualToIgnoringSeconds-org.joda.time.DateTime-[`isEqualToIgnoringSeconds(org.joda.time.DateTime other)`] |Verifies that actual and given `DateTime` have same year, month, day, hour and minute fields (second and millisecond fields are ignored in comparison) -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#isEqualToIgnoringMillis-org.joda.time.DateTime-[`isEqualToIgnoringMillis(org.joda.time.DateTime other)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isEqualToIgnoringMillis-org.joda.time.DateTime-[`isEqualToIgnoringMillis(org.joda.time.DateTime other)`] |Verifies that actual and given `DateTime` have same year, month, day, hour, minute and second fields, (millisecond fields are ignored in comparison) -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#isIn-org.joda.time.DateTime\...-[`isIn(org.joda.time.DateTime... expected)`] +|{assertj-joda-time-javadoc}/org/assertj/jodatime/api/DateTimeAssert.html#isIn-org.joda.time.DateTime\...-[`isIn(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-root}org/assertj/jodatime/api/DateTimeAssert.html#isIn-java.lang.String\...-[`isIn(String... dateTimesAsString)`] +|{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] -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#isNotEqualTo-org.joda.time.DateTime-[`isNotEqualTo(org.joda.time.DateTime expected)`] +|{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-root}org/assertj/jodatime/api/DateTimeAssert.html#isNotEqualTo-java.lang.String-[`isNotEqualTo(String dateTimeAsString)`] +|{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] -|{assertj-joda-time-javadoc-root}org/assertj/jodatime/api/DateTimeAssert.html#isNotIn-org.joda.time.DateTime\...-[`isNotIn(org.joda.time.DateTime... expected)`] +|{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-root}org/assertj/jodatime/api/DateTimeAssert.html#isNotIn-java.lang.String\...-[`isNotIn(String... dateTimesAsString)`] +|{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] |=== diff --git a/src/docs/asciidoc/user-guide/assertj-joda-quickstart.adoc b/src/docs/asciidoc/user-guide/assertj-joda-quickstart.adoc index ccfe0f5..6db3596 100644 --- a/src/docs/asciidoc/user-guide/assertj-joda-quickstart.adoc +++ b/src/docs/asciidoc/user-guide/assertj-joda-quickstart.adoc @@ -6,7 +6,7 @@ This guide is for the AssertJ Joda Time module. [[get-assertj-joda-time]] ==== Get assertj-joda-time library -AssertJ Joda Time artifacts are in the Maven central repository. +AssertJ Joda Time artifacts are in the Maven central repository. [[assertj-joda-time-java-versions]] ===== Supported Java versions @@ -87,7 +87,7 @@ assertThat(utcTime).as("in UTC time").isEqualTo(cestTime); You can compare `DateTime` to another `DateTime`, or `LocalDateTime` to `LocalDateTime`, but not `DateTime` to `LocalDateTime`, it doesn't make sense as one is timezone dependent and the other is not. -Note that you can find more working examples in the https://github.com/assertj/assertj-examples/blob/main/assertions-examples/src/test/java/org/assertj/examples/JodaTimeAssertionsExamples.java[JodaTimeAssertionsExamples.java] class of the assertj-examples project. +Note that you can find more working examples in the {assertj-examples-base-package}/JodaTimeAssertionsExamples.java[JodaTimeAssertionsExamples.java] class of the assertj-examples project. [[assertj-joda-time-ide]] ==== IDE configuration diff --git a/src/docs/asciidoc/user-guide/assertj-swing-release-notes.adoc b/src/docs/asciidoc/user-guide/assertj-swing-release-notes.adoc index 966d9f6..85b9769 100644 --- a/src/docs/asciidoc/user-guide/assertj-swing-release-notes.adoc +++ b/src/docs/asciidoc/user-guide/assertj-swing-release-notes.adoc @@ -1,7 +1,7 @@ [[assertj-swing-release-notes]] === Release Notes -NOTE: AssertJ Swing would not exist without its contributors, you can find them all {assertj-swing-repo}/graphs/contributors[directly on GitHub]. +NOTE: AssertJ Swing would not exist without its contributors, you can find them all {assertj-swing-github}/graphs/contributors[directly on GitHub]. Latest release notes: diff --git a/src/docs/asciidoc/user-guide/contributors.adoc b/src/docs/asciidoc/user-guide/contributors.adoc index 041b204..6d7bee3 100644 --- a/src/docs/asciidoc/user-guide/contributors.adoc +++ b/src/docs/asciidoc/user-guide/contributors.adoc @@ -1,4 +1,4 @@ [[contributors]] == Contributors -Browse the {assertj-core-repo}/graphs/contributors[current list of contributors] directly on GitHub. +Browse the {assertj-core-github}/graphs/contributors[current list of contributors] directly on GitHub.