File tree Expand file tree Collapse file tree 2 files changed +53
-0
lines changed
main/java/org/sonarsource/sonarqube/mcp/tools/analysis
test/java/org/sonarsource/sonarqube/mcp/tools/analysis Expand file tree Collapse file tree 2 files changed +53
-0
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * SonarQube MCP Server
3
+ * Copyright (C) 2025 SonarSource
4
+ * mailto:info AT sonarsource DOT com
5
+ *
6
+ * This program is free software; you can redistribute it and/or
7
+ * modify it under the terms of the Sonar Source-Available License Version 1, as published by SonarSource SA.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
+ * See the Sonar Source-Available License for more details.
13
+ *
14
+ * You should have received a copy of the Sonar Source-Available License
15
+ * along with this program; if not, see https://sonarsource.com/license/ssal/
16
+ */
17
+ package org .sonarsource .sonarqube .mcp .tools .analysis ;
18
+
19
+ class ANewClass {
20
+ public String returnAString () {
21
+ // TODO: This should be detected by SQC
22
+ return "Hello, World!" ;
23
+ }
24
+ }
Original file line number Diff line number Diff line change
1
+ /*
2
+ * SonarQube MCP Server
3
+ * Copyright (C) 2025 SonarSource
4
+ * mailto:info AT sonarsource DOT com
5
+ *
6
+ * This program is free software; you can redistribute it and/or
7
+ * modify it under the terms of the Sonar Source-Available License Version 1, as published by SonarSource SA.
8
+ *
9
+ * This program is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
+ * See the Sonar Source-Available License for more details.
13
+ *
14
+ * You should have received a copy of the Sonar Source-Available License
15
+ * along with this program; if not, see https://sonarsource.com/license/ssal/
16
+ */
17
+ package org .sonarsource .sonarqube .mcp .tools .analysis ;
18
+
19
+ import org .junit .jupiter .api .Test ;
20
+
21
+ import static org .junit .jupiter .api .Assertions .assertEquals ;
22
+
23
+ public class ANewClassTests {
24
+ @ Test
25
+ public void testReturnAString () {
26
+ ANewClass aNewClass = new ANewClass ();
27
+ assertEquals ("Hello, World!" , aNewClass .returnAString ());
28
+ }
29
+ }
You can’t perform that action at this time.
0 commit comments