Skip to main content
To use the Antithesis Java SDK:
  1. Include the Antithesis SDK jar file as a dependency within your build system.
  2. Import the SDK classes into your Java program. E.g. import static com.antithesis.sdk.Assert.*;
  3. 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.
  4. Build your Java project. You’ll need to adjust your build to run with the Java SDK. Follow the build steps here.
  5. Deploy your build: either to Antithesis or into production.