Back to Testcontainers Java

OpenFGA

docs/modules/openfga.md

2.0.5867 B
Original Source

OpenFGA

Testcontainers module for OpenFGA.

OpenFGAContainer's usage examples

You can start an OpenFGA container instance from any Java application by using:

<!--codeinclude-->

OpenFGA container inside_block:container

<!--/codeinclude-->

Adding this module to your project dependencies

Add the following dependency to your pom.xml/build.gradle file:

=== "Gradle" groovy testImplementation "org.testcontainers:testcontainers-openfga:{{latest_version}}"

=== "Maven" xml <dependency> <groupId>org.testcontainers</groupId> <artifactId>testcontainers-openfga</artifactId> <version>{{latest_version}}</version> <scope>test</scope> </dependency>