[jboss-cvs] JBossAS SVN: r99594 - in projects/ejb3/components/nointerface/trunk: testsuite and 3 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jan 19 06:58:01 EST 2010
Author: jaikiran
Date: 2010-01-19 06:58:00 -0500 (Tue, 19 Jan 2010)
New Revision: 99594
Added:
projects/ejb3/components/nointerface/trunk/testsuite/
projects/ejb3/components/nointerface/trunk/testsuite/pom.xml
projects/ejb3/components/nointerface/trunk/testsuite/src/
projects/ejb3/components/nointerface/trunk/testsuite/src/test/
projects/ejb3/components/nointerface/trunk/testsuite/src/test/java/
projects/ejb3/components/nointerface/trunk/testsuite/src/test/resources/
projects/ejb3/components/nointerface/trunk/testsuite/src/test/resources/build-test.xml
Log:
EJBTHREE-1989 Added testsuite module to nointerface component
Added: projects/ejb3/components/nointerface/trunk/testsuite/pom.xml
===================================================================
--- projects/ejb3/components/nointerface/trunk/testsuite/pom.xml (rev 0)
+++ projects/ejb3/components/nointerface/trunk/testsuite/pom.xml 2010-01-19 11:58:00 UTC (rev 99594)
@@ -0,0 +1,297 @@
+<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">
+
+
+ <parent>
+ <groupId>org.jboss.ejb3.nointerface</groupId>
+ <artifactId>jboss-ejb3-nointerface-build</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <relativePath>../build/pom.xml</relativePath>
+ </parent>
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>org.jboss.ejb3.nointerface</groupId>
+ <artifactId>jboss-ejb3-nointerface-testsuite</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+
+ <name>JBoss EJB3.1 no-interface Testsuite</name>
+ <description>Testsuite for JBoss EJB3.1 no-interface component</description>
+
+ <properties>
+ <jboss.server.config>all</jboss.server.config>
+ <!--
+ The jboss.home "intermediate" property would not have been
+ necessary, if Maven's enforcer plugin supported enforcing
+ setting of a "System" environment variable. Details here
+ http://markmail.org/message/jwfmtrjesuyag7bh This
+ intermediate property is a workaround to use in the enforcer
+ plugin to ensure that the JBOSS_HOME is set. And now that we
+ have an intermediate jboss.home, let's use this throughout
+ the pom instead of JBOSS_HOME.
+ -->
+ <jboss.home>${JBOSS_HOME}</jboss.home>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-enforcer-plugin</artifactId>
+ <executions>
+ <!-- Enforce JDK6 -->
+ <execution>
+ <id>enforce-jdk6</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <requireJavaVersion>
+ <version>1.6</version>
+ </requireJavaVersion>
+ </rules>
+ </configuration>
+ </execution>
+
+ <!--
+ Enforce presence of JBOSS_HOME during
+ pre-intregation-test phase (i.e. during server
+ startup
+ -->
+ <execution>
+ <id>enforce-jboss-home</id>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <phase>pre-integration-test</phase>
+ <configuration>
+ <rules>
+ <requireProperty>
+ <property>jboss.home</property>
+ <message>"Please set
+ JBOSS_HOME"</message>
+ </requireProperty>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <!-- Use the correct "javac" -->
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ <executable>${JAVA_HOME}/bin/javac</executable>
+ </configuration>
+ </plugin>
+
+ <!--
+ Skip unit tests and instead run integration-test. Before
+ running the integration test, start the server and after
+ the tests, stop the server
+ -->
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <!-- skip unit test -->
+ <skipTests>true</skipTests>
+ <redirectTestOutputToFile>true</redirectTestOutputToFile>
+ <printSummary>true</printSummary>
+ </configuration>
+ <executions>
+ <execution>
+ <id>integration-tests</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <!-- Override the earlier set value to now run integration tests -->
+ <skipTests>false</skipTests>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <!--
+ Setup the package manager and no-interface package so
+ that it can be installed later into the AS
+ -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>copy-dependencies</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <!-- The package manager installer -->
+ <artifactItem>
+ <groupId>org.jboss.ejb3</groupId>
+ <artifactId>jboss-ejb3-package-manager</artifactId>
+ <classifier>installer</classifier>
+ <type>zip</type>
+ <outputDirectory>${project.build.directory}/dependencies/package-manager</outputDirectory>
+ </artifactItem>
+ <!--
+ The no-interface package
+ <artifactItem>
+ <groupId>org.jboss.ejb3</groupId>
+ <artifactId>jboss-ejb3-nointerface</artifactId>
+ <classifier>package</classifier>
+ <type>jar</type>
+ <outputDirectory>${project.build.directory}/dependencies/package</outputDirectory>
+ </artifactItem>
+ -->
+ </artifactItems>
+ <overWriteIfNewer>true</overWriteIfNewer>
+ <stripVersion>true</stripVersion>
+ <excludeTransitive>true</excludeTransitive>
+ </configuration>
+ </execution>
+ </executions>
+
+ </plugin>
+
+ <!--
+ Install no-interface package in pre-integration-test
+ phase <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions> <execution>
+ <id>install-nointerface-package</id>
+ <phase>pre-integration-test</phase> <goals>
+ <goal>run</goal> </goals> <configuration> <tasks> <ant
+ antfile="build-test.xml"
+ target="install-no-interface-package" /> </tasks>
+ </configuration> </execution> </executions> </plugin>
+ -->
+ <!--
+ After installing the no-interface package, now start the
+ server in pre-integration-test phase
+ -->
+ <plugin>
+ <groupId>org.jboss.maven.plugins.jbossas</groupId>
+ <artifactId>maven-jboss-as-control-plugin</artifactId>
+ <version>0.1.1</version>
+ <executions>
+ <!-- Start AS -->
+ <execution>
+ <id>start-jboss-as</id>
+ <goals>
+ <goal>start</goal>
+ </goals>
+ <phase>pre-integration-test</phase>
+ <configuration>
+ <serverConfigName>${jboss.server.config}</serverConfigName>
+ <jvmArgs>
+ <jvmArg>-Xms128m</jvmArg>
+ <jvmArg>-Xmx1024m</jvmArg>
+ <jvmArg>-XX:MaxPermSize=256m</jvmArg>
+ <jvmArg>-Dorg.jboss.resolver.warning=true</jvmArg>
+ <jvmArg>-Dsun.rmi.dgc.client.gcInterval=3600000</jvmArg>
+ <jvmArg>-Dsun.rmi.dgc.server.gcInterval=3600000</jvmArg>
+ <!-- Temporary, till AS boots without this property JBAS-6744 -->
+ <jvmArg>-Dxb.builder.useUnorderedSequence=true</jvmArg>
+ </jvmArgs>
+ <jboss.test.run>true</jboss.test.run>
+ </configuration>
+ </execution>
+
+ <!-- Stop AS -->
+ <execution>
+ <id>stop-jboss-as</id>
+ <goals>
+ <goal>stop</goal>
+ </goals>
+ <phase>post-integration-test</phase>
+ <configuration>
+ <serverConfigName>${jboss.server.config}</serverConfigName>
+ <jboss.test.run>true</jboss.test.run>
+ </configuration>
+ </execution>
+
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+
+ <dependencies>
+
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.shrinkwrap</groupId>
+ <artifactId>shrinkwrap-impl-base</artifactId>
+ <version>1.0.0-alpha-2</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.javaee</groupId>
+ <artifactId>jboss-ejb-api_3.1</artifactId>
+ <version>1.0-alpha-1</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.naming</groupId>
+ <artifactId>jnpserver</artifactId>
+ <version>5.0.3.GA</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-system-jmx</artifactId>
+ <scope>test</scope>
+ <version>5.1.0.GA</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.jbossas</groupId>
+ <artifactId>jboss-as-server</artifactId>
+ <version>5.1.0.GA</version>
+ <scope>test</scope>
+ </dependency>
+
+ <!--
+ TODO: Remove this dependency and instead depend on the
+ components
+ -->
+ <dependency>
+ <groupId>org.jboss.ejb3</groupId>
+ <artifactId>jboss-ejb3_1</artifactId>
+ <scope>test</scope>
+ <version>1.0.0</version>
+ <type>pom</type>
+ </dependency>
+
+ <!--
+ The package manager installer which we use to install the
+ no-interface package into AS
+ -->
+ <dependency>
+ <groupId>org.jboss.ejb3</groupId>
+ <artifactId>jboss-ejb3-package-manager</artifactId>
+ <version>1.0.0-SNAPSHOT</version>
+ <scope>test</scope>
+ <classifier>installer</classifier>
+ <type>zip</type>
+ </dependency>
+
+
+ </dependencies>
+
+</project>
\ No newline at end of file
Copied: projects/ejb3/components/nointerface/trunk/testsuite/src/test/java (from rev 99536, projects/ejb3/trunk/nointerface/testsuite/src/test/java)
Copied: projects/ejb3/components/nointerface/trunk/testsuite/src/test/resources (from rev 99536, projects/ejb3/trunk/nointerface/testsuite/src/test/resources)
Copied: projects/ejb3/components/nointerface/trunk/testsuite/src/test/resources/build-test.xml (from rev 99536, projects/ejb3/trunk/nointerface/testsuite/build-test.xml)
===================================================================
--- projects/ejb3/components/nointerface/trunk/testsuite/src/test/resources/build-test.xml (rev 0)
+++ projects/ejb3/components/nointerface/trunk/testsuite/src/test/resources/build-test.xml 2010-01-19 11:58:00 UTC (rev 99594)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="JBoss EJB3.1 no-interface testsuite setup" default="install-no-interface-package">
+
+ <property environment="env"/>
+ <!-- Enforce JBOSS_HOME -->
+ <fail unless="env.JBOSS_HOME" message="JBOSS_HOME not set"/>
+ <property name="JBOSS_HOME" value="${env.JBOSS_HOME}"/>
+
+ <property name="location.target" value="${basedir}/target"/>
+ <property name="location.dependencies" value="${location.target}/dependencies"/>
+ <property name="location.packagemanager" value="${location.dependencies}/package-manager"/>
+ <property name="location.packagemanager.zip.file" value="${location.packagemanager}/jboss-ejb3-package-manager-installer.zip"/>
+ <property name="location.nointerface.package" value="${location.dependencies}/package"/>
+ <property name="location.nointerface.package.file" value="${location.nointerface.package}/jboss-ejb3-nointerface-package.jar"/>
+ <property name="packagemanager.home" value="${location.packagemanager}/jboss-package-manager"/>
+
+ <path id="package.manager.classpath">
+ <fileset dir="${packagemanager.home}/lib" includes="**/*.jar"/>
+ </path>
+
+ <target name="install-no-interface-package" description="Install no-interface package into JBoss AS">
+ <!--Unzip the package manager installer -->
+ <antcall target="unzip-package-manager"/>
+
+ <!-- Setup package manager itself -->
+ <antcall target="setup-package-manager"/>
+
+ <!-- Install the no-interface package through the package manager -->
+ <java classname="org.jboss.ejb3.packagemanager.main.Main" classpathref="package.manager.classpath" fork="true">
+
+ <!-- package manager home -->
+ <arg value="-p"/>
+ <arg value="${packagemanager.home}"/>
+ <!-- JBoss Home -->
+ <arg value="-s"/>
+ <arg value="${JBOSS_HOME}"/>
+ <arg value="-u"/>
+ <arg value="${location.nointerface.package.file}"/>
+ </java>
+ </target>
+
+ <target name="unzip-package-manager">
+ <unzip dest="${location.packagemanager}" src="${location.packagemanager.zip.file}"/>
+ </target>
+
+ <target name="setup-package-manager">
+
+ <java classname="org.jboss.ejb3.packagemanager.main.Setup" classpathref="package.manager.classpath" fork="true">
+ <!-- package manager home -->
+ <arg value="-p"/>
+ <arg value="${packagemanager.home}"/>
+ <!-- Schema script -->
+ <arg value="-f"/>
+ <arg value="${packagemanager.home}/script/schema.sql"/>
+ </java>
+
+ </target>
+
+
+
+</project>
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list