Skip to content

Commit 1e38b21

Browse files
committed
Tests working on AS7 with new profile selection
1 parent abc676b commit 1e38b21

4 files changed

Lines changed: 194 additions & 181 deletions

File tree

‎impl-servlet/src/test/java/org/ocpsoft/rewrite/servlet/config/ConfigurationDeploymentTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
3030
*/
3131
@RunWith(Arquillian.class)
32-
public class ConfigurationDeploymentTest extends RewriteTest
32+
public class ConfigurationDeploymentTest
3333
{
3434
@Deployment(testable = false)
3535
@ShouldThrowException(Exception.class)

‎pom.xml‎

Lines changed: 172 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<!-- Copyright 2011 Lincoln Baxter, III Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
4-
file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
5-
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS
6-
IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language
7-
governing permissions and limitations under the License. -->
3+
<!-- Copyright 2011 Lincoln Baxter, III Licensed under the Apache License,
4+
Version 2.0 (the "License"); you may not use this file except in compliance
5+
with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6+
Unless required by applicable law or agreed to in writing, software distributed
7+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
8+
OR CONDITIONS OF ANY KIND, either express or implied. See the License for
9+
the specific language governing permissions and limitations under the License. -->
810

9-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
1013
<modelVersion>4.0.0</modelVersion>
1114
<groupId>org.ocpsoft.rewrite</groupId>
1215
<artifactId>rewrite-parent</artifactId>
@@ -25,6 +28,10 @@
2528
<version.junit>4.8.1</version.junit>
2629
<version.common>1.0.4.Final</version.common>
2730
<version.logging>1.0.1.Final</version.logging>
31+
<version.arquillian>1.0.0.Final</version.arquillian>
32+
<version.arquillian.jetty>1.0.0.CR1</version.arquillian.jetty>
33+
<version.jetty>8.1.2.v20120308</version.jetty>
34+
<version.jbossas>7.1.1.Final</version.jbossas>
2835
</properties>
2936

3037
<modules>
@@ -147,6 +154,13 @@
147154
<version>${version.junit}</version>
148155
<scope>test</scope>
149156
</dependency>
157+
<dependency>
158+
<groupId>org.jboss.arquillian</groupId>
159+
<artifactId>arquillian-bom</artifactId>
160+
<version>${version.arquillian}</version>
161+
<type>pom</type>
162+
<scope>import</scope>
163+
</dependency>
150164
</dependencies>
151165
</dependencyManagement>
152166

@@ -158,6 +172,158 @@
158172
</dependency>
159173
</dependencies>
160174

175+
176+
<profiles>
177+
<profile>
178+
<id>JETTY_EMBEDDED_8.X</id>
179+
<dependencies>
180+
<dependency>
181+
<groupId>org.jboss.arquillian.container</groupId>
182+
<artifactId>arquillian-jetty-embedded-7</artifactId>
183+
<version>${version.arquillian.jetty}</version>
184+
<scope>test</scope>
185+
<exclusions>
186+
<!-- Don't include the old version of arquillian-container-spi -->
187+
<exclusion>
188+
<groupId>org.jboss.arquillian.container</groupId>
189+
<artifactId>arquillian-container-spi</artifactId>
190+
</exclusion>
191+
</exclusions>
192+
</dependency>
193+
<dependency>
194+
<groupId>org.eclipse.jetty</groupId>
195+
<artifactId>jetty-webapp</artifactId>
196+
<version>${version.jetty}</version>
197+
<scope>test</scope>
198+
</dependency>
199+
<dependency>
200+
<groupId>org.eclipse.jetty</groupId>
201+
<artifactId>jetty-plus</artifactId>
202+
<version>${version.jetty}</version>
203+
<scope>test</scope>
204+
</dependency>
205+
<dependency>
206+
<groupId>org.slf4j</groupId>
207+
<artifactId>slf4j-simple</artifactId>
208+
<version>1.5.10</version>
209+
<scope>test</scope>
210+
</dependency>
211+
<dependency>
212+
<groupId>org.slf4j</groupId>
213+
<artifactId>slf4j-log4j12</artifactId>
214+
<version>1.5.10</version>
215+
<scope>test</scope>
216+
</dependency>
217+
<dependency>
218+
<groupId>org.ocpsoft.logging</groupId>
219+
<artifactId>logging-adapter-slf4j</artifactId>
220+
<scope>test</scope>
221+
</dependency>
222+
223+
<!-- Weld servlet, EL and JSP required for testing CDI injections -->
224+
<!-- Don't use 'org.jboss.weld.servlet:weld-servlet' as it has
225+
an incompatible slf4j version shaded in -->
226+
<dependency>
227+
<groupId>org.jboss.weld.servlet</groupId>
228+
<artifactId>weld-servlet-core</artifactId>
229+
<version>1.1.4.Final</version>
230+
<scope>test</scope>
231+
</dependency>
232+
<dependency>
233+
<groupId>org.jboss.weld</groupId>
234+
<artifactId>weld-core</artifactId>
235+
<version>1.1.4.Final</version>
236+
<scope>test</scope>
237+
</dependency>
238+
239+
<dependency>
240+
<groupId>javax.enterprise</groupId>
241+
<artifactId>cdi-api</artifactId>
242+
<scope>test</scope>
243+
</dependency>
244+
<dependency>
245+
<groupId>org.glassfish.web</groupId>
246+
<artifactId>el-impl</artifactId>
247+
<version>2.2</version>
248+
<scope>test</scope>
249+
</dependency>
250+
<dependency>
251+
<groupId>javax.servlet.jsp</groupId>
252+
<artifactId>jsp-api</artifactId>
253+
<version>2.2</version>
254+
<scope>test</scope>
255+
</dependency>
256+
</dependencies>
257+
</profile>
258+
259+
<profile>
260+
<id>JBOSS_AS_MANAGED_7.X</id>
261+
<build>
262+
<plugins>
263+
<plugin>
264+
<artifactId>maven-dependency-plugin</artifactId>
265+
<extensions>false</extensions>
266+
<executions>
267+
<execution>
268+
<id>unpack</id>
269+
<phase>process-test-classes</phase>
270+
<goals>
271+
<goal>unpack</goal>
272+
</goals>
273+
<configuration>
274+
<artifactItems>
275+
<artifactItem>
276+
<groupId>org.jboss.as</groupId>
277+
<artifactId>jboss-as-dist</artifactId>
278+
<version>${version.jbossas}</version>
279+
<type>zip</type>
280+
<overWrite>false</overWrite>
281+
<outputDirectory>../target</outputDirectory>
282+
</artifactItem>
283+
</artifactItems>
284+
</configuration>
285+
</execution>
286+
</executions>
287+
</plugin>
288+
</plugins>
289+
</build>
290+
<dependencies>
291+
<dependency>
292+
<groupId>org.jboss.spec</groupId>
293+
<artifactId>jboss-javaee-web-6.0</artifactId>
294+
<version>3.0.1.Final</version>
295+
<type>pom</type>
296+
<scope>test</scope>
297+
</dependency>
298+
<dependency>
299+
<groupId>org.jboss.as</groupId>
300+
<artifactId>jboss-as-arquillian-container-managed</artifactId>
301+
<version>${version.jbossas}</version>
302+
<scope>test</scope>
303+
</dependency>
304+
</dependencies>
305+
</profile>
306+
307+
<profile>
308+
<id>JBOSS_AS_REMOTE_7.X</id>
309+
<dependencies>
310+
<dependency>
311+
<groupId>org.jboss.spec</groupId>
312+
<artifactId>jboss-javaee-web-6.0</artifactId>
313+
<version>3.0.1.Final</version>
314+
<type>pom</type>
315+
<scope>test</scope>
316+
</dependency>
317+
<dependency>
318+
<groupId>org.jboss.as</groupId>
319+
<artifactId>jboss-as-arquillian-container-remote</artifactId>
320+
<version>${version.jbossas}</version>
321+
<scope>test</scope>
322+
</dependency>
323+
</dependencies>
324+
</profile>
325+
</profiles>
326+
161327
<developers>
162328
<developer>
163329
<id>lincolnbaxter</id>

0 commit comments

Comments
 (0)