A few issues.
tzman Aug 13, 2007 9:27 AMMy apologies if these issues have already been fixed/mentioned.
1.) org.jboss.seam.mock.BaseSeamTest
protected void startJbossEmbeddedIfNecessary() throws DeploymentException, IOException { if ( !started ) { Bootstrap bootstrap = Bootstrap.getInstance(); bootstrap.bootstrap(); started = true; if ( resourceExists("seam.properties") ) { bootstrap.deployResourceBase("seam.properties"); } if ( resourceExists("META-INF/components.xml") ) { bootstrap.deployResourceBase("META-INF/components.xml"); } if ( resourceExists("META-INF/seam.properties") ) { bootstrap.deployResourceBase("META-INF/seam.properties"); } } }
The call to deployResourceBase will only locate the first resource?
or should this be:
@Override protected void startJbossEmbeddedIfNecessary( ) throws DeploymentException, IOException { Bootstrap bootstrap; if ( !started ) { bootstrap = Bootstrap.getInstance(); bootstrap.bootstrap(); started = true; if ( resourceExists( "seam.properties" ) ) { bootstrap.deployResourceBases( "seam.properties" ); } if ( resourceExists( "META-INF/components.xml" ) ) { bootstrap.deployResourceBases("META-INF/components.xml" ); } if ( resourceExists( "META-INF/seam.properties" ) ) { bootstrap.deployResourceBases("META-INF/seam.properties" ); } } }
2.) org.jboss.seam.framework.Identifier
The equals method checks for an instance of the derived type org.jboss.seam.framework.EntityIdentifier
3.) It doesn't appear as though we can use injection in base classes. Am I mistaken? Is this a design decision?
We have gotten around this by retrieving the components programatically, i.e. Component.getInstance( "entityManager" );
This means that for testing I have to load the container, when I only need hibernate; or I have to do a check in by base class before retrieving the component to ensure the application context is active.
Thanks for all the work.