Skip to Content
Sep 12, 2019 at 07:32 AM

Allowed Complexity and Scope within TEST-SEAMs and Test-INJECTIONs



Is my assumption right that test injections do not allow any more complex coding inside them?


1. Variables in a test-injection are kind of global. (You can't have a second injection in another test method declaring the same variable)
Question: What is the exact scope of a variable declaration here? (Include or class? Initialisation at class-constructor or constuctor?)

2. There is no possibility to call a method within the test-injection.

Question: Will this be fixed or at least be enabled for static methods? In my case I need some internal table to be Looped to create some mock-objects for the real test.

Thanks and Best Regards

Andreas Kaiser