You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my attempt to update Arquillian deps in Weld(weld/core#2846), I noticed that EmptyBeansXmlDiscoveryTest started failing.
A recent fix in Arquillian (arquillian/arquillian-core#440) correctly exposes erroneous setup of this test which was previously falsely passing and would pass regardless of what would be in the test.
Underlying cause is a NoClassDefFound error and further digging showed that the test deployment lacks the AbstractTest superclass (and possibly other classes).
Said test uses a manual setup via ShrinkWrap.create(WebArchive.class).addClasses(...) (beucase it needed a truly empty beans.xml added) whereas other TCK tests use WebArchiveBuilder() API. Turns out WebArchiveBuilder does a bunch of things for the test automagically, including adding AbstractTest class into the deployment.
The test can be easily rewritten to make use of the WebArchiveBuilder which solves the issue and should make it (correctly) pass on al Arq. versions. I have the changes locally and will submit a PR.
Since this problem is a combination of testng and Arq. core version, not all impls and test setups are affected - especially since you can do a lot of tweaks in Arq. adapters that each impl is using. Nonetheless, the test setup is still wrong. I wonder if perhaps Liberty is also seeing this if they update Arq. core to 1.7.0.Final, maybe @Azquelt knows?
The text was updated successfully, but these errors were encountered:
In my attempt to update Arquillian deps in Weld(weld/core#2846), I noticed that
EmptyBeansXmlDiscoveryTest
started failing.A recent fix in Arquillian (arquillian/arquillian-core#440) correctly exposes erroneous setup of this test which was previously falsely passing and would pass regardless of what would be in the test.
Underlying cause is a
NoClassDefFound
error and further digging showed that the test deployment lacks theAbstractTest
superclass (and possibly other classes).Said test uses a manual setup via
ShrinkWrap.create(WebArchive.class).addClasses(...)
(beucase it needed a truly empty beans.xml added) whereas other TCK tests useWebArchiveBuilder()
API. Turns outWebArchiveBuilder
does a bunch of things for the test automagically, including addingAbstractTest
class into the deployment.The test can be easily rewritten to make use of the
WebArchiveBuilder
which solves the issue and should make it (correctly) pass on al Arq. versions. I have the changes locally and will submit a PR.Since this problem is a combination of testng and Arq. core version, not all impls and test setups are affected - especially since you can do a lot of tweaks in Arq. adapters that each impl is using. Nonetheless, the test setup is still wrong. I wonder if perhaps Liberty is also seeing this if they update Arq. core to
1.7.0.Final
, maybe @Azquelt knows?The text was updated successfully, but these errors were encountered: