Skip to content

Commit

Permalink
test: add integration tests for java
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrazhnyk committed Mar 5, 2025
1 parent 48272cc commit 35a5cde
Show file tree
Hide file tree
Showing 10 changed files with 258 additions and 251 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@

/**
* This class provides utility functions in order to generate projectScopeToken required to call Affinidi Services.
*
*
* @author Priyanka
*
*/
public class AuthProvider {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@
/**
* This class provides utility functions required by {@link AuthProvider} related for processing(creating, signing,
* validation) of JWT.
*
* @author Priyanka
*/
public class JwtUtil {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

/**
* This class represents the output returned when {@link AuthProvider#signIotaJwt()} is invoked
*
* @author Priyanka
*
*/
public class IotaJwtOutput {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
* This class provides utility functions required to access environment specific configurations. The environment can be
* specified in the .env file at the project base using AFFINIDI_TDK_PROPERTY_NAME or
* NEXT_PUBLIC_AFFINIDI_TDK_ENVIRONMENT as dev, local or prod.
*
* @author Priyanka
*/
public class EnvironmentUtil {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
/**
* This class provides utility functions required to create vault specific links. Refer {@EnvironmentUtil} for more
* information.
*
*
* @author Priyanka
*/
public final class VaultUtil {

Expand Down
116 changes: 116 additions & 0 deletions tests/integration/java/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.example</groupId>
<artifactId>integration-tests</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>com.affinidi.tdk</groupId>
<artifactId>common</artifactId>
<version>1.2.1</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>com.affinidi.tdk</groupId>
<artifactId>auth.provider</artifactId>
<version>1.2.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.affinidi.tdk</groupId>
<artifactId>wallets.client</artifactId>
<version>1.2.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.affinidi.tdk</groupId>
<artifactId>credential.issuance.client</artifactId>
<version>1.4.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.affinidi.tdk</groupId>
<artifactId>credential.verification.client</artifactId>
<version>1.2.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.affinidi.tdk</groupId>
<artifactId>iam.client</artifactId>
<version>1.2.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.affinidi.tdk</groupId>
<artifactId>iota.client</artifactId>
<version>1.3.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.affinidi.tdk</groupId>
<artifactId>login.configuration.client</artifactId>
<version>1.2.1</version>
<scope>compile</scope>
</dependency>

<!-- JUnit 5 -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.10.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.10.0</version>
<scope>test</scope>
</dependency>

<!-- dotenv (if you need to load .env files) -->
<dependency>
<groupId>io.github.cdimascio</groupId>
<artifactId>dotenv-java</artifactId>
<version>3.0.0</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<!-- Failsafe for Integration Tests -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.2.5</version>
<executions>
<execution>
<id>integration-test</id>
<phase>verify</phase>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<configuration>
<includes>
<include>**/*IT.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
7 changes: 0 additions & 7 deletions tests/integration/java/reference/.env.example

This file was deleted.

114 changes: 0 additions & 114 deletions tests/integration/java/reference/pom.xml

This file was deleted.

Loading

0 comments on commit 35a5cde

Please sign in to comment.