-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-1463: added test case for string concatenation with request mappin…
…gs from parent classes
- Loading branch information
1 parent
83c1d74
commit 27f4456
Showing
3 changed files
with
27 additions
and
0 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
12 changes: 12 additions & 0 deletions
12
.../main/java/org/test/inheritance/SubclassWithMappingFromParentWithStringConcatenation.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.test.inheritance; | ||
|
||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
public class SubclassWithMappingFromParentWithStringConcatenation extends SuperclassWithMappingPathWithStringConcatenation { | ||
|
||
@RequestMapping("/sub" + "class") | ||
public String hello() { | ||
return "Hello"; | ||
} | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
.../src/main/java/org/test/inheritance/SuperclassWithMappingPathWithStringConcatenation.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.test.inheritance; | ||
|
||
import org.springframework.web.bind.annotation.RequestMapping; | ||
|
||
@RequestMapping("/super" + "path") | ||
public class SuperclassWithMappingPathWithStringConcatenation { | ||
} |