From 34fa268c9600427b7c9afc5f0e790b326c64d4d4 Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Fri, 20 Nov 2026 14:10:10 +0100 Subject: [PATCH 1/5] Attach Javadoc to Antora component The Antora build now generates the Javadoc and publishes it at `assertj-db//api`. The guide links to it instead of javadoc.io, including from the sidebar, and links to the AssertJ Core Javadoc point to docs.assertj.dev. Javadoc is now written to `target/reports/apidocs`, because `target/site` is the output directory of the Antora site. Also fix guide links with outdated anchors or class names. --- .github/workflows/build.yml | 2 +- CONTRIBUTING.md | 1 + package.json | 1 + pom.xml | 2 + src/docs/antora-resources/antora.yml | 2 + src/docs/antora/antora-playbook.yml | 1 + src/docs/antora/antora.yml | 5 +- src/docs/antora/modules/ROOT/nav.adoc | 1 + .../ROOT/pages/concepts/connection.adoc | 12 +-- .../modules/ROOT/pages/concepts/datetime.adoc | 6 +- .../ROOT/pages/concepts/description.adoc | 4 +- .../modules/ROOT/pages/concepts/elements.adoc | 94 +++++++++---------- .../ROOT/pages/concepts/letter-case.adoc | 64 ++++++------- .../ROOT/pages/concepts/navigation.adoc | 6 +- .../modules/ROOT/pages/concepts/output.adoc | 14 +-- .../modules/ROOT/pages/concepts/types.adoc | 42 ++++----- .../ROOT/pages/features/assertions.adoc | 52 +++++----- .../ROOT/pages/features/navigation.adoc | 28 +++--- src/docs/antora/modules/ROOT/pages/index.adoc | 2 +- 19 files changed, 175 insertions(+), 164 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 01e201d6..78cf377e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: java-version: '21' cache: 'maven' - name: Build with Maven - run: ./mvnw -B verify javadoc:javadoc + run: ./mvnw -B verify - name: Set up Node.js uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6d7f9f46..dac6182f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -30,6 +30,7 @@ To preview your changes, generate the site: ``` Then open `target/site/index.html` in a browser (the build prints the full `file://` URL at the end). +The build also generates the Javadoc and attaches it to the site, which the guide links to. The preview only contains the AssertJ DB guide; the complete site is assembled from all AssertJ repositories by [docs.assertj.dev](https://github.com/assertj/docs.assertj.dev). No Node.js installation is required: the first run downloads Node.js into `target/node` and the Antora packages into `node_modules`. To use a Node.js installation from your `PATH` instead, add `-Dnode.executable=node`. diff --git a/package.json b/package.json index 223ea05e..48db6b97 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "private": true, "devDependencies": { "@antora/collector-extension": "1.0.3", + "@springio/antora-extensions": "1.14.13", "antora": "3.2.2" } } diff --git a/pom.xml b/pom.xml index 73d9e732..7f3bf0e8 100644 --- a/pom.xml +++ b/pom.xml @@ -174,6 +174,8 @@ maven-javadoc-plugin ${rootDirectory}/src/main/javadoc/ + + ${project.build.directory}/reports diff --git a/src/docs/antora-resources/antora.yml b/src/docs/antora-resources/antora.yml index 0a5fc799..73bd6c10 100644 --- a/src/docs/antora-resources/antora.yml +++ b/src/docs/antora-resources/antora.yml @@ -7,4 +7,6 @@ asciidoc: tabsize: '3' source-indent: '0' assertj-db-version: '${project.version}' + assertj-db-javadoc: 'xref:attachment$api' + assertj-core-javadoc: 'https://docs.assertj.dev/assertj-core/current/api' assertj-examples-github: 'https://github.com/assertj/assertj-examples' diff --git a/src/docs/antora/antora-playbook.yml b/src/docs/antora/antora-playbook.yml index 33cc71d5..496926de 100644 --- a/src/docs/antora/antora-playbook.yml +++ b/src/docs/antora/antora-playbook.yml @@ -1,6 +1,7 @@ antora: extensions: - '@antora/collector-extension' + - '@springio/antora-extensions/root-attachments-extension' site: title: AssertJ Docs start_page: assertj-db::index.adoc diff --git a/src/docs/antora/antora.yml b/src/docs/antora/antora.yml index da176a6a..106d4118 100644 --- a/src/docs/antora/antora.yml +++ b/src/docs/antora/antora.yml @@ -6,9 +6,12 @@ nav: ext: collector: - run: - command: ./mvnw -q io.spring.maven.antora:antora-component-version-maven-plugin:antora-component-version resources:copy-resources@antora-resources + command: ./mvnw -q io.spring.maven.antora:antora-component-version-maven-plugin:antora-component-version resources:copy-resources@antora-resources javadoc:javadoc local: true scan: - dir: target/antora + - dir: target/reports/apidocs + clean: true + into: modules/ROOT/attachments/api - dir: src/test/java/example into: modules/ROOT/examples/java/example diff --git a/src/docs/antora/modules/ROOT/nav.adoc b/src/docs/antora/modules/ROOT/nav.adoc index 984fc7cd..58f315d7 100644 --- a/src/docs/antora/modules/ROOT/nav.adoc +++ b/src/docs/antora/modules/ROOT/nav.adoc @@ -13,3 +13,4 @@ ** xref:features/navigation.adoc[] ** xref:features/assertions.adoc[] * https://github.com/assertj/assertj-db/releases[Release Notes] +* {assertj-db-javadoc}/index.html[Javadoc] diff --git a/src/docs/antora/modules/ROOT/pages/concepts/connection.adoc b/src/docs/antora/modules/ROOT/pages/concepts/connection.adoc index 3ecaf3cb..60c68d31 100644 --- a/src/docs/antora/modules/ROOT/pages/concepts/connection.adoc +++ b/src/docs/antora/modules/ROOT/pages/concepts/connection.adoc @@ -8,8 +8,8 @@ It's also with a `AssertDbConnection` that you can instantiate the following ele [[assertdbconnection]] == AssertDbConnection -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]. +A {assertj-db-javadoc}/org/assertj/db/type/AssertDbConnection.html[AssertDbConnection] +is created with the factory {assertj-db-javadoc}/org/assertj/db/type/AssertDbConnectionFactory.html[AssertDbConnectionFactory]. 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. @@ -31,8 +31,8 @@ AssertDbConnection connection = AssertDbConnectionFactory.of(dataSource).create( [[assertdbconnectionlettercase]] == LetterCase setup -https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/AssertDbConnectionFactory.html[AssertDbConnectionFactory] -provide the capacity to indicate the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] +{assertj-db-javadoc}/org/assertj/db/type/AssertDbConnectionFactory.html[AssertDbConnectionFactory] +provide the capacity to indicate the {assertj-db-javadoc}/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] to use for the tables, columns and primary keys. [source,java] @@ -52,8 +52,8 @@ For many assertions, AssertJ-DB require to discover database schema metadata ( l When the schema contains many tables this operation can slow down the tests executions. To avoid that and when the database schema is not updated during the test session, you can use the option -https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/SchemaMetaDataMode.html[SchemaMetaDataMode] of -https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/AssertDbConnectionFactory.html[AssertDbConnectionFactory] +{assertj-db-javadoc}/org/assertj/db/type/SchemaMetaDataMode.html[SchemaMetaDataMode] of +{assertj-db-javadoc}/org/assertj/db/type/AssertDbConnectionFactory.html[AssertDbConnectionFactory] to keep in memory the schema. Available mode are : diff --git a/src/docs/antora/modules/ROOT/pages/concepts/datetime.adoc b/src/docs/antora/modules/ROOT/pages/concepts/datetime.adoc index ca61ce38..184fd0df 100644 --- a/src/docs/antora/modules/ROOT/pages/concepts/datetime.adoc +++ b/src/docs/antora/modules/ROOT/pages/concepts/datetime.adoc @@ -4,9 +4,9 @@ AssertJ-DB baseline is Java 8. The preferred way to compare values with date, ti But for the backward compatibility, it's always possible to use AssertJ-DB DateValue utilities. -So The https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/DateValue.html[DateValue], - https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/TimeValue.html[TimeValue] and - https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/DateTimeValue.html[DateTimeValue] classes are simpler but contain this kind of information. +So the {assertj-db-javadoc}/org/assertj/db/type/DateValue.html[DateValue], + {assertj-db-javadoc}/org/assertj/db/type/TimeValue.html[TimeValue] and + {assertj-db-javadoc}/org/assertj/db/type/DateTimeValue.html[DateTimeValue] classes are simpler but contain this kind of information. There is 4 kinds of static methods to instantiate these values : diff --git a/src/docs/antora/modules/ROOT/pages/concepts/description.adoc b/src/docs/antora/modules/ROOT/pages/concepts/description.adoc index 06b3f10a..8143de8a 100644 --- a/src/docs/antora/modules/ROOT/pages/concepts/description.adoc +++ b/src/docs/antora/modules/ROOT/pages/concepts/description.adoc @@ -1,6 +1,6 @@ = Default description -In assertj, it is possible to add a description with the methods of the https://www.javadoc.io/doc/org.assertj/assertj-core/latest/org/assertj/core/api/Descriptable.html[Descriptable] interface. +In assertj, it is possible to add a description with the methods of the {assertj-core-javadoc}/org/assertj/core/api/Descriptable.html[Descriptable] interface. This description is used in the error message if the assertion fails. Due to the navigation, it is more complicated in assertj-db to know on which element an error is thrown. @@ -18,4 +18,4 @@ For example : * `"Value at index 0 (column name : ID) of Row at end point of Change at index 0 (on table : MEMBERS and with primary key : [4]) of Changes on tables of 'sa/jdbc:h2:mem:test' source"` for an assertion on a value of the row at end point of a change on a table -This default description can be replaced by the choice of the tester by using the methods of https://www.javadoc.io/doc/org.assertj/assertj-core/latest/org/assertj/core/api/Descriptable.html[Descriptable]. +This default description can be replaced by the choice of the tester by using the methods of {assertj-core-javadoc}/org/assertj/core/api/Descriptable.html[Descriptable]. diff --git a/src/docs/antora/modules/ROOT/pages/concepts/elements.adoc b/src/docs/antora/modules/ROOT/pages/concepts/elements.adoc index 956b1315..3d53ed6a 100644 --- a/src/docs/antora/modules/ROOT/pages/concepts/elements.adoc +++ b/src/docs/antora/modules/ROOT/pages/concepts/elements.adoc @@ -2,9 +2,9 @@ Here the elements on which it is possible to make assertions. -Note that, there are only 3 root elements : https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.html[Table], - https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Request.html[Request] -and https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Changes.html[Changes]. +Note that, there are only 3 root elements : {assertj-db-javadoc}/org/assertj/db/type/Table.html[Table], + {assertj-db-javadoc}/org/assertj/db/type/Request.html[Request] +and {assertj-db-javadoc}/org/assertj/db/type/Changes.html[Changes]. That means that the other elements are components or sub components of a root element. @@ -13,11 +13,11 @@ A root element is an element on which the assertion start (in practice, the para [[table]] == Table -A https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.html[Table] represents +A {assertj-db-javadoc}/org/assertj/db/type/Table.html[Table] represents a table in the database. -A https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.html[Table] can be constructed with the builder method `table(String name)` from -https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/AssertDbConnection.html[AssertDbConnection]. +A {assertj-db-javadoc}/org/assertj/db/type/Table.html[Table] can be constructed with the builder method `table(String name)` from +{assertj-db-javadoc}/org/assertj/db/type/AssertDbConnection.html[AssertDbConnection]. [source,java] ---- @@ -28,7 +28,7 @@ Table table1 = connection.table("members").build(); ---- For more information about table construction, see the -https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.Builder.html[Table.Builder] javadoc. +{assertj-db-javadoc}/org/assertj/db/type/Table.Builder.html[Table.Builder] javadoc. .Representation of "table1" |==== @@ -40,7 +40,7 @@ https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Tab |4 |'Mullen' |'Larry' | |10-31-61 |1.70 |==== -For a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.html[Table], +For a {assertj-db-javadoc}/org/assertj/db/type/Table.html[Table], it is possible to choose the columns to include and to exclude in the assertions. [source,java] @@ -83,10 +83,10 @@ Table table4 = connection.table("members").columnsToCheck(new String[] { "id", " |'Mullen' |==== -It is also possible to indicate delimiters (start delimiter and end delimiter) and `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.Order.html[Order]`. +It is also possible to indicate delimiters (start delimiter and end delimiter) and `{assertj-db-javadoc}/org/assertj/db/type/Table.Order.html[Order]`. The delimiters are useful when the table name or column name is a reserved word or contains special characters (like space or '%'). - `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.Order.html[Order]` allows to choose the order of the `Row`. + `{assertj-db-javadoc}/org/assertj/db/type/Table.Order.html[Order]` allows to choose the order of the `Row`. [source,java] ---- @@ -121,13 +121,13 @@ Table table7 = connection.table("members").columnsToOrder(new Order[] { Order.as [[request]] == Request -A https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Request.html[Request] represents +A {assertj-db-javadoc}/org/assertj/db/type/Request.html[Request] represents a SQL request on the database. -Like a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.html[Table], -a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Request.html[Request] +Like a {assertj-db-javadoc}/org/assertj/db/type/Table.html[Table], +a {assertj-db-javadoc}/org/assertj/db/type/Request.html[Request] can be constructed with the builder method `request(String sql)` from -https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/AssertDbConnection.html[AssertDbConnection]. +{assertj-db-javadoc}/org/assertj/db/type/AssertDbConnection.html[AssertDbConnection]. [source,java] ---- @@ -138,7 +138,7 @@ Request request1 = connection.request("select name, firstname from members where ---- For more information about request construction, see the -https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Request.Builder.html[Request.Builder] javadoc. +{assertj-db-javadoc}/org/assertj/db/type/Request.Builder.html[Request.Builder] javadoc. .Representation of "request1" |==== @@ -148,7 +148,7 @@ https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Req |'Clayton' |'Adam' | |==== -For a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Request.html[Request], +For a {assertj-db-javadoc}/org/assertj/db/type/Request.html[Request], it is possible to use a simple SQL request or a SQL request with one or many parameters. [source,java] @@ -188,7 +188,7 @@ Request request3 = connection.request( [[changes]] == Changes -The https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Changes.html[Changes] +The {assertj-db-javadoc}/org/assertj/db/type/Changes.html[Changes] are the differences of states in database between a `start point` and a `end point`. image::db-changes-concept.png[] @@ -219,7 +219,7 @@ Changes changes4 = connection.changes().request("select name, firstname from mem ---- For more information about changes construction, see the -https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Changes.Builder.html[Changes.Builder] javadoc. +{assertj-db-javadoc}/org/assertj/db/type/Changes.Builder.html[Changes.Builder] javadoc. The changes are ordered : @@ -332,10 +332,10 @@ In Representation of "changes3" the modification of first row of the table becom [[change]] == Change -A https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Change.html[Change] -is an element of the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Changes.html[Changes]. +A {assertj-db-javadoc}/org/assertj/db/type/Change.html[Change] +is an element of the {assertj-db-javadoc}/org/assertj/db/type/Changes.html[Changes]. -Below framed in red the first https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Change.html[Change] +Below framed in red the first {assertj-db-javadoc}/org/assertj/db/type/Change.html[Change] of "changes2". .Representation of "changes2" @@ -360,12 +360,12 @@ of "changes2". [[row]] == Row -A https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Row.html[Row] -can represent a row of a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.html[Table] -, of a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Request.html[Request] or -of a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Change.html[Change]. +A {assertj-db-javadoc}/org/assertj/db/type/Row.html[Row] +can represent a row of a {assertj-db-javadoc}/org/assertj/db/type/Table.html[Table] +, of a {assertj-db-javadoc}/org/assertj/db/type/Request.html[Request] or +of a {assertj-db-javadoc}/org/assertj/db/type/Change.html[Change]. -Below framed in red the third https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Row.html[Row] of "table3". +Below framed in red the third {assertj-db-javadoc}/org/assertj/db/type/Row.html[Row] of "table3". .Representation of "table3" |==== @@ -377,7 +377,7 @@ Below framed in red the third https://www.javadoc.io/doc/org.assertj/assertj-db/ |4 |'Mullen' |'Larry' | |1.70 |==== -Below framed in red the second https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Row.html[Row] of "request2". +Below framed in red the second {assertj-db-javadoc}/org/assertj/db/type/Row.html[Row] of "request2". .Representation of "request2" |==== @@ -388,8 +388,8 @@ Below framed in red the second https://www.javadoc.io/doc/org.assertj/assertj-db |'Mullen' |'Larry' | |==== -Below framed in red the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Row.html[Row] at end point of -the second https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Change.html[Change] +Below framed in red the {assertj-db-javadoc}/org/assertj/db/type/Row.html[Row] at end point of +the second {assertj-db-javadoc}/org/assertj/db/type/Change.html[Change] of "changes3". .Representation of "changes2" @@ -414,12 +414,12 @@ of "changes3". [[column]] == Column -A https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Column.html[Column] -can represent a column of a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.html[Table] -, of a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Request.html[Request] or -of a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Change.html[Change]. +A {assertj-db-javadoc}/org/assertj/db/type/Column.html[Column] +can represent a column of a {assertj-db-javadoc}/org/assertj/db/type/Table.html[Table] +, of a {assertj-db-javadoc}/org/assertj/db/type/Request.html[Request] or +of a {assertj-db-javadoc}/org/assertj/db/type/Change.html[Change]. -Below framed in red the second https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Column.html[Column] of "table3". +Below framed in red the second {assertj-db-javadoc}/org/assertj/db/type/Column.html[Column] of "table3". .Representation of "table3" |==== @@ -431,7 +431,7 @@ Below framed in red the second https://www.javadoc.io/doc/org.assertj/assertj-db |4 |'Mullen' |'Larry' | |1.70 |==== -Below framed in red the second https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Column.html[Column] of "request2". +Below framed in red the second {assertj-db-javadoc}/org/assertj/db/type/Column.html[Column] of "request2". .Representation of "request2" |==== @@ -442,8 +442,8 @@ Below framed in red the second https://www.javadoc.io/doc/org.assertj/assertj-db |'Mullen' |'Larry' | |==== -Below framed in red the fourth https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Column.html[Column] of -the second https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Change.html[Change] +Below framed in red the fourth {assertj-db-javadoc}/org/assertj/db/type/Column.html[Column] of +the second {assertj-db-javadoc}/org/assertj/db/type/Change.html[Change] of "changes3". .Representation of "changes2" @@ -468,13 +468,13 @@ of "changes3". [[value]] == Value -A value can be in a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Row.html[Row] -or in a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Column.html[Column]. +A value can be in a {assertj-db-javadoc}/org/assertj/db/type/Row.html[Row] +or in a {assertj-db-javadoc}/org/assertj/db/type/Column.html[Column]. Below framed in red (depending of the path) : -* the second value of the third https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Row.html[Row] of "table3" -* the third value of the second https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Column.html[Column] of "table3" +* the second value of the third {assertj-db-javadoc}/org/assertj/db/type/Row.html[Row] of "table3" +* the third value of the second {assertj-db-javadoc}/org/assertj/db/type/Column.html[Column] of "table3" .Representation of "table3" |==== @@ -488,8 +488,8 @@ Below framed in red (depending of the path) : Below framed in red (depending of the path) : -* the second value of the second https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Row.html[Row] of "request2" -* the second value of the second https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Column.html[Column] of "request2" +* the second value of the second {assertj-db-javadoc}/org/assertj/db/type/Row.html[Row] of "request2" +* the second value of the second {assertj-db-javadoc}/org/assertj/db/type/Column.html[Column] of "request2" .Representation of "request2" |==== @@ -502,11 +502,11 @@ Below framed in red (depending of the path) : Below framed in red (depending of the path) : -* the fourth value of the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Row.html[Row] at end point of -the second https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Change.html[Change] +* the fourth value of the {assertj-db-javadoc}/org/assertj/db/type/Row.html[Row] at end point of +the second {assertj-db-javadoc}/org/assertj/db/type/Change.html[Change] of "changes2" -* the value at end point of the fourth https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Column.html[Column] of -the second https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Change.html[Change] +* the value at end point of the fourth {assertj-db-javadoc}/org/assertj/db/type/Column.html[Column] of +the second {assertj-db-javadoc}/org/assertj/db/type/Change.html[Change] of "changes2" .Representation of "changes2" diff --git a/src/docs/antora/modules/ROOT/pages/concepts/letter-case.adoc b/src/docs/antora/modules/ROOT/pages/concepts/letter-case.adoc index c92e03a6..0a670549 100644 --- a/src/docs/antora/modules/ROOT/pages/concepts/letter-case.adoc +++ b/src/docs/antora/modules/ROOT/pages/concepts/letter-case.adoc @@ -3,71 +3,71 @@ Databases have different letter cases for the name of the elements. For example, the name of the table can be upper case either the name is inputted in upper case or not. So this concept (and feature too) is here to manage these shades. -It is possible to declare a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] +It is possible to declare a {assertj-db-javadoc}/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] with a xref:concepts/connection.adoc#assertdbconnectionlettercase[AssertDbConnection with LetterCase]. -The concept of https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] is composed of https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseConversion.html[CaseConversion] and https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseComparison.html[CaseComparison]. +The concept of {assertj-db-javadoc}/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] is composed of {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseConversion.html[CaseConversion] and {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseComparison.html[CaseComparison]. [[caseconversion]] == CaseConversion -The https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseConversion.html[CaseConversion] is used when getting a name with letter case from database : a table name, a column name or a primary key name. +The {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseConversion.html[CaseConversion] is used when getting a name with letter case from database : a table name, a column name or a primary key name. -There are three conversions modes : https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseConversions.html#UPPER[UPPER] which converts to upper case (`"Name"` becomes `"NAME"`), https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseConversions.html#LOWER[LOWER] which converts to lower case (`"Name"` becomes `"name"`) and https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseConversions.html#NO[NO] which keeps the case (`"Name"` remains `"Name"`). +There are three conversions modes : {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseConversions.html#UPPER[UPPER] which converts to upper case (`"Name"` becomes `"NAME"`), {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseConversions.html#LOWER[LOWER] which converts to lower case (`"Name"` becomes `"name"`) and {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseConversions.html#NO[NO] which keeps the case (`"Name"` remains `"Name"`). -Each name (table, column and primary key) got from the database is converted using a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseConversion.html[CaseConversion]. +Each name (table, column and primary key) got from the database is converted using a {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseConversion.html[CaseConversion]. [[casecomparison]] == CaseComparison -The https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseComparison.html[CaseComparison] is used when comparing something with letter case from database or with a parameter. +The {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseComparison.html[CaseComparison] is used when comparing something with letter case from database or with a parameter. -There are two comparison modes : https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseComparisons.html#IGNORE[IGNORE] which compares `String`s by ignoring the case (`"Name"` is considered equal to `"NAME"`) and https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseComparisons.html#STRICT[STRICT] which compares `String`s strictly (`"Name"` is considered different from `"NAME"`). +There are two comparison modes : {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseComparisons.html#IGNORE[IGNORE] which compares `String`s by ignoring the case (`"Name"` is considered equal to `"NAME"`) and {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseComparisons.html#STRICT[STRICT] which compares `String`s strictly (`"Name"` is considered different from `"NAME"`). -During navigation (e.g. from table to column) and assertion (e.g. on column name), the name are compared using a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseComparison.html[CaseComparison]. +During navigation (e.g. from table to column) and assertion (e.g. on column name), the name are compared using a {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseComparison.html[CaseComparison]. [[lettercase]] == LetterCase -A https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] is created with the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/LetterCase.html#getLetterCase-org.assertj.db.type.lettercase.CaseConversion-org.assertj.db.type.lettercase.CaseComparison-[getLetterCase] +A {assertj-db-javadoc}/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] is created with the {assertj-db-javadoc}/org/assertj/db/type/lettercase/LetterCase.html#getLetterCase(org.assertj.db.type.lettercase.CaseConversion,org.assertj.db.type.lettercase.CaseComparison)[getLetterCase] static method which has a - https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseConversion.html[CaseConversion] and a - https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseComparison.html[CaseComparison] as parameters. + {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseConversion.html[CaseConversion] and a + {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseComparison.html[CaseComparison] as parameters. [source,java] ---- LetterCase letterCase = LetterCase.getLetterCase(CaseConversions.NO, CaseComparisons.IGNORE); ---- -In AssertJ-DB, there are three different uses of a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] : +In AssertJ-DB, there are three different uses of a {assertj-db-javadoc}/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] : the table name, the column name and the primary key name. -That is the reason why the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/AssertDbConnection.html[AssertDbConnection] -have three https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] parameters. +That is the reason why the {assertj-db-javadoc}/org/assertj/db/type/AssertDbConnection.html[AssertDbConnection] +have three {assertj-db-javadoc}/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] parameters. -The https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] on the tables is used : +The {assertj-db-javadoc}/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] on the tables is used : -* to convert the table name : when a name is got from the database like for the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.html[Table] -instantiation or for the table with changes found with https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Changes.html[Changes]. -* to compare the table name : for the instantiation when the table is search in the database for https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.html[Table], -for navigation (e.g. from changes to a change on a table) or for a assertion (like https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnDataType.html#isOnTable-java.lang.String-[isOnTable(String name)]). +* to convert the table name : when a name is got from the database like for the {assertj-db-javadoc}/org/assertj/db/type/Table.html[Table] +instantiation or for the table with changes found with {assertj-db-javadoc}/org/assertj/db/type/Changes.html[Changes]. +* to compare the table name : for the instantiation when the table is search in the database for {assertj-db-javadoc}/org/assertj/db/type/Table.html[Table], +for navigation (e.g. from changes to a change on a table) or for a assertion (like {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnDataType.html#isOnTable(java.lang.String)[isOnTable(String name)]). -The https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] on the columns is used : +The {assertj-db-javadoc}/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] on the columns is used : * to convert the column name : when a column name is got from the database for a table or a request -* to compare the column name : for the navigation (e.g. from a table to a column) or for a assertion (like https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnColumnName.html#hasColumnName-java.lang.String-[hasColumnName(String columnName)]). +* to compare the column name : for the navigation (e.g. from a table to a column) or for a assertion (like {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnColumnName.html#hasColumnName(java.lang.String)[hasColumnName(String columnName)]). -The https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] on the primary keys is used : +The {assertj-db-javadoc}/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] on the primary keys is used : * to convert the primary key name : when a primary key name is got from the database for a table -* to compare the primary key name : for a assertion (like https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnPrimaryKey.html#hasPksNames-java.lang.String...-[hasPksNames(String... names)]). +* to compare the primary key name : for a assertion (like {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnPrimaryKey.html#hasPksNames(java.lang.String\...)[hasPksNames(String... names)]). -The default settings for https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] in -https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/AssertDbConnection.html[AssertDbConnection] are : +The default settings for {assertj-db-javadoc}/org/assertj/db/type/lettercase/LetterCase.html[LetterCase] in +{assertj-db-javadoc}/org/assertj/db/type/AssertDbConnection.html[AssertDbConnection] are : -* https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseConversions.html#NO[NO] conversion -and https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseComparisons.html#IGNORE[IGNORE] comparison for table names -* https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseConversions.html#UPPER[UPPER] conversion -and https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseComparisons.html#IGNORE[IGNORE] comparison for the column and primary key name +* {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseConversions.html#NO[NO] conversion +and {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseComparisons.html#IGNORE[IGNORE] comparison for table names +* {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseConversions.html#UPPER[UPPER] conversion +and {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseComparisons.html#IGNORE[IGNORE] comparison for the column and primary key name In this example, the two connections are equivalent : @@ -85,7 +85,7 @@ AssertDbConnection connectionWithLC = AssertDbConnectionFactory.of("jdbc:h2:mem: Table tableWithLC = connectionWithLC.table("members").build(); ---- -Note that the letter case is extensible because the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/LetterCase.html#getLetterCase-org.assertj.db.type.lettercase.CaseConversion-org.assertj.db.type.lettercase.CaseComparison-[getLetterCase] -static method's parameters are instances of the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseConversion.html[CaseConversion] -and the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/lettercase/CaseComparison.html[CaseComparison] interfaces. +Note that the letter case is extensible because the {assertj-db-javadoc}/org/assertj/db/type/lettercase/LetterCase.html#getLetterCase(org.assertj.db.type.lettercase.CaseConversion,org.assertj.db.type.lettercase.CaseComparison)[getLetterCase] +static method's parameters are instances of the {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseConversion.html[CaseConversion] +and the {assertj-db-javadoc}/org/assertj/db/type/lettercase/CaseComparison.html[CaseComparison] interfaces. So this is not limited to the implementations in the corresponding enumerations. diff --git a/src/docs/antora/modules/ROOT/pages/concepts/navigation.adoc b/src/docs/antora/modules/ROOT/pages/concepts/navigation.adoc index 4be6bb15..8c74f38f 100644 --- a/src/docs/antora/modules/ROOT/pages/concepts/navigation.adoc +++ b/src/docs/antora/modules/ROOT/pages/concepts/navigation.adoc @@ -7,7 +7,7 @@ There are examples of the navigation in {assertj-examples-github}/blob/main/asse [[tableorrequestasroot]] == With a Table or a Request as root -The `assertThat(...)` static method of `Assertions` allows to create a root assertion on a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.html[Table]. +The `assertThat(...)` static method of `Assertions` allows to create a root assertion on a {assertj-db-javadoc}/org/assertj/db/type/Table.html[Table]. [source,java] ---- @@ -16,7 +16,7 @@ import static org.assertj.core.api.Assertions.assertThat; assertThat(table)... ---- -or on a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Request.html[Request]. +or on a {assertj-db-javadoc}/org/assertj/db/type/Request.html[Request]. [source,java] ---- @@ -49,7 +49,7 @@ More details on this concept in assertj-db-features-highlight.html#tableorreques == With Changes as root The `assertThat(...)` static method of `Assertions` -allows to create a root assertion on https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Changes.html[Changes]. +allows to create a root assertion on {assertj-db-javadoc}/org/assertj/db/type/Changes.html[Changes]. [source,java] ---- diff --git a/src/docs/antora/modules/ROOT/pages/concepts/output.adoc b/src/docs/antora/modules/ROOT/pages/concepts/output.adoc index 793b8d28..2531b656 100644 --- a/src/docs/antora/modules/ROOT/pages/concepts/output.adoc +++ b/src/docs/antora/modules/ROOT/pages/concepts/output.adoc @@ -39,8 +39,8 @@ In the example above, the output is in plain text in the console. It is possible There are two outputs already implemented : -* https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/output/impl/OutputType.html#PLAIN[PLAIN] : shown in the example above (the default output type) -* https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/output/impl/OutputType.html#HTML[HTML] : which represents the result as an HTML document +* {assertj-db-javadoc}/org/assertj/db/output/impl/OutputType.html#PLAIN[PLAIN] : shown in the example above (the default output type) +* {assertj-db-javadoc}/org/assertj/db/output/impl/OutputType.html#HTML[HTML] : which represents the result as an HTML document [source,java] ---- @@ -48,17 +48,17 @@ There are two outputs already implemented : output(table).withType(OutputType.HTML).....; ---- -Note that the type of output is extensible because the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/output/AbstractOutputter.html#withType-org.assertj.db.output.impl.Output-[withType(Output outputType)] method's parameter is an instance of the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/output/impl/Output.html[Output] interface. -So this is not limited to the implementations in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/output/impl/OutputType.html[OutputType] enum. +Note that the type of output is extensible because the {assertj-db-javadoc}/org/assertj/db/output/AbstractOutputter.html#withType(org.assertj.db.output.impl.Output)[withType(Output outputType)] method's parameter is an instance of the {assertj-db-javadoc}/org/assertj/db/output/impl/Output.html[Output] interface. +So this is not limited to the implementations in the {assertj-db-javadoc}/org/assertj/db/output/impl/OutputType.html[OutputType] enum. [[destination]] == Destination The destination is the way to print the display. There are three destinations : -* the console (with the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/output/AbstractOutputter.html#toConsole--[toConsole()] method) -* a file (with the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/output/AbstractOutputter.html#toFile-java.lang.String-[toFile(String fileName)] method) -* a stream (with the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/output/AbstractOutputter.html#toStream-java.io.OutputStream-[toStream(OutputStream outputStream)] method) +* the console (with the {assertj-db-javadoc}/org/assertj/db/output/AbstractOutputter.html#toConsole()[toConsole()] method) +* a file (with the {assertj-db-javadoc}/org/assertj/db/output/AbstractOutputter.html#toFile(java.lang.String)[toFile(String fileName)] method) +* a stream (with the {assertj-db-javadoc}/org/assertj/db/output/AbstractOutputter.html#toStream(java.io.OutputStream)[toStream(OutputStream outputStream)] method) Note that with this last method the possibilities of destination are really flexible. diff --git a/src/docs/antora/modules/ROOT/pages/concepts/types.adoc b/src/docs/antora/modules/ROOT/pages/concepts/types.adoc index fc33e8a7..591cf089 100644 --- a/src/docs/antora/modules/ROOT/pages/concepts/types.adoc +++ b/src/docs/antora/modules/ROOT/pages/concepts/types.adoc @@ -3,52 +3,52 @@ [[datatype]] == Data Type -As see above there are three root elements of database, but only https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.html[Table] and https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Request.html[Request] are data elements. -All the possible types of data are contained in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/DataType.html[DataType] enumeration. +As see above there are three root elements of database, but only {assertj-db-javadoc}/org/assertj/db/type/Table.html[Table] and {assertj-db-javadoc}/org/assertj/db/type/Request.html[Request] are data elements. +All the possible types of data are contained in the {assertj-db-javadoc}/org/assertj/db/type/DataType.html[DataType] enumeration. The type of the data can be : -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/DataType.html#TABLE[TABLE]` -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/DataType.html#REQUEST[REQUEST]` +* `{assertj-db-javadoc}/org/assertj/db/type/DataType.html#TABLE[TABLE]` +* `{assertj-db-javadoc}/org/assertj/db/type/DataType.html#REQUEST[REQUEST]` [[changetype]] == Change Type The change can be a creation, a modification or a deletion. -All the possible types of change are contained in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/ChangeType.html[ChangeType] enumeration. +All the possible types of change are contained in the {assertj-db-javadoc}/org/assertj/db/type/ChangeType.html[ChangeType] enumeration. The type of the change depends of operation on database : -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/ChangeType.html#CREATION[CREATION]` for a `insert` sql request -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/ChangeType.html#MODIFICATION[MODIFICATION]` for a `update` sql request -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/ChangeType.html#DELETION[DELETION]` for a `delete` sql request +* `{assertj-db-javadoc}/org/assertj/db/type/ChangeType.html#CREATION[CREATION]` for a `insert` sql request +* `{assertj-db-javadoc}/org/assertj/db/type/ChangeType.html#MODIFICATION[MODIFICATION]` for a `update` sql request +* `{assertj-db-javadoc}/org/assertj/db/type/ChangeType.html#DELETION[DELETION]` for a `delete` sql request [[valuetype]] == Value Type The value can be a date, a boolean or a text for example. -All the possible types of value are contained in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/ValueType.html[ValueType] enumeration. +All the possible types of value are contained in the {assertj-db-javadoc}/org/assertj/db/type/ValueType.html[ValueType] enumeration. The type of the value depends of class of the object given by `java.sql` when the data are got from database : -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/ValueType.html#BYTES[BYTES]` for a array of bytes (`byte[]`) -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/ValueType.html#BOOLEAN[BOOLEAN]` for a `java.lang.Boolean` -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/ValueType.html#TEXT[TEXT]` for a `java.lang.String` -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/ValueType.html#DATE[DATE]` for a `java.sql.Date` -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/ValueType.html#TIME[TIME]` for a `java.sql.Time` -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/ValueType.html#DATE_TIME[DATE_TIME]` for a `java.sql.Timestamp` -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/ValueType.html#UUID[UUID]` for a `java.util.UUID` -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/ValueType.html#NUMBER[NUMBER]` for a `java.lang.Byte`, +* `{assertj-db-javadoc}/org/assertj/db/type/ValueType.html#BYTES[BYTES]` for a array of bytes (`byte[]`) +* `{assertj-db-javadoc}/org/assertj/db/type/ValueType.html#BOOLEAN[BOOLEAN]` for a `java.lang.Boolean` +* `{assertj-db-javadoc}/org/assertj/db/type/ValueType.html#TEXT[TEXT]` for a `java.lang.String` +* `{assertj-db-javadoc}/org/assertj/db/type/ValueType.html#DATE[DATE]` for a `java.sql.Date` +* `{assertj-db-javadoc}/org/assertj/db/type/ValueType.html#TIME[TIME]` for a `java.sql.Time` +* `{assertj-db-javadoc}/org/assertj/db/type/ValueType.html#DATE_TIME[DATE_TIME]` for a `java.sql.Timestamp` +* `{assertj-db-javadoc}/org/assertj/db/type/ValueType.html#UUID[UUID]` for a `java.util.UUID` +* `{assertj-db-javadoc}/org/assertj/db/type/ValueType.html#NUMBER[NUMBER]` for a `java.lang.Byte`, `java.lang.Short`, `java.lang.Integer`, `java.lang.Long`, `java.lang.Double`, `java.lang.Float` or `java.math.BigDecimal` -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/ValueType.html#NOT_IDENTIFIED[NOT_IDENTIFIED]` for other cases (for example when the value is `null`) +* `{assertj-db-javadoc}/org/assertj/db/type/ValueType.html#NOT_IDENTIFIED[NOT_IDENTIFIED]` for other cases (for example when the value is `null`) [[ordertype]] == Order Type The order can be a ascending or descending. -All the possible types of order are contained in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.Order.OrderType.html[Table.Order.OrderType] enumeration. +All the possible types of order are contained in the {assertj-db-javadoc}/org/assertj/db/type/Table.Order.OrderType.html[Table.Order.OrderType] enumeration. The type of the order can be : -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.Order.OrderType.html#ASC[ASC]` for an ascending order -* `https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.Order.OrderType.html#DESC[DESC]` for a descending order +* `{assertj-db-javadoc}/org/assertj/db/type/Table.Order.OrderType.html#ASC[ASC]` for an ascending order +* `{assertj-db-javadoc}/org/assertj/db/type/Table.Order.OrderType.html#DESC[DESC]` for a descending order diff --git a/src/docs/antora/modules/ROOT/pages/features/assertions.adoc b/src/docs/antora/modules/ROOT/pages/features/assertions.adoc index 23090773..c451a63b 100644 --- a/src/docs/antora/modules/ROOT/pages/features/assertions.adoc +++ b/src/docs/antora/modules/ROOT/pages/features/assertions.adoc @@ -3,7 +3,7 @@ [[onchangetype]] == On the type of change -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnChangeType.html[AssertOnChangeType] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnChangeType.html[AssertOnChangeType] interface. These assertions allow to verify the type of a change (the concept of change of type is described xref:concepts/types.adoc#changetype[here]). @@ -23,8 +23,8 @@ assertThat(changes).change().isCreation(); [[oncolumnequality]] == On the equality with the values of a column -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnColumnEquality.html[AssertOnColumnEquality] -and the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnColumnOfChangeEquality.html[AssertOnColumnOfChangeEquality] interfaces. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnColumnEquality.html[AssertOnColumnEquality] +and the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnColumnOfChangeEquality.html[AssertOnColumnOfChangeEquality] interfaces. These assertion allow to verify the values of a column (the column of a table, of a request or of a change). @@ -183,7 +183,7 @@ assertThat(changes).change().column().hasValues('T'); [[oncolumnname]] == On the name of a column -This assertion is described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnColumnName.html[AssertOnColumnName] interface. +This assertion is described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnColumnName.html[AssertOnColumnName] interface. This assertion allows to verify the name of a column (the column of a table, of a request or of a change). @@ -200,7 +200,7 @@ assertThat(changes).change().column().hasColumnName("id"); [[oncolumnnullity]] == On the nullity of the values of a column -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnColumnNullity.html[AssertOnColumnNullity] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnColumnNullity.html[AssertOnColumnNullity] interface. These assertion allows to verify the nullity of the values of a column (the column of a table or of a request). @@ -215,7 +215,7 @@ assertThat(request).column("name").hasOnlyNotNullValues(); [[onrownullity]] == On the nullity of the values of a row -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnRowNullity.html[AssertOnRowNullity] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnRowNullity.html[AssertOnRowNullity] interface. These assertion allows to verify the nullity of the values of a row (the row of a table or of a request). @@ -230,7 +230,7 @@ assertThat(request).row().hasOnlyNotNullValues(); [[oncolumntype]] == On the type of column -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnColumnType.html[AssertOnColumnType] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnColumnType.html[AssertOnColumnType] interface. These assertions allow to verify the type of the values of a column (a column from a table, from a request or from a change). @@ -254,7 +254,7 @@ assertThat(changes).change().column() [[oncolumnclass]] == On the class of column -This assertion is described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnColumnClass.html[AssertOnColumnClass] interface. +This assertion is described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnColumnClass.html[AssertOnColumnClass] interface. This assertion allows to verify the class of the values of a column (a column from a table, from a request or from a change). @@ -271,7 +271,7 @@ assertThat(changes).change().column().isOfClass(Locale.class, true); [[oncolumncontent]] == On the content of column -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnColumnContent.html[AssertOnColumnContent] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnColumnContent.html[AssertOnColumnContent] interface. These assertions allow to verify the content of a column (a column from a table or from a request). @@ -293,7 +293,7 @@ assertThat(table).column("name").containsValues("Evans", [[ondatatype]] == On the type of data -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnDataType.html[AssertOnDataType] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnDataType.html[AssertOnDataType] interface. These assertions allow to verify the type of the date on which is a change. @@ -310,8 +310,8 @@ assertThat(changes).change().isOnTable("members"); [[onmodifiedcolumns]] == On the modified columns in a change -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnModifiedColumn.html[AssertOnModifiedColumn] -and the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnModifiedColumns.html[AssertOnModifiedColumns] interfaces. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnModifiedColumn.html[AssertOnModifiedColumn] +and the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnModifiedColumns.html[AssertOnModifiedColumns] interfaces. These assertions allow to verify if a column of a change have been modified between the start point and the end point (see the xref:concepts/elements.adoc#changes[concept of changes]). @@ -345,7 +345,7 @@ assertThat(changes).change().hasNumberOfModifiedColumnsLessThanOrEqualTo(6); [[onnumberchanges]] == On the number of changes -This assertion is described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnNumberOfChanges.html[AssertOnNumberOfChanges] interface. +This assertion is described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnNumberOfChanges.html[AssertOnNumberOfChanges] interface. This assertion allows to verify the number of changes. @@ -372,7 +372,7 @@ assertThat(changes).hasNumberOfChangesLessThanOrEqualTo(6); [[onnumbercolumns]] == On the number of columns -This assertion is described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnNumberOfColumns.html[AssertOnNumberOfColumns] interface. +This assertion is described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnNumberOfColumns.html[AssertOnNumberOfColumns] interface. This assertion allows to verify the number of columns (columns from a table, from a request or from a change). @@ -401,7 +401,7 @@ assertThat(changes).hasNumberOfColumnsLessThanOrEqualTo(6); [[onnumberrows]] == On the number of rows -This assertion is described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnNumberOfRows.html[AssertOnNumberOfRows] interface. +This assertion is described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnNumberOfRows.html[AssertOnNumberOfRows] interface. This assertion allows to verify the number of rows (rows from a table or from a request). @@ -436,7 +436,7 @@ assertThat(table).isEmpty(); [[onprimarykeys]] == On the primary keys -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnPrimaryKey.html[AssertOnPrimaryKey] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnPrimaryKey.html[AssertOnPrimaryKey] interface. These assertions allow to verify the names and the values of the columns which compose the primary keys of the rows from a change. @@ -451,7 +451,7 @@ assertThat(changes).change().hasPksValues(1, "HEWSON"); [[onrowequality]] == On the equality with the values of a row -This assertion is described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnRowEquality.html[AssertOnRowEquality] interface. +This assertion is described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnRowEquality.html[AssertOnRowEquality] interface. This assertion allow to verify the values of a row (the row of a table, of a request or of a change). @@ -478,7 +478,7 @@ assertThat(changes).change().rowAtEndPoint() [[onrowexistence]] == On the existence of a row in a change -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnRowOfChangeExistence.html[AssertOnRowOfChangeExistence] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnRowOfChangeExistence.html[AssertOnRowOfChangeExistence] interface. These assertions allow to verify that the row at start point or at end point of a change exists or not (for a creation, the row do not exist at start point and for a deletion it is the contrary : the row do not exist at end point). @@ -493,7 +493,7 @@ assertThat(changes).change().rowAtEndPoint().doesNotExist(); [[onvaluechronology]] == On the chronology of a value -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnValueChronology.html[AssertOnValueChronology] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnValueChronology.html[AssertOnValueChronology] interface. These assertions allow to compare a value (the value of a table, of a request or of a change) to a date, a time or a date/time. @@ -511,7 +511,7 @@ assertThat(changes).change().column("release").valueAtEndPoint() [[onvaluecomparison]] == On the comparison with a value -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnValueComparison.html[AssertOnValueComparison] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnValueComparison.html[AssertOnValueComparison] interface. These assertions allow to compare a value (the value of a table, of a request or of a change) to a number. @@ -529,7 +529,7 @@ assertThat(changes).change().column("size").valueAtEndPoint() [[onvaluecloseness]] == On the closeness of a value -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnValueCloseness.html[AssertOnValueCloseness] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnValueCloseness.html[AssertOnValueCloseness] interface. These assertions allow to verify if a value (the value of a table, of a request or of a change) is close to another. @@ -548,7 +548,7 @@ assertThat(changes).change().column("birth").valueAtEndPoint() [[onvaluequality]] == On the equality with a value -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnValueEquality.html[AssertOnValueEquality] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnValueEquality.html[AssertOnValueEquality] interface. These assertion allow to verify that a value (the value of a table, of a request or of a change) is equal to another value (in parameter). @@ -665,7 +665,7 @@ assertThat(table).column().value().isEqualTo('T') [[onvaluenonquality]] == On the non equality with a value -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnValueNonEquality.html[AssertOnValueNonEquality] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnValueInequality.html[AssertOnValueInequality] interface. These assertion allow to verify that a value (the value of a table, of a request or of a change) is not equal to another value (in parameter). @@ -782,7 +782,7 @@ assertThat(table).column() [[onvaluenullity]] == On the nullity of a value -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnValueNullity.html[AssertOnValueNullity] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnValueNullity.html[AssertOnValueNullity] interface. These assertions allow to verify if a value (the value of a table, of a request or of a change) is null or not. @@ -799,7 +799,7 @@ assertThat(changes).change().rowAtStartPoint().value("live") [[onvaluetype]] == On the type of a value -These assertions are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnValueType.html[AssertOnValueType] interface. +These assertions are described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnValueType.html[AssertOnValueType] interface. This assertion allows to verify the type of a value (a value from a table, from a request or from changes). @@ -820,7 +820,7 @@ assertThat(changes).change().column().valueAtStartPoint() [[onvalueclass]] == On the class of a value -This assertion is described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/assertions/AssertOnValueClass.html[AssertOnValueClass] interface. +This assertion is described in the {assertj-db-javadoc}/org/assertj/db/api/assertions/AssertOnValueClass.html[AssertOnValueClass] interface. This assertion allows to verify the class of a value (a value from a table, from a request or from changes). diff --git a/src/docs/antora/modules/ROOT/pages/features/navigation.adoc b/src/docs/antora/modules/ROOT/pages/features/navigation.adoc index f1694c0a..f2db42c4 100644 --- a/src/docs/antora/modules/ROOT/pages/features/navigation.adoc +++ b/src/docs/antora/modules/ROOT/pages/features/navigation.adoc @@ -6,8 +6,8 @@ As shown in the xref:concepts/navigation.adoc#tableorrequestasroot[concepts] (to easily understand this chapter it is important to know the concepts of assertj-db), the `assertThat(...)` static method is used to begin an assertion -on a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Table.html[Table] -or on a https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/type/Request.html[Request]. +on a {assertj-db-javadoc}/org/assertj/db/type/Table.html[Table] +or on a {assertj-db-javadoc}/org/assertj/db/type/Request.html[Request]. The navigation from a table or from a request are similar, so in most of the examples below a table will be used : @@ -34,7 +34,7 @@ at the column name [[tableorrequesttorow]] === To a Row -These methods are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/navigation/ToRow.html[ToRow] interface. +These methods are described in the {assertj-db-javadoc}/org/assertj/db/navigation/ToRow.html[ToRow] interface. The `row()` method allows to navigate to the next row after the row reached on the last call. @@ -112,7 +112,7 @@ assertThat(table).row().row()... [[tableorrequesttocolumn]] === To a Column -These methods are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/navigation/ToColumn.html[ToColumn] interface. +These methods are described in the {assertj-db-javadoc}/org/assertj/db/navigation/ToColumn.html[ToColumn] interface. The `column()` method allows to navigate to the next column after the column reached on the last call. @@ -208,8 +208,8 @@ assertThat(table).column().column()... [[tableorrequesttovalue]] === To a Value -These methods are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/navigation/ToValue.html[ToValue] -and the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/navigation/ToValueFromRow.html[ToValueFromRow] interfaces. +These methods are described in the {assertj-db-javadoc}/org/assertj/db/navigation/ToValue.html[ToValue] +and the {assertj-db-javadoc}/org/assertj/db/navigation/ToValueFromRow.html[ToValueFromRow] interfaces. The `value()` method allows to navigate to the next value after the value reached on the last call. @@ -306,7 +306,7 @@ assertThat(table).column().value().value()... [[changestochanges]] === To Changes -These methods are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/navigation/ToChanges.html[ToChanges] interface. +These methods are described in the {assertj-db-javadoc}/org/assertj/db/navigation/ToChanges.html[ToChanges] interface. The `ofCreation()` method allows to navigate to the changes of creation. @@ -407,7 +407,7 @@ it is like if the method was executed from the Changes. [[changestochange]] === To a Change -These methods are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/navigation/ToChange.html[ToChange] interface. +These methods are described in the {assertj-db-javadoc}/org/assertj/db/navigation/ToChange.html[ToChange] interface. The `change()` method allows to navigate to the next change after the change reached on the last call. @@ -593,7 +593,7 @@ assertThat(changes).change().change()... [[changestorow]] === To a Row -These methods are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/navigation/ToRowFromChange.html[ToRowFromChange] interface. +These methods are described in the {assertj-db-javadoc}/org/assertj/db/navigation/ToRowFromChange.html[ToRowFromChange] interface. The `rowAtStartPoint()` and `rowAtEndPoint()` methods allows to navigate to the row at the start point and at the end point. @@ -655,8 +655,8 @@ assertThat(changes).change().rowAtStartPoint().rowAtEndPoint()... [[changestocolumn]] === To a Column -These methods are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/navigation/ToColumn.html[ToColumn] -and https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/navigation/ToColumnFromChange.html[ToColumnFromChange] interfaces. +These methods are described in the {assertj-db-javadoc}/org/assertj/db/navigation/ToColumn.html[ToColumn] +and {assertj-db-javadoc}/org/assertj/db/navigation/ToColumnFromChange.html[ToColumnFromChange] interfaces. The `column()` method allows to navigate to the next column after the column reached on the last call. @@ -787,9 +787,9 @@ assertThat(changes).change().column().column()... [[changestovalue]] === To a Value -These methods are described in the https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/navigation/ToValue.html[ToValue], - https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/navigation/ToValueFromColumn.html[ToValueFromColumn] -and https://www.javadoc.io/doc/org.assertj/assertj-db/latest/org/assertj/db/api/navigation/ToValueFromRow.html[ToValueFromRow] interfaces. +These methods are described in the {assertj-db-javadoc}/org/assertj/db/navigation/ToValue.html[ToValue], + {assertj-db-javadoc}/org/assertj/db/navigation/ToValueFromColumn.html[ToValueFromColumn] +and {assertj-db-javadoc}/org/assertj/db/navigation/ToValueFromRow.html[ToValueFromRow] interfaces. This picture shows from where it is possible to navigate to a value. diff --git a/src/docs/antora/modules/ROOT/pages/index.adoc b/src/docs/antora/modules/ROOT/pages/index.adoc index 0030ffd0..3b31a762 100644 --- a/src/docs/antora/modules/ROOT/pages/index.adoc +++ b/src/docs/antora/modules/ROOT/pages/index.adoc @@ -15,7 +15,7 @@ _Régis Pouiller (AssertJ-DB creator)_ == Javadoc -Latest Javadoc release: https://www.javadoc.io/doc/org.assertj/assertj-db/latest/index.html[AssertJ DB Javadoc]. +Javadoc: {assertj-db-javadoc}/index.html[AssertJ DB Javadoc]. == Examples From 25ff99bd1ba57d87fe674cba57f9be250907e9af Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Wed, 25 Nov 2026 11:47:21 +0100 Subject: [PATCH 2/5] Make warnings and errors fail the build --- src/docs/antora/antora-playbook.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/docs/antora/antora-playbook.yml b/src/docs/antora/antora-playbook.yml index 496926de..879e4ca8 100644 --- a/src/docs/antora/antora-playbook.yml +++ b/src/docs/antora/antora-playbook.yml @@ -10,6 +10,9 @@ content: - url: ./../../.. # the local repository, relative to this playbook branches: HEAD # use the worktree so that uncommitted changes are included start_path: src/docs/antora +runtime: + log: + failure_level: warn ui: bundle: url: https://github.com/assertj/antora-ui/releases/latest/download/ui-bundle.zip From b4ebec43d39a819d3a6635a0af717224e5fe1756 Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Wed, 25 Nov 2026 11:47:53 +0100 Subject: [PATCH 3/5] Stop linking to removed "current" Javadoc URL of AssertJ Core The docs site no longer publishes /assertj-core/current. The docs now reference the Javadoc of the latest AssertJ Core version via xref. The standalone Antora build has no assertj-core component to resolve the xref against, so it gets a versioned URL as an attribute instead. --- pom.xml | 2 ++ src/docs/antora-resources/antora.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7f3bf0e8..09519f38 100644 --- a/pom.xml +++ b/pom.xml @@ -219,6 +219,8 @@ src/docs/antora/antora-playbook.yml + + diff --git a/src/docs/antora-resources/antora.yml b/src/docs/antora-resources/antora.yml index 73bd6c10..0b6ade79 100644 --- a/src/docs/antora-resources/antora.yml +++ b/src/docs/antora-resources/antora.yml @@ -8,5 +8,5 @@ asciidoc: source-indent: '0' assertj-db-version: '${project.version}' assertj-db-javadoc: 'xref:attachment$api' - assertj-core-javadoc: 'https://docs.assertj.dev/assertj-core/current/api' + assertj-core-javadoc: 'xref:assertj-core::attachment$api' assertj-examples-github: 'https://github.com/assertj/assertj-examples' From d18e5f60d77b80efcf4ea979f122fdc9cfb08f29 Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Sat, 28 Nov 2026 11:47:22 +0100 Subject: [PATCH 4/5] Drop redundant `reportOutputDirectory` --- pom.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/pom.xml b/pom.xml index 09519f38..eb5c04c1 100644 --- a/pom.xml +++ b/pom.xml @@ -174,8 +174,6 @@ maven-javadoc-plugin ${rootDirectory}/src/main/javadoc/ - - ${project.build.directory}/reports From 5bd6b054bece805ebe95eb26b06b2d19cb619d1b Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Sat, 28 Nov 2026 11:47:53 +0100 Subject: [PATCH 5/5] Remove redundant version --- pom.xml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index eb5c04c1..c2b29b48 100644 --- a/pom.xml +++ b/pom.xml @@ -29,6 +29,7 @@ + 3.27.7 https://sonarcloud.io assertj-org @@ -39,7 +40,7 @@ org.assertj assertj-core - 3.27.7 + ${assertj-core.version} junit @@ -205,6 +206,26 @@ antora-component-version-maven-plugin 0.0.4 + + + org.codehaus.mojo + build-helper-maven-plugin + 3.6.1 + + + + parse-assertj-core-version + pre-antora + + parse-version + + + ${assertj-core.version} + assertj-core.parsedVersion + + + + org.antora antora-maven-plugin @@ -218,7 +239,7 @@ - +