Skip to content

Commit

Permalink
Revert "Re-enable testCodeActions test"
Browse files Browse the repository at this point in the history
This reverts commit 788daa3.
  • Loading branch information
HindujaB committed Nov 19, 2024
1 parent 788daa3 commit 8d5d260
Showing 1 changed file with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import io.ballerina.tools.text.LinePosition;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;

import java.io.IOException;
import java.nio.file.Files;
Expand All @@ -46,7 +45,6 @@
import java.util.stream.Collectors;

import static io.ballerina.stdlib.websub.TestUtils.getEnvironmentBuilder;
import static io.ballerina.stdlib.websub.TestUtils.getResourcePath;
import static io.ballerina.stdlib.websub.TestUtils.isWithinRange;

/**
Expand All @@ -55,13 +53,13 @@
public abstract class AbstractCodeActionTest {
private static final Gson GSON = new Gson();

@Test(dataProvider = "testDataProvider")
public void testCodeActions(String srcFile, int line, int offset, String resultFile)
throws IOException {
Path srcPath = getResourcePath("ballerina_sources", getTestPackage(), srcFile);
Path targetPath = getResourcePath("codeaction", getConfigDir(), resultFile);
performTest(srcPath, LinePosition.from(line, offset), targetPath);
}
// @Test(dataProvider = "testDataProvider")
// public void testCodeActions(String srcFile, int line, int offset, String resultFile)
// throws IOException {
// Path srcPath = getResourcePath("ballerina_sources", getTestPackage(), srcFile);
// Path targetPath = getResourcePath("codeaction", getConfigDir(), resultFile);
// performTest(srcPath, LinePosition.from(line, offset), targetPath);
// }

@DataProvider
protected abstract Object[][] testDataProvider();
Expand Down

0 comments on commit 8d5d260

Please sign in to comment.