From 6ae5bd2c4673d8bc7606b5db1227faf44bc8b25f Mon Sep 17 00:00:00 2001 From: Gayal Dassanayake Date: Thu, 21 Sep 2023 09:57:54 +0530 Subject: [PATCH] Cleanup code --- .../java/org/ballerina/projectapi/BalToolTest.java | 11 ----------- 1 file changed, 11 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 54657abe2a..27c3a12ffa 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 @@ -28,7 +28,6 @@ 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; @@ -78,15 +77,6 @@ public void setUp() throws IOException, InterruptedException { centralCachePath = tempHomeDirectory.resolve(Path.of(REPOSITORIES_DIR, CENTRAL_REPOSITORY_CACHE_NAME, BALA_DIR_NAME)); - // Copy test resources to temp workspace directory - try { - URI testResourcesURI = Objects.requireNonNull(getClass().getClassLoader().getResource("central")).toURI(); - Path testResourcePath = Path.of(testResourcesURI); - Files.walkFileTree(testResourcePath, new CentralTest.Copy(testResourcePath, this.tempWorkspaceDirectory)); - } catch (URISyntaxException e) { - Assert.fail("error loading resources"); - } - if (!isToolAvailableInCentral(toolId, tempWorkspaceDirectory, envVariables)) { Assert.fail("Tool " + toolId + " is not available in central"); } @@ -448,7 +438,6 @@ public void testRemoveAllToolVersions() throws IOException, InterruptedException } } - // TODO: Enable after new release of dist tool @BeforeGroups(value = "update") public void setupUpdateTests() throws IOException, InterruptedException { // remove all versions of the tool