Skip to content

Commit a54aabd

Browse files
committed
fix(tests): update Kotlin test cases with proper syntax and semicolon usage
1 parent df56c29 commit a54aabd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

java/src/test/kotlin/cc/unitmesh/idea/context/JavaClassContextBuilderTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class JavaClassContextBuilderTest: LightPlatformTestCase() {
3737
"'@RestController, @RequestMapping(\"/user\")\n" +
3838
"class UserController {\n" +
3939
" \n" +
40-
" + @GetMapping public UserDTO getUsers()\n" +
40+
" + @GetMapping public UserDTO getUsers();\n" +
4141
"}" )
4242
}
4343
}

java/src/test/kotlin/cc/unitmesh/idea/context/JavaClassContextTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ public class BlogService {
101101
'@Controller
102102
class BlogController {
103103
BlogService blogService;
104-
+ public BlogController(BlogService blogService)
105-
+ @PostMapping("/blog") public BlogPost createBlog(CreateBlogDto blogDto)
106-
+ @GetMapping("/blog") public List<BlogPost> getBlog()
104+
+ public BlogController(BlogService blogService);
105+
+ @PostMapping("/blog") public BlogPost createBlog(CreateBlogDto blogDto);
106+
+ @GetMapping("/blog") public List<BlogPost> getBlog();
107107
}"""
108108
)
109109
}

0 commit comments

Comments
 (0)