Skip navigation links

Package org.assertj.db.api.origin

This package contains interfaces that defines the different Origins used by the navigation.

See: Description

Package org.assertj.db.api.origin Description

This package contains interfaces that defines the different Origins used by the navigation.

These Origins are the key to help the navigation.
The Origin is used by the AbstractAssertWithOrigin.returnToOrigin() method to return to the previous instance that provides assertion methods : for example to return to a object with assertion methods on a table (TableAssert) from a object with assertion methods on a column (TableColumnAssert).
As shown in the javadoc of the navigation package, it is possible to navigate to a "smaller" thing (from a column to a value) but also to a "bigger or equivalent" thing (from a column to another column or to a row). The second possibility is possible thank to the Origin because the classes with Origin use the navigation methods of their Origins.

This diagram shows the part on the tables and requests (the origin interfaces are in blue) :

diagram with navigation on table and request

This diagram shows the part on the changes (the origin interfaces are in blue) :

diagram with navigation on changes

Author:
RĂ©gis Pouiller
Skip navigation links

Copyright © 2015 AssertJ. All Rights Reserved.