Navigation
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 NavigationExamples.java
With a Table or a Request as root
The assertThat(…) static method of org.assertj.db.api.Assertions allows to create a root assertion on a Table.
import static org.assertj.db.api.Assertions.assertThat;
assertThat(table)...
or on a Request.
import static org.assertj.db.api.Assertions.assertThat;
assertThat(request)...
From these root assertions, it is possible to navigate to the sub elements and return to the root element as in the picture below.
origin
instantiate+-----------+<-----------=+----------------------+
+--------->|On a Column| instantiate |On a Value Of a Column|
| +-----+-----+=----------->+----------------------+
: origin:
+----------------+------+<--------+
|On a Table Or a Request|
+----------------+------+<--------+
: origin: origin
| +-----+--+<-----------=+-------------------+
+--------->|On a Row| instantiate |On a Value Of a Row|
instantiate+--------+=----------->+-------------------+
More details on this concept in assertj-db-features-highlight.html#tableorrequestasroot[feature highlight].
With Changes as root
The assertThat(…) static method of org.assertj.db.api.Assertions
allows to create a root assertion on Changes.
import static org.assertj.db.api.Assertions.assertThat;
assertThat(changes)...
From this root assertion, it is possible to navigate to the sub elements and return to the root element as in the picture below.
origin
instantiate+-----------+<-----------=+----------------------+
+--------->|On a Column| instantiate |On a Value Of a Column|
| +-----+-----+=----------->+----------------------+
origin : origin:
+-----------+<=-----------+-----+-----+<---------+
|On Changes | instantiate |On a Change|
+-----------+=----------->+-----+-----+<---------+
: origin: origin
| +-----+--+<-----------=+-------------------+
+--------->|On a Row| instantiate |On a Value Of a Row|
instantiate+--------+=----------->+-------------------+
More details on this concept in feature highlight.