Skip to content

Commit

Permalink
Do not detect *Test components
Browse files Browse the repository at this point in the history
  • Loading branch information
FloBoJa committed Dec 19, 2023
1 parent 6cc6219 commit ab61ac2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class JaxRSRules implements Rule {
val isUnitController = isUnitAnnotatedWithName(unit, "Path")
val isWebServlet = isUnitAnnotatedWithName(unit, "WebServlet") || isImplementingOrExtending(unit, "HttpServlet")

if(identifier.toString.endsWith("Test")) return;

// technology based and general recognition
if (isConverter) {
detectDefault(blackboard, unit)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ class SpringRules implements Rule {

val identifier = new CompUnitOrName(unit)

if(identifier.toString.endsWith("Test")) return;

pcmDetector.detectComponent(identifier)

if (isComponent) {
Expand Down

0 comments on commit ab61ac2

Please sign in to comment.