Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTran Le2014-04-11 04:30:48 +0000
committerTran Le2014-04-11 04:30:48 +0000
commitb65d99f7a2af16f576e6035e266a03b072a182fd (patch)
treec638ba44bcc19c82ac9ba354b32efee5e4db1427 /jaxb/tests
parent0594d7eeb0996b84599ce6244570b5c4d6895243 (diff)
downloadwebtools.dali-b65d99f7a2af16f576e6035e266a03b072a182fd.tar.gz
webtools.dali-b65d99f7a2af16f576e6035e266a03b072a182fd.tar.xz
webtools.dali-b65d99f7a2af16f576e6035e266a03b072a182fd.zip
431961 - [CBI] Enable JUnit tests for dali jpa and jaxb
Diffstat (limited to 'jaxb/tests')
-rw-r--r--jaxb/tests/org.eclipse.jpt.jaxb.core.tests/pom.xml115
-rw-r--r--jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/pom.xml119
2 files changed, 230 insertions, 4 deletions
diff --git a/jaxb/tests/org.eclipse.jpt.jaxb.core.tests/pom.xml b/jaxb/tests/org.eclipse.jpt.jaxb.core.tests/pom.xml
index be68ecbb2a..01385bb1aa 100644
--- a/jaxb/tests/org.eclipse.jpt.jaxb.core.tests/pom.xml
+++ b/jaxb/tests/org.eclipse.jpt.jaxb.core.tests/pom.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2012, 2013 Eclipse Foundation and others.
+ Copyright (c) 2012, 2014 Eclipse Foundation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Distribution License v1.0
which accompanies this distribution, and is available at
@@ -23,5 +23,116 @@
<groupId>org.eclipse.webtools.dali</groupId>
<artifactId>org.eclipse.jpt.jaxb.core.tests</artifactId>
<version>1.4.0-SNAPSHOT</version>
- <packaging>eclipse-plugin</packaging>
+ <packaging>eclipse-test-plugin</packaging>
+
+ <properties>
+ <jpt-javax-xml-bind-jar>${project.build.directory}/dependency/javax.xml.bind-2.2.0.v201105210648.jar</jpt-javax-xml-bind-jar>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.8</version>
+ <executions>
+ <execution>
+ <id>get-dependencies</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <excludeTransitive>true</excludeTransitive>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <configuration>
+ <dependency-resolution>
+ <extraRequirements>
+ <requirement>
+ <type>eclipse-plugin</type>
+ <id>javax.xml.bind</id>
+ <versionRange>2.2.0.v201105210648</versionRange>
+ </requirement>
+ </extraRequirements>
+ </dependency-resolution>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-surefire-plugin</artifactId>
+ <version>${tycho.version}</version>
+ <executions>
+ <execution>
+ <id>default-test</id>
+ <phase>none</phase>
+ </execution>
+ <execution>
+ <id>suite1</id>
+ <phase>test</phase>
+ <configuration>
+ <testSuite>${project.artifactId}</testSuite>
+ <testClass>org.eclipse.jpt.jaxb.core.tests.internal.resource.JaxbCoreResourceModelTests</testClass>
+ <systemProperties combine.children="append">
+ <org.eclipse.jpt.jaxb.jar>${jpt-javax-xml-bind-jar}</org.eclipse.jpt.jaxb.jar>
+ </systemProperties>
+ </configuration>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>suite2</id>
+ <phase>test</phase>
+ <configuration>
+ <testSuite>${project.artifactId}</testSuite>
+ <testClass>org.eclipse.jpt.jaxb.core.tests.internal.context.JaxbCoreContextModelTests</testClass>
+ <systemProperties combine.children="append">
+ <org.eclipse.jpt.jaxb.jar>${jpt-javax-xml-bind-jar}</org.eclipse.jpt.jaxb.jar>
+ </systemProperties>
+ </configuration>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>suite3</id>
+ <phase>test</phase>
+ <configuration>
+ <testSuite>${project.artifactId}</testSuite>
+ <testClass>org.eclipse.jpt.jaxb.core.tests.internal.utility.JaxbCoreUtilityTests</testClass>
+ <systemProperties combine.children="append">
+ <org.eclipse.jpt.jaxb.jar>${jpt-javax-xml-bind-jar}</org.eclipse.jpt.jaxb.jar>
+ </systemProperties>
+ </configuration>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>suite4</id>
+ <phase>test</phase>
+ <configuration>
+ <testSuite>${project.artifactId}</testSuite>
+ <testClass>org.eclipse.jpt.jaxb.core.tests.internal.JaxbCoreMiscTests</testClass>
+ <useUIHarness>true</useUIHarness>
+ <useUIThread>true</useUIThread>
+ <systemProperties combine.children="append">
+ <org.eclipse.jpt.jaxb.jar>${jpt-javax-xml-bind-jar}</org.eclipse.jpt.jaxb.jar>
+ </systemProperties>
+ </configuration>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/pom.xml b/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/pom.xml
index 6a3d59d066..bd41f60714 100644
--- a/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/pom.xml
+++ b/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/pom.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Copyright (c) 2012, 2013 Eclipse Foundation and others.
+ Copyright (c) 2012, 2014 Eclipse Foundation and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Distribution License v1.0
which accompanies this distribution, and is available at
@@ -23,5 +23,120 @@
<groupId>org.eclipse.webtools.dali</groupId>
<artifactId>org.eclipse.jpt.jaxb.eclipselink.core.tests</artifactId>
<version>1.1.100-SNAPSHOT</version>
- <packaging>eclipse-plugin</packaging>
+ <packaging>eclipse-test-plugin</packaging>
+
+ <properties>
+ <jpt-javax-xml-bind-jar>${project.build.directory}/dependency/javax.xml.bind-2.2.0.v201105210648.jar</jpt-javax-xml-bind-jar>
+ <org.eclipse.jpt.eclipselink.jar>${project.build.directory}/dependency/eclipselink-2.5.1.jar</org.eclipse.jpt.eclipselink.jar>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.8</version>
+ <executions>
+ <execution>
+ <id>get-dependencies</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.eclipse.persistence</groupId>
+ <artifactId>eclipselink</artifactId>
+ <version>2.5.1</version>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ <execution>
+ <id>get-p2-dependencies</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <excludeTransitive>true</excludeTransitive>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>target-platform-configuration</artifactId>
+ <configuration>
+ <dependency-resolution>
+ <extraRequirements>
+ <requirement>
+ <type>eclipse-plugin</type>
+ <id>javax.xml.bind</id>
+ <versionRange>2.2.0.v201105210648</versionRange>
+ </requirement>
+ </extraRequirements>
+ </dependency-resolution>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-surefire-plugin</artifactId>
+ <version>${tycho.version}</version>
+ <executions>
+ <execution>
+ <id>default-test</id>
+ <phase>none</phase>
+ </execution>
+ <execution>
+ <id>suite1</id>
+ <phase>test</phase>
+ <configuration>
+ <testSuite>${project.artifactId}</testSuite>
+ <testClass>org.eclipse.jpt.jaxb.eclipselink.core.tests.internal.resource.ELJaxbCoreResourceModelTests</testClass>
+ <systemProperties combine.children="append">
+ <org.eclipse.jpt.jaxb.jar>${jpt-javax-xml-bind-jar}</org.eclipse.jpt.jaxb.jar>
+ <org.eclipse.jpt.eclipselink.jar>${org.eclipse.jpt.eclipselink.jar}</org.eclipse.jpt.eclipselink.jar>
+ </systemProperties>
+ </configuration>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>suite2</id>
+ <phase>test</phase>
+ <configuration>
+ <testSuite>${project.artifactId}</testSuite>
+ <testClass>org.eclipse.jpt.jaxb.eclipselink.core.tests.internal.context.ELJaxbCoreContextModelTests</testClass>
+ <systemProperties combine.children="append">
+ <org.eclipse.jpt.jaxb.jar>${jpt-javax-xml-bind-jar}</org.eclipse.jpt.jaxb.jar>
+ <org.eclipse.jpt.eclipselink.jar>${org.eclipse.jpt.eclipselink.jar}</org.eclipse.jpt.eclipselink.jar>
+ </systemProperties>
+ </configuration>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>suite3</id>
+ <phase>test</phase>
+ <configuration>
+ <testSuite>${project.artifactId}</testSuite>
+ <testClass>org.eclipse.jpt.jaxb.eclipselink.core.tests.internal.ELJaxbCoreMiscTests</testClass>
+ <systemProperties combine.children="append">
+ <org.eclipse.jpt.jaxb.jar>${jpt-javax-xml-bind-jar}</org.eclipse.jpt.jaxb.jar>
+ <org.eclipse.jpt.eclipselink.jar>${org.eclipse.jpt.eclipselink.jar}</org.eclipse.jpt.eclipselink.jar>
+ </systemProperties>
+ </configuration>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>

Back to the top