From c51e6740f1f34b066cdd7a3028255a5f1cead1d1 Mon Sep 17 00:00:00 2001 From: Andrea Peruffo Date: Fri, 18 Oct 2024 10:43:01 +0100 Subject: [PATCH] Initial fixes to restore Java IT --- it/get-additional-arguments.ps1 | 2 +- it/java/basic/pom.xml | 2 +- it/java/gh/pom.xml | 2 +- it/java/gh/src/test/java/GHAPITest.java | 8 ++------ 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/it/get-additional-arguments.ps1 b/it/get-additional-arguments.ps1 index 6f68879e2..aa1e6db28 100755 --- a/it/get-additional-arguments.ps1 +++ b/it/get-additional-arguments.ps1 @@ -21,7 +21,7 @@ if ($language -eq "csharp") { $command = " --output `"./it/$language/client`" --namespace-name `"app.client`"" } elseif ($language -eq "java") { - $command = " --output `"./it/$language/src`"" + $command = " --output `"./it/$language/src/apisdk`"" } elseif ($language -eq "go") { $command = " --output `"./it/$language/client`" --namespace-name `"integrationtest/client`"" diff --git a/it/java/basic/pom.xml b/it/java/basic/pom.xml index 6f1bad14e..ae528722a 100644 --- a/it/java/basic/pom.xml +++ b/it/java/basic/pom.xml @@ -15,7 +15,7 @@ UTF-8 UTF-8 - 1.1.1 + 1.7.0 diff --git a/it/java/gh/pom.xml b/it/java/gh/pom.xml index 4dae43e90..5087ebf3f 100644 --- a/it/java/gh/pom.xml +++ b/it/java/gh/pom.xml @@ -15,7 +15,7 @@ UTF-8 UTF-8 - 1.1.1 + 1.7.0 diff --git a/it/java/gh/src/test/java/GHAPITest.java b/it/java/gh/src/test/java/GHAPITest.java index cc9f50ec4..c148c5a8a 100644 --- a/it/java/gh/src/test/java/GHAPITest.java +++ b/it/java/gh/src/test/java/GHAPITest.java @@ -1,14 +1,10 @@ import apisdk.ApiClient; -import com.microsoft.kiota.ApiException; +import apisdk.repos.item.item.generate.GeneratePostRequestBody; import com.microsoft.kiota.authentication.AnonymousAuthenticationProvider; import com.microsoft.kiota.http.OkHttpRequestAdapter; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -import java.util.concurrent.TimeUnit; - -public class BasicAPITest { +public class GHAPITest { @Test void basicTest() throws Exception {