generated from JetBrains/intellij-platform-plugin-template
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(kotlin): add baseRoute method to KotlinTestDataBuilder
This commit adds a new method `baseRoute` to the `KotlinTestDataBuilder` class in order to extract the base route from a Kotlin function. The method uses the `KtNamedFunction` element to traverse the PSI tree and find the `RequestMapping` annotation. It then retrieves the value of the annotation and returns it as the base route. This method will be useful for generating test data for Kotlin controllers.
- Loading branch information
Showing
2 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters