[jboss-cvs] JBossAS SVN: r95404 - projects/jboss-deployers/trunk/deployers-impl/src/test/java/org/jboss/test/deployers/annotations/test.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Oct 22 09:46:43 EDT 2009
Author: alesj
Date: 2009-10-22 09:46:43 -0400 (Thu, 22 Oct 2009)
New Revision: 95404
Modified:
projects/jboss-deployers/trunk/deployers-impl/src/test/java/org/jboss/test/deployers/annotations/test/AnnotationEnvKeepTestCase.java
projects/jboss-deployers/trunk/deployers-impl/src/test/java/org/jboss/test/deployers/annotations/test/AnnotationsTest.java
Log:
Extract configuration.
Modified: projects/jboss-deployers/trunk/deployers-impl/src/test/java/org/jboss/test/deployers/annotations/test/AnnotationEnvKeepTestCase.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-impl/src/test/java/org/jboss/test/deployers/annotations/test/AnnotationEnvKeepTestCase.java 2009-10-22 13:39:47 UTC (rev 95403)
+++ projects/jboss-deployers/trunk/deployers-impl/src/test/java/org/jboss/test/deployers/annotations/test/AnnotationEnvKeepTestCase.java 2009-10-22 13:46:43 UTC (rev 95404)
@@ -22,8 +22,6 @@
package org.jboss.test.deployers.annotations.test;
import junit.framework.Test;
-import org.jboss.deployers.plugins.annotations.GenericAnnotationDeployer;
-import org.jboss.deployers.spi.deployer.Deployer;
import org.jboss.mcann.repository.DefaultConfiguration;
/**
@@ -44,12 +42,10 @@
return suite(AnnotationEnvKeepTestCase.class);
}
- protected Deployer createGenericAnnotationDeployer()
+ @Override
+ protected void applyConfiguration(DefaultConfiguration configuration)
{
- DefaultConfiguration configuration = new DefaultConfiguration();
+ super.applyConfiguration(configuration);
configuration.setKeepAnnotations(true);
- GenericAnnotationDeployer deployer = new GenericAnnotationDeployer();
- deployer.setConfiguration(configuration);
- return deployer;
}
}
\ No newline at end of file
Modified: projects/jboss-deployers/trunk/deployers-impl/src/test/java/org/jboss/test/deployers/annotations/test/AnnotationsTest.java
===================================================================
--- projects/jboss-deployers/trunk/deployers-impl/src/test/java/org/jboss/test/deployers/annotations/test/AnnotationsTest.java 2009-10-22 13:39:47 UTC (rev 95403)
+++ projects/jboss-deployers/trunk/deployers-impl/src/test/java/org/jboss/test/deployers/annotations/test/AnnotationsTest.java 2009-10-22 13:46:43 UTC (rev 95404)
@@ -198,9 +198,14 @@
{
GenericAnnotationDeployer deployer = new GenericAnnotationDeployer();
DefaultConfiguration configuration = new DefaultConfiguration();
- configuration.setTypeInfoProvider(new JavassistTypeInfoProvider());
- configuration.setForceAnnotations(true);
+ applyConfiguration(configuration);
deployer.setConfiguration(configuration);
return deployer;
}
+
+ protected void applyConfiguration(DefaultConfiguration configuration)
+ {
+ configuration.setTypeInfoProvider(new JavassistTypeInfoProvider());
+ configuration.setForceAnnotations(true);
+ }
}
More information about the jboss-cvs-commits
mailing list