16 years ago
Custom Assertion not found on Startup
Hi,
I implemented a custom assertion along with a factory for it. They reside in a jar which I put in the bin/ext folder, as stated in the documentation.
The factory registers itself with the TestAssertionRegistry in its static constructor. However, when starting SoapUI with open projects which contain this assertion, the log shows for each such project
Fri Jan 08 11:38:16 CET 2010:ERROR:Missing assertion for type [SOAPEquivalenceAssertion]
If I reload a project, the assertion loads fine. But if I forget that and save the project, the assertion is gone for good.
The problem seems to be that SoapUI tries to load the assertion before its static constructor has been called (probably due to some Classloader setup). I tried to put the jar in the lib directory instead but that also did not help.
Did I miss something or is this a bug?
Best,
Bastian
I implemented a custom assertion along with a factory for it. They reside in a jar which I put in the bin/ext folder, as stated in the documentation.
The factory registers itself with the TestAssertionRegistry in its static constructor. However, when starting SoapUI with open projects which contain this assertion, the log shows for each such project
Fri Jan 08 11:38:16 CET 2010:ERROR:Missing assertion for type [SOAPEquivalenceAssertion]
If I reload a project, the assertion loads fine. But if I forget that and save the project, the assertion is gone for good.
The problem seems to be that SoapUI tries to load the assertion before its static constructor has been called (probably due to some Classloader setup). I tried to put the jar in the lib directory instead but that also did not help.
Did I miss something or is this a bug?
Best,
Bastian