Skip to content

Commit

Permalink
Remove test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinperera00 committed Nov 6, 2024
1 parent 85875fb commit 7a8f333
Show file tree
Hide file tree
Showing 2 changed files with 12 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
5 changes: 5 additions & 0 deletions spotbugs-exclude.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,9 @@
<Class name="io.ballerina.stdlib.websub.SubscriberCallback"/>
<Bug pattern="EI_EXPOSE_REP2"/>
</Match>
<Match>
<Class name="io.ballerina.stdlib.websub.codeaction.AbstractCodeActionTest"/>
<Method name="performTest"/>
<Bug pattern="UPM_UNCALLED_PRIVATE_METHOD"/>
</Match>
</FindBugsFilter>

0 comments on commit 7a8f333

Please sign in to comment.