From f1613b65a67a2f1cc35e4d8a40415d6187f844e7 Mon Sep 17 00:00:00 2001 From: Gayal Dassanayake Date: Wed, 14 Aug 2024 11:40:07 +0530 Subject: [PATCH] Copy test resources to the temp dir --- .../src/test/java/org/ballerina/projectapi/BalToolTest.java | 4 ---- .../test/java/org/ballerina/projectapi/BalToolTestUtils.java | 1 - 2 files changed, 5 deletions(-) diff --git a/project-api-tests/src/test/java/org/ballerina/projectapi/BalToolTest.java b/project-api-tests/src/test/java/org/ballerina/projectapi/BalToolTest.java index 2b855199cb..f461879e16 100644 --- a/project-api-tests/src/test/java/org/ballerina/projectapi/BalToolTest.java +++ b/project-api-tests/src/test/java/org/ballerina/projectapi/BalToolTest.java @@ -29,16 +29,12 @@ import org.testng.annotations.Test; import java.io.IOException; -import java.net.URI; -import java.net.URISyntaxException; import java.nio.file.Files; import java.nio.file.Path; -import java.nio.file.Paths; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Map; -import java.util.Objects; import java.util.Optional; import static org.apache.maven.artifact.Artifact.LATEST_VERSION; diff --git a/project-api-tests/src/test/java/org/ballerina/projectapi/BalToolTestUtils.java b/project-api-tests/src/test/java/org/ballerina/projectapi/BalToolTestUtils.java index ec861137e4..880541e4dd 100644 --- a/project-api-tests/src/test/java/org/ballerina/projectapi/BalToolTestUtils.java +++ b/project-api-tests/src/test/java/org/ballerina/projectapi/BalToolTestUtils.java @@ -196,7 +196,6 @@ private static Optional getBalaPath(String packageName, Path packagePath, return Optional.empty(); } - // TODO: understand the chatgpt generated code private static void updateBallerinaVersionOfBala(Path balaFilePath) throws IOException { Path tempDir = Files.createTempDirectory(balaFilePath.getFileName().toString()); try {