2222import org .jboss .arquillian .junit .Arquillian ;
2323import org .jboss .shrinkwrap .api .ArchivePaths ;
2424import org .jboss .shrinkwrap .api .ShrinkWrap ;
25- import org .jboss .shrinkwrap .api .asset .StringAsset ;
2625import org .jboss .shrinkwrap .api .spec .WebArchive ;
2726import org .junit .Test ;
2827import org .junit .runner .RunWith ;
28+ import org .springframework .web .context .WebApplicationContext ;
2929
30- import com .ocpsoft .common .spi .ServiceEnricher ;
31- import com .ocpsoft .rewrite .config .ConfigurationProvider ;
32- import com .ocpsoft .rewrite .spi .ExpressionLanguageProvider ;
3330import com .ocpsoft .rewrite .test .HttpAction ;
3431import com .ocpsoft .rewrite .test .RewriteTestBase ;
3532
3633/**
34+ * <p>
35+ * This tests the basic features of the Spring integration module:
36+ * </p>
37+ *
38+ * <ul>
39+ * <li>SpringExpressionLanguageProvider: Binding parameters to Spring beans</li>
40+ * <li>SpringServiceEnricher: {@link SpringExpressionLanguageProvider} requires {@link WebApplicationContext}</li>
41+ * <li>SpringServiceLocator: Automatic discovery of {@link SpringFeaturesConfigProvider}</li>
42+ * </ul>
43+ *
3744 * @author Christian Kaltepoth
3845 */
3946@ RunWith (Arquillian .class )
4047public class SpringFeaturesTest extends RewriteTestBase {
48+
4149 @ Deployment (testable = false )
4250 public static WebArchive getDeployment () {
4351 return ShrinkWrap
@@ -46,13 +54,7 @@ public static WebArchive getDeployment() {
4654 .setWebXML ("jetty-web-spring.xml" )
4755 .addAsResource ("jetty-log4j.xml" , ArchivePaths .create ("/log4j.xml" ))
4856 .addAsWebInfResource ("applicationContext.xml" )
49- .addPackages (true , SpringRoot .class .getPackage ())
50- .addAsResource (new StringAsset (SpringFeaturesConfigProvider .class .getName ()),
51- "/META-INF/services/" + ConfigurationProvider .class .getName ())
52- .addAsResource (new StringAsset (SpringServiceEnricher .class .getName ()),
53- "/META-INF/services/" + ServiceEnricher .class .getName ())
54- .addAsResource (new StringAsset (SpringExpressionLanguageProvider .class .getName ()),
55- "/META-INF/services/" + ExpressionLanguageProvider .class .getName ());
57+ .addPackages (true , SpringRoot .class .getPackage ());
5658 }
5759
5860 @ Test
0 commit comments