deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject [1/3] deltaspike git commit: DELTASPIKE-995 arquillian settings and managed-profile for testing ds with wls12
Date Wed, 07 Oct 2015 21:08:21 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 57113ca19 -> 36d444902


DELTASPIKE-995 arquillian settings and managed-profile for testing ds with wls12


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/bb5b646f
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/bb5b646f
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/bb5b646f

Branch: refs/heads/master
Commit: bb5b646ff832fbc4337127478eb38c9f960fe33e
Parents: 57113ca
Author: gpetracek <gpetracek@apache.org>
Authored: Wed Oct 7 21:51:37 2015 +0200
Committer: gpetracek <gpetracek@apache.org>
Committed: Wed Oct 7 21:51:37 2015 +0200

----------------------------------------------------------------------
 deltaspike/parent/code/pom.xml                  | 71 ++++++++++++++++++++
 .../src/main/resources/arquillian.xml           | 15 +++++
 2 files changed, 86 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/bb5b646f/deltaspike/parent/code/pom.xml
----------------------------------------------------------------------
diff --git a/deltaspike/parent/code/pom.xml b/deltaspike/parent/code/pom.xml
index 983d6cd..18b9cd8 100644
--- a/deltaspike/parent/code/pom.xml
+++ b/deltaspike/parent/code/pom.xml
@@ -1135,6 +1135,77 @@
         </profile>
 
         <profile>
+            <id>wls-managed-12c</id>
+
+            <properties>
+                <cdicontainer.version>wls-${wls.version}</cdicontainer.version>
+            </properties>
+
+            <dependencies>
+
+                <dependency>
+                    <groupId>javax.enterprise</groupId>
+                    <artifactId>cdi-api</artifactId>
+                    <version>1.0-SP4</version>
+                    <scope>provided</scope>
+                </dependency>
+
+                <dependency>
+                    <groupId>org.jboss.arquillian.container</groupId>
+                    <artifactId>arquillian-wls-managed-12.1</artifactId>
+                    <version>1.0.0.Alpha3</version>
+                    <scope>test</scope>
+                </dependency>
+
+            </dependencies>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-surefire-plugin</artifactId>
+                        <version>${maven.surefire.plugin.version}</version>
+                        <configuration>
+                            <systemProperties>
+                                <arquillian.launch>wls-managed-12c</arquillian.launch>
+                                <org.apache.deltaspike.ProjectStage>UnitTest</org.apache.deltaspike.ProjectStage>
+                                <cdicontainer.version>${cdicontainer.version}</cdicontainer.version>
+                            </systemProperties>
+                            <systemPropertyVariables>
+                                <!--
+                                installation directory of wls - root of folders like wlserver,...
+                                e.g.: export MW_HOME=/servers/weblogic/Oracle_Home
+                                -->
+                                <MW_HOME>${env.MW_HOME}</MW_HOME>
+                                <!--
+                                domain used to run ds-tests - root of folders like servers,...
+                                e.g.: export DS_DOMAIN_DIR=/deltaspike/deltaspike-1.5.0/mytest
+                                -->
+                                <DS_DOMAIN_DIR>${env.DS_DOMAIN_DIR}</DS_DOMAIN_DIR>
+                                <!-- e.g.: export DS_DOMAIN_TARGET=myserver -->
+                                <DS_DOMAIN_TARGET>${env.DS_DOMAIN_TARGET}</DS_DOMAIN_TARGET>
+                                <!-- e.g.: export DS_ADMIN_URL=t3://localhost:7001 -->
+                                <DS_ADMIN_URL>${env.DS_ADMIN_URL}</DS_ADMIN_URL>
+                                <!-- e.g.: export DS_ADMIN_USER=weblogic -->
+                                <DS_ADMIN_USER>${env.DS_ADMIN_USER}</DS_ADMIN_USER>
+                                <!-- e.g.: export DS_ADMIN_PSWD=weblogic1-->
+                                <DS_ADMIN_PSWD>${env.DS_ADMIN_PSWD}</DS_ADMIN_PSWD>
+                            </systemPropertyVariables>
+
+                            <!-- we just use groups to mark that a test should be executed
only
+                            with specific environments. even though a java-ee6 application
server has to be able to run
+                            all tests in theory, we have to exclude some tests because there
are e.g. packaging issues or
+                            there are currently issues with arquillian. if a test isn't restricted
to an environment,
+                            no category is used for the test-class. -->
+                            <excludedGroups>
+                                org.apache.deltaspike.test.category.SeCategory
+                            </excludedGroups>
+                        </configuration>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+
+        <profile>
             <!--
              * Glassfish will be downloaded as maven dependency
              *

http://git-wip-us.apache.org/repos/asf/deltaspike/blob/bb5b646f/deltaspike/test-utils/src/main/resources/arquillian.xml
----------------------------------------------------------------------
diff --git a/deltaspike/test-utils/src/main/resources/arquillian.xml b/deltaspike/test-utils/src/main/resources/arquillian.xml
index 50cc228..c6e8c39 100644
--- a/deltaspike/test-utils/src/main/resources/arquillian.xml
+++ b/deltaspike/test-utils/src/main/resources/arquillian.xml
@@ -41,6 +41,21 @@
         </configuration>
     </container>
 
+    <container qualifier="wls-managed-12c">
+        <configuration>
+            <property name="middlewareHome">${MW_HOME}</property>
+            <property name="wlHome">${MW_HOME}/wlserver</property>
+            <property name="domainDirectory">${DS_DOMAIN_DIR}</property>
+            <property name="target">${DS_DOMAIN_TARGET}</property>
+            <property name="adminUrl">${DS_ADMIN_URL}</property>
+            <property name="adminUserName">${DS_ADMIN_USER}</property>
+            <property name="adminPassword">${DS_ADMIN_PSWD}</property>
+            <!-- for debugging uncomment: -->
+            <!--<property name="jvmOptions">-XX:MaxPermSize=256m -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005</property>-->
+            <property name="timeout">600</property>
+        </configuration>
+    </container>
+
     <container qualifier="tomee">
         <configuration>
             <!-- tomee gets copied to this directory during the build -->


Mime
View raw message