Java: Generalize the inline mad test to allow further re-use.

This commit is contained in:
Michael Nebel
2024-05-06 13:34:03 +02:00
parent 51e7f3be1a
commit 95ddd6ec74
5 changed files with 47 additions and 31 deletions

View File

@@ -1,2 +1,2 @@
unexpectedSummary
expectedSummary
unexpectedModel
expectedModel

View File

@@ -3,9 +3,9 @@ import utils.modelgenerator.internal.CaptureSummaryFlowQuery
import TestUtilities.InlineMadTest
module InlineMadTestConfig implements InlineMadTestConfigSig {
string getComment() { result = any(Javadoc doc).getChild(0).toString() }
string getCapturedModel() { result = captureFlow(_) }
string getCapturedSummary() { result = captureFlow(_) }
string getKind() { result = "summary" }
}
import InlineMadTest<InlineMadTestConfig>