Ondrej Zizka created AS7-6094:
---------------------------------
Summary: Arquillian - create JUnit's @Category appender
Key: AS7-6094
URL:
https://issues.jboss.org/browse/AS7-6094
Project: Application Server 7
Issue Type: Enhancement
Components: Test Suite
Reporter: Ondrej Zizka
Assignee: Ondrej Zizka
For tests which use the JUnit's @Category, this class needs to be added to the
deployment.
It would be convenient to have this added automatically.
Aslak's note:
{quote}
You can do this today if you want to, same as the weld core tests do.
Create a little AuxiliaryArchiveAppender that packages the categories. As long as that is
registered in a LoadableExtension and register as SPI and on Classpath when you run, the
produced Archive will be bundled with the deployment.
AuxiliaryArchiveAppender example:
https://github.com/weld/core/blob/master/tests-arquillian/src/test/java/o...
LoadableExtension example: (only the service AuxiliaryArchiveAppender is needed in this
case)
https://github.com/weld/core/blob/master/tests-arquillian/src/test/java/o...
SPI registration:
https://github.com/weld/core/blob/master/tests-arquillian/src/test/resour...
{quote}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira