- Include the Antithesis SDK jar file as a dependency within your build system.
-
Import the SDK classes into your Java program.
E.g.
import static com.antithesis.sdk.Assert.*; -
Call SDK methods from your code. For example, use an assertion such as:
always(some condition).Assertion cataloging is required to use the SDK assertions. - Build your Java project. You’ll need to adjust your build to run with the Java SDK. Follow the build steps here.
- Deploy your build: either to Antithesis or into production.