There exist some expensive operation that are supposed to be invoked only at boot time of a session factory. That is when the session factory is being created. Those rules should not be used at runtime of a session factory. That is when the session factory has been created. We could consider an expensive operation the parsing of a regular expression. But that should be analyzed during this issue. The issue consists in defining some Byteman rules to check if those APIs are used at runtime. In that case, we need to throw an Exception. These rules will be *activated only during the execution of the tests*. So that if one of these APIs is used at runtime, tests will fail and the project will continue to work. |