2626import org .jboss .shrinkwrap .api .spec .WebArchive ;
2727import org .junit .Test ;
2828import org .junit .runner .RunWith ;
29+ import org .springframework .web .context .WebApplicationContext ;
2930
3031import com .ocpsoft .common .spi .ServiceEnricher ;
31- import com .ocpsoft .rewrite . config . ConfigurationProvider ;
32+ import com .ocpsoft .common . spi . ServiceLocator ;
3233import com .ocpsoft .rewrite .spi .ExpressionLanguageProvider ;
3334import com .ocpsoft .rewrite .test .HttpAction ;
3435import com .ocpsoft .rewrite .test .RewriteTestBase ;
3536
3637/**
38+ * <p>
39+ * This tests the basic features of the Spring integration module:
40+ * </p>
41+ *
42+ * <ul>
43+ * <li>SpringExpressionLanguageProvider: Binding parameters to Spring beans</li>
44+ * <li>SpringServiceEnricher: {@link SpringExpressionLanguageProvider} requires {@link WebApplicationContext}</li>
45+ * <li>SpringServiceLocator: Automatic discovery of {@link SpringFeaturesConfigProvider}</li>
46+ * </ul>
47+ *
3748 * @author Christian Kaltepoth
3849 */
3950@ RunWith (Arquillian .class )
4051public class SpringFeaturesTest extends RewriteTestBase {
52+
4153 @ Deployment (testable = false )
4254 public static WebArchive getDeployment () {
4355 return ShrinkWrap
@@ -46,13 +58,7 @@ public static WebArchive getDeployment() {
4658 .setWebXML ("jetty-web-spring.xml" )
4759 .addAsResource ("jetty-log4j.xml" , ArchivePaths .create ("/log4j.xml" ))
4860 .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 ());
61+ .addPackages (true , SpringRoot .class .getPackage ());
5662 }
5763
5864 @ Test
0 commit comments