Added 'jache-tck' profile to 'ignite-core' module.
Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/eb8756c6 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/eb8756c6 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/eb8756c6 Branch: refs/heads/ignite-45 Commit: eb8756c668beb7e2ae40e43ee7a51df04c5a07aa Parents: bfda621 Author: sevdokimov <sevdoki...@gridgain.com> Authored: Tue Mar 17 15:29:20 2015 +0300 Committer: sevdokimov <sevdoki...@gridgain.com> Committed: Tue Mar 17 15:29:20 2015 +0300 ---------------------------------------------------------------------- modules/core/pom.xml | 105 ++++++++++++++++++++++++++++ modules/core/src/test/java/ExcludeList | 4 ++ 2 files changed, 109 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/eb8756c6/modules/core/pom.xml ---------------------------------------------------------------------- diff --git a/modules/core/pom.xml b/modules/core/pom.xml index 6d6440d..bd374fd 100644 --- a/modules/core/pom.xml +++ b/modules/core/pom.xml @@ -295,5 +295,110 @@ </plugins> </build> </profile> + + <profile> + <id>jcache-tck</id> + + <properties> + <domain-lib-dir>${project.build.directory}/domainlib</domain-lib-dir> + <domain-jar>domain.jar</domain-jar> + + <javax.cache.tck.version>1.0.1</javax.cache.tck.version> + </properties> + + <dependencies> + <dependency> + <groupId>javax.cache</groupId> + <artifactId>cache-tests</artifactId> + <version>${javax.cache.tck.version}</version> + </dependency> + + <dependency> + <groupId>javax.cache</groupId> + <artifactId>cache-tests</artifactId> + <classifier>tests</classifier> + <version>${javax.cache.tck.version}</version> + <scope>test</scope> + </dependency> + + <dependency> + <groupId>org.hamcrest</groupId> + <artifactId>hamcrest-library</artifactId> + <version>1.2</version> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-dependency-plugin</artifactId> + <version>2.8</version> + <executions> + <!--Required because JUnit will not detect tests simply included in a dep--> + <execution> + <id>copy-cache-tests</id> + <goals> + <goal>unpack-dependencies</goal> + </goals> + <configuration> + <outputDirectory>${project.build.testOutputDirectory}</outputDirectory> + <includeArtifactIds>cache-tests</includeArtifactIds> + <includeScope>test</includeScope> + </configuration> + </execution> + <execution> + <id>copy-domain</id> + <goals> + <goal>copy</goal> + </goals> + <configuration> + <artifactItems> + <artifactItem> + <groupId>javax.cache</groupId> + <artifactId>app-domain</artifactId> + <version>${javax.cache.tck.version}</version> + <outputDirectory>${domain-lib-dir}</outputDirectory> + <destFileName>${domain-jar}</destFileName> + </artifactItem> + </artifactItems> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-deploy-plugin</artifactId> + <configuration> + <skip>true</skip> + </configuration> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <configuration> + <systemPropertyVariables> + <domainJar>${domain-lib-dir}/${domain-jar}</domainJar> + <javax.management.builder.initial>org.apache.ignite.internal.tck.TCKMBeanServerBuilder</javax.management.builder.initial> + <org.jsr107.tck.management.agentId>IgniteMBeanServer</org.jsr107.tck.management.agentId> + <javax.cache.CacheManager>org.apache.ignite.cache.CacheManager</javax.cache.CacheManager> + <javax.cache.Cache>org.apache.ignite.IgniteCache</javax.cache.Cache> + <javax.cache.Cache.Entry>org.apache.ignite.internal.processors.cache.CacheEntryImpl</javax.cache.Cache.Entry> + <javax.cache.annotation.CacheInvocationContext>javax.cache.annotation.impl.cdi.CdiCacheKeyInvocationContextImpl</javax.cache.annotation.CacheInvocationContext> + <IGNITE_QUIET>false</IGNITE_QUIET> + </systemPropertyVariables> + <excludes> + <exclude>**/org/apache/ignite/**/*Test.java</exclude> + <exclude>**/annotation/*Test.java</exclude> + <exclude>**/ClientServerTest.java</exclude> + </excludes> + </configuration> + </plugin> + </plugins> + </build> + </profile> </profiles> </project> http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/eb8756c6/modules/core/src/test/java/ExcludeList ---------------------------------------------------------------------- diff --git a/modules/core/src/test/java/ExcludeList b/modules/core/src/test/java/ExcludeList new file mode 100644 index 0000000..9af6366 --- /dev/null +++ b/modules/core/src/test/java/ExcludeList @@ -0,0 +1,4 @@ +# List of excluded TCK tests. + +# This is a dummy test that fails if not in the exclude list. +org.jsr107.tck.CachingTest#dummyTest \ No newline at end of file