Skip to content

Commit

Permalink
Cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
gayaldassanayake committed Oct 30, 2023
1 parent ea2841c commit 6ae5bd2
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6ae5bd2

Please sign in to comment.