Skip to content

Commit

Permalink
Update code action tests
Browse files Browse the repository at this point in the history
  • Loading branch information
poorna2152 committed Jan 2, 2025
1 parent 88e15c4 commit ce5b6f3
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

public class FunctionAnalysisTask implements AnalysisTask<SyntaxNodeAnalysisContext> {

private final String ANNOTATION_NAME = "ConnectorInfo";
private final String ANNOTATION_NAME = "Operation";

@Override
public void perform(SyntaxNodeAnalysisContext context) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class MIAnnotationCodeAction implements CodeAction {

private final String NAME = "Add MI annotation";
private final String NODE_LOCATION_KEY = "node.location";
private final String ANNOTATION_STRING = "@mi:ConnectorInfo\n";
private final String ANNOTATION_STRING = "@mi:Operation\n";

@Override
public String name() {
Expand Down
2 changes: 1 addition & 1 deletion tests/src/test/java/org/ballerina/test/AnnotationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class AnnotationTest {

private final Gson GSON = new Gson();
private final Path RESOURCE_PATH = Paths.get("src", "test", "resources", "ballerina", "annotation_code_action");
private final String PROVIDER_NAME = "MI_HINT_001/ballerinax/mi/Add MI annotation";
private final String PROVIDER_NAME = "MI_HINT_001/wso2/mi/Add MI annotation";
private Project project;
private Path filePath;
private Project projectNeg;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// specific language governing permissions and limitations
// under the License.

import ballerinax/mi;
import wso2/mi;

public function f1(xml b, boolean c, json w) {

Expand All @@ -28,7 +28,7 @@ public function f8(int a) returns xml {
return xml ``;
}

@mi:ConnectorInfo
@mi:Operation
public function f12(int a) returns xml {
return xml ``;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
// specific language governing permissions and limitations
// under the License.

import ballerinax/mi;
import wso2/mi;

public type Rec record {|
string a;
int b;
|};

@mi:ConnectorInfo
@mi:Operation
public function f3(int a) {

}
Expand Down

0 comments on commit ce5b6f3

Please sign in to comment.