import-conrtol-test.xml should govern which imports aren't (and are) allowed in test files. However, for many tests, this rule is suppressed, so the configuration is not adhered to, leading to classes that aren't supposed to be used in tests (e.g., old JUnit 3/4 methods, reflection) being used.
See e.g., the discussion from #17876 (comment).
import-conrtol-test.xmlshould govern which imports aren't (and are) allowed in test files. However, for many tests, this rule is suppressed, so the configuration is not adhered to, leading to classes that aren't supposed to be used in tests (e.g., old JUnit 3/4 methods, reflection) being used.See e.g., the discussion from #17876 (comment).