[jboss-cvs] JBossAS SVN: r103924 - projects/embedded/examples/trunk/src/test/java.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Apr 13 12:49:40 EDT 2010
Author: ALRubinger
Date: 2010-04-13 12:49:39 -0400 (Tue, 13 Apr 2010)
New Revision: 103924
Modified:
projects/embedded/examples/trunk/src/test/java/EchoBeanIntegrationTest.java
Log:
[EMB-89] Extract logic to create the deployment
Modified: projects/embedded/examples/trunk/src/test/java/EchoBeanIntegrationTest.java
===================================================================
--- projects/embedded/examples/trunk/src/test/java/EchoBeanIntegrationTest.java 2010-04-13 16:45:57 UTC (rev 103923)
+++ projects/embedded/examples/trunk/src/test/java/EchoBeanIntegrationTest.java 2010-04-13 16:49:39 UTC (rev 103924)
@@ -66,12 +66,22 @@
*/
private static Context jndiContext;
+ /**
+ * Creates the deployment; much like Arquillian will eventually use
+ * @return
+ */
+ private static JavaArchive createDeployment()
+ {
+ return Archives.create("slsb.jar", JavaArchive.class).addClasses(EchoBean.class, EchoLocalBusiness.class);
+ }
+
//-------------------------------------------------------------------------------------||
// Instance Members -------------------------------------------------------------------||
//-------------------------------------------------------------------------------------||
private JavaArchive deployment;
+
//-------------------------------------------------------------------------------------||
// Lifecycle --------------------------------------------------------------------------||
//-------------------------------------------------------------------------------------||
@@ -98,7 +108,7 @@
@Before
public void deploy() throws Exception
{
- deployment = Archives.create("slsb.jar", JavaArchive.class).addClasses(EchoBean.class, EchoLocalBusiness.class);
+ deployment = createDeployment();
log.info(deployment.toString(true));
server.deploy(deployment);
}
More information about the jboss-cvs-commits
mailing list