Bernard Labno created SHRINKWRAP-419:
----------------------------------------
Summary: UnsupportedOperationException: EnterpriseArchive does not support
classes
Key: SHRINKWRAP-419
URL:
https://issues.jboss.org/browse/SHRINKWRAP-419
Project: ShrinkWrap
Issue Type: Bug
Reporter: Bernard Labno
Fix For: 1.1.0-alpha-4
EnterpriseArchiveImpl extends EnterpriseContainerBase which extends ContainerBase which
implements ClassContainer.
However addClass from ClassContainer interface throws UnsupportedOperationException.
This is not nice. MockContexts extension for Arquillian does this:
{code:java}
if (appArchive instanceof ClassContainer) {
((ClassContainer) appArchive).addClass(MockViewScopedContext.class);
((ClassContainer) appArchive).addClass(MockConversationScopedContext.class);
}{code}
To avoid such problems, and for EAR it hits UnsupportedOperationException. Very not nice.
--
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