diff options
author | Tran Le | 2014-04-11 04:30:48 +0000 |
---|---|---|
committer | Tran Le | 2014-04-11 04:30:48 +0000 |
commit | b65d99f7a2af16f576e6035e266a03b072a182fd (patch) | |
tree | c638ba44bcc19c82ac9ba354b32efee5e4db1427 | |
parent | 0594d7eeb0996b84599ce6244570b5c4d6895243 (diff) | |
download | webtools.dali-b65d99f7a2af16f576e6035e266a03b072a182fd.tar.gz webtools.dali-b65d99f7a2af16f576e6035e266a03b072a182fd.tar.xz webtools.dali-b65d99f7a2af16f576e6035e266a03b072a182fd.zip |
431961 - [CBI] Enable JUnit tests for dali jpa and jaxb
5 files changed, 417 insertions, 10 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> diff --git a/jpa/tests/org.eclipse.jpt.jpa.core.tests/pom.xml b/jpa/tests/org.eclipse.jpt.jpa.core.tests/pom.xml index 2efe729df1..054d89c025 100644 --- a/jpa/tests/org.eclipse.jpt.jpa.core.tests/pom.xml +++ b/jpa/tests/org.eclipse.jpt.jpa.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,123 @@ <groupId>org.eclipse.webtools.dali</groupId> <artifactId>org.eclipse.jpt.jpa.core.tests</artifactId> <version>3.4.0-SNAPSHOT</version> - <packaging>eclipse-plugin</packaging> + <packaging>eclipse-test-plugin</packaging> + + <properties> + <org.eclipse.jpt.jpa.jar>${project.build.directory}/dependency/javax.persistence-2.1.0.jar</org.eclipse.jpt.jpa.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>javax.persistence</artifactId> + <version>2.1.0</version> + </artifactItem> + </artifactItems> + </configuration> + </execution> + </executions> + </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.jpa.core.tests.internal.model.JptJpaCoreModelTests</testClass> + </configuration> + <goals> + <goal>test</goal> + </goals> + </execution> + <execution> + <id>suite2</id> + <phase>test</phase> + <configuration> + <testSuite>${project.artifactId}</testSuite> + <testClass>org.eclipse.jpt.jpa.core.tests.internal.resource.JptJpaCoreResourceModelTests</testClass> + <systemProperties combine.children="append"> + <org.eclipse.jpt.jpa.jar>${org.eclipse.jpt.jpa.jar}</org.eclipse.jpt.jpa.jar> + </systemProperties> + <dependencies> + <dependency> + <type>p2-installable-unit</type> + <artifactId>javax.persistence</artifactId> + <version>0.0.0</version> + </dependency> + </dependencies> + </configuration> + <goals> + <goal>test</goal> + </goals> + </execution> + <execution> + <id>suite3</id> + <phase>test</phase> + <configuration> + <testSuite>${project.artifactId}</testSuite> + <testClass>org.eclipse.jpt.jpa.core.tests.internal.context.JptJpaCoreContextModelTests</testClass> + <systemProperties combine.children="append"> + <org.eclipse.jpt.jpa.jar>${org.eclipse.jpt.jpa.jar}</org.eclipse.jpt.jpa.jar> + </systemProperties> + <dependencies> + <dependency> + <type>p2-installable-unit</type> + <artifactId>javax.persistence</artifactId> + <version>0.0.0</version> + </dependency> + </dependencies> + </configuration> + <goals> + <goal>test</goal> + </goals> + </execution> + <execution> + <id>suite4</id> + <phase>test</phase> + <configuration> + <testSuite>${project.artifactId}</testSuite> + <testClass>org.eclipse.jpt.jpa.core.tests.internal.JptJpaCoreMiscTests</testClass> + <systemProperties combine.children="append"> + <org.eclipse.jpt.jpa.jar>${org.eclipse.jpt.jpa.jar}</org.eclipse.jpt.jpa.jar> + </systemProperties> + <dependencies> + <dependency> + <type>p2-installable-unit</type> + <artifactId>javax.persistence</artifactId> + <version>0.0.0</version> + </dependency> + </dependencies> + </configuration> + <goals> + <goal>test</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> </project> diff --git a/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/pom.xml b/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/pom.xml index 8a6c283b04..fabaa21a3c 100644 --- a/jpa/tests/org.eclipse.jpt.jpa.eclipselink.core.tests/pom.xml +++ b/jpa/tests/org.eclipse.jpt.jpa.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,63 @@ <groupId>org.eclipse.webtools.dali</groupId> <artifactId>org.eclipse.jpt.jpa.eclipselink.core.tests</artifactId> <version>2.4.0-SNAPSHOT</version> - <packaging>eclipse-plugin</packaging> + <packaging>eclipse-test-plugin</packaging> + + <properties> + <org.eclipse.jpt.jpa.jar>${project.build.directory}/dependency/javax.persistence-2.1.0.jar</org.eclipse.jpt.jpa.jar> + <org.eclipse.jpt.eclipselink.jar>${project.build.directory}/dependency/eclipselink-2.5.1.jar</org.eclipse.jpt.eclipselink.jar> + <testSuite>${project.artifactId}</testSuite> + <testClass>org.eclipse.jpt.jpa.eclipselink.core.tests.internal.resource.JptJpaEclipseLinkCoreResourceModelTests</testClass> + </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>javax.persistence</artifactId> + <version>2.1.0</version> + </artifactItem> + <artifactItem> + <groupId>org.eclipse.persistence</groupId> + <artifactId>eclipselink</artifactId> + <version>2.5.1</version> + </artifactItem> + </artifactItems> + </configuration> + </execution> + </executions> + </plugin> + <plugin> + <groupId>org.eclipse.tycho</groupId> + <artifactId>tycho-surefire-plugin</artifactId> + <version>${tycho.version}</version> + <configuration> + <systemProperties combine.children="append"> + <org.eclipse.jpt.jpa.jar>${org.eclipse.jpt.jpa.jar}</org.eclipse.jpt.jpa.jar> + <org.eclipse.jpt.eclipselink.jar>${org.eclipse.jpt.eclipselink.jar}</org.eclipse.jpt.eclipselink.jar> + </systemProperties> + <dependencies> + <dependency> + <type>p2-installable-unit</type> + <artifactId>javax.persistence</artifactId> + <version>0.0.0</version> + </dependency> + </dependencies> + </configuration> + </plugin> + </plugins> + </build> </project> diff --git a/jpa/tests/org.eclipse.jpt.jpa.gen.tests/pom.xml b/jpa/tests/org.eclipse.jpt.jpa.gen.tests/pom.xml index 7f459c45e2..4cb8543b29 100644 --- a/jpa/tests/org.eclipse.jpt.jpa.gen.tests/pom.xml +++ b/jpa/tests/org.eclipse.jpt.jpa.gen.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,10 @@ <groupId>org.eclipse.webtools.dali</groupId> <artifactId>org.eclipse.jpt.jpa.gen.tests</artifactId> <version>3.1.0-SNAPSHOT</version> - <packaging>eclipse-plugin</packaging> + <packaging>eclipse-test-plugin</packaging> + + <properties> + <testSuite>${project.artifactId}</testSuite> + <testClass>org.eclipse.jpt.jpa.gen.tests.internal.JptJpaGenTests</testClass> + </properties> </project> |