Skip to content

Commit

Permalink
Merge pull request #46 from PalladioSimulator/remove_test_components
Browse files Browse the repository at this point in the history
Do not detect *Test components
  • Loading branch information
dr6817 authored Dec 19, 2023
2 parents 6cc6219 + ab61ac2 commit 57e958e
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 57e958e

Please sign in to comment.