Introduce Web App integration tests
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 11 Dec 2008 20:00:22 +0000 (20:00 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 11 Dec 2008 20:00:22 +0000 (20:00 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@2018 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

integration-tests/org.argeo.slc.it.webapp/.classpath [new file with mode: 0644]
integration-tests/org.argeo.slc.it.webapp/.project
integration-tests/org.argeo.slc.it.webapp/pom.xml [new file with mode: 0644]
integration-tests/org.argeo.slc.it.webapp/src/main/resources/META-INF/MANIFEST.MF [new file with mode: 0644]

diff --git a/integration-tests/org.argeo.slc.it.webapp/.classpath b/integration-tests/org.argeo.slc.it.webapp/.classpath
new file mode 100644 (file)
index 0000000..c06db5a
--- /dev/null
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<classpath>\r
+       <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>\r
+       <classpathentry kind="src" output="target/test-classes" path="src/test/resources"/>\r
+       <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>\r
+       <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>\r
+       <classpathentry kind="output" path="target/classes"/>\r
+</classpath>\r
index c576a872113d5b40aaf9c6f347b16a8e8a7a8440..e91f29da356be3548e2f85f99387331e56edf65d 100644 (file)
@@ -5,7 +5,21 @@
        <projects>
        </projects>
        <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.jdt.core.javabuilder
+                       </name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.maven.ide.eclipse.maven2Builder
+                       </name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
        </buildSpec>
        <natures>
+               <nature>org.eclipse.jdt.core.javanature</nature>
+               <nature>org.maven.ide.eclipse.maven2Nature</nature>
        </natures>
 </projectDescription>
diff --git a/integration-tests/org.argeo.slc.it.webapp/pom.xml b/integration-tests/org.argeo.slc.it.webapp/pom.xml
new file mode 100644 (file)
index 0000000..f42937f
--- /dev/null
@@ -0,0 +1,116 @@
+<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/maven-v4_0_0.xsd">
+       <modelVersion>4.0.0</modelVersion>
+       <parent>
+               <groupId>org.argeo.slc</groupId>
+               <artifactId>argeo-slc</artifactId>
+               <version>0.11.2-SNAPSHOT</version>
+               <relativePath>../../org.argeo.slc</relativePath>
+       </parent>
+       <artifactId>org.argeo.slc.it.webapp</artifactId>
+       <packaging>jar</packaging>
+       <name>Argeo SLC Web Application Integration Tests</name>
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-dependency-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>copy-dependencies</id>
+                                               <phase>pre-integration-test</phase>
+                                               <goals>
+                                                       <goal>copy-dependencies</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <includeArtifactIds>org.argeo.slc.webapp</includeArtifactIds>
+                                                       <stripVersion>true</stripVersion>
+                                                       <overWriteReleases>true</overWriteReleases>
+                                                       <overWriteSnapshots>true</overWriteSnapshots>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-surefire-plugin</artifactId>
+                               <configuration>
+                                       <skipTests>true</skipTests>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <id>surefire-it</id>
+                                               <phase>integration-test</phase>
+                                               <goals>
+                                                       <goal>test</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <skipTests>false</skipTests>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.mortbay.jetty</groupId>
+                               <artifactId>maven-jetty-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <id>start-jetty</id>
+                                               <phase>pre-integration-test</phase>
+                                               <goals>
+                                                       <goal>run-war</goal>
+                                               </goals>
+                                               <configuration>
+                                                       <daemon>true</daemon>
+                                               </configuration>
+                                       </execution>
+                                       <execution>
+                                               <id>stop-jetty</id>
+                                               <phase>post-integration-test</phase>
+                                               <goals>
+                                                       <goal>stop</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                               <configuration>
+                                       <webApp>${project.build.directory}/dependency/org.argeo.slc.webapp.war</webApp>
+                                       <scanIntervalSeconds>0</scanIntervalSeconds>
+                                       <webDefaultXml>../../org.argeo.slc.webapp/src/main/config/jetty/webdefault.xml</webDefaultXml>
+                                       <jettyConfig>../../org.argeo.slc.webapp/src/main/config/jetty/jetty-test.xml</jettyConfig>
+                               </configuration>
+                       </plugin>
+               </plugins>
+       </build>
+       <dependencies>
+               <dependency>
+                       <groupId>org.argeo.slc</groupId>
+                       <artifactId>org.argeo.slc.webapp</artifactId>
+                       <version>${project.version}</version>
+                       <type>war</type>
+               </dependency>
+               <dependency>
+                       <groupId>org.argeo.slc.runtime</groupId>
+                       <artifactId>org.argeo.slc.launcher</artifactId>
+                       <version>${project.version}</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.argeo.slc.runtime</groupId>
+                       <artifactId>org.argeo.slc.support.ant</artifactId>
+                       <version>${project.version}</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.argeo.slc.runtime</groupId>
+                       <artifactId>org.argeo.slc.support.ant</artifactId>
+                       <version>${project.version}</version>
+                       <scope>test</scope>
+               </dependency>
+               <dependency>
+                       <groupId>org.argeo.slc.runtime</groupId>
+                       <artifactId>org.argeo.slc.support.ws.client</artifactId>
+                       <version>${project.version}</version>
+                       <scope>test</scope>
+               </dependency>
+       </dependencies>
+</project>
\ No newline at end of file
diff --git a/integration-tests/org.argeo.slc.it.webapp/src/main/resources/META-INF/MANIFEST.MF b/integration-tests/org.argeo.slc.it.webapp/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644 (file)
index 0000000..e69de29