geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbarr...@apache.org
Subject [geode] 16/46: GEODE-5363: Moves geode-modules tests into new source sets.
Date Wed, 11 Jul 2018 16:13:23 GMT
This is an automated email from the ASF dual-hosted git repository.

jbarrett pushed a commit to branch feature/GEODE-5363
in repository https://gitbox.apache.org/repos/asf/geode.git

commit 809792f4a18a53439c74c83b8521fc263ae5e92f
Author: Jacob Barrett <jbarrett@pivotal.io>
AuthorDate: Tue Jul 3 06:56:24 2018 -0700

    GEODE-5363: Moves geode-modules tests into new source sets.
---
 extensions/geode-modules/build.gradle              | 22 ++++++++++++++++++++++
 .../modules/session/Tomcat6SessionsJUnitTest.java  |  0
 .../modules/util/ModuleFunctionsSecurityTest.java  |  0
 3 files changed, 22 insertions(+)

diff --git a/extensions/geode-modules/build.gradle b/extensions/geode-modules/build.gradle
index 9796096..0986f85 100644
--- a/extensions/geode-modules/build.gradle
+++ b/extensions/geode-modules/build.gradle
@@ -31,7 +31,29 @@ dependencies {
   testRuntime 'org.apache.tomcat:coyote:' + project.'tomcat6.version'
 
   testCompile project(path: ':geode-junit')
+  // TODO build - move shared source to common library.
   testCompile files(project(':geode-core').sourceSets.test.output)
 }
 
 disableMavenPublishing()
+
+configurations {
+  integrationTestCompile.extendsFrom testCompile
+  integrationTestRuntime.extendsFrom testRuntime
+}
+
+sourceSets {
+  integrationTest {
+    java {
+      compileClasspath += main.output + test.output
+      runtimeClasspath += main.output + test.output
+      srcDir file('src/integrationTest/java')
+    }
+    resources.srcDir file('src/integrationTest/resources')
+  }
+}
+
+dependencies {
+  // TODO build - move dunit framework to shared module.
+  integrationTestCompile files(project(':geode-core').sourceSets.integrationTest.output)
+}
diff --git a/extensions/geode-modules/src/test/java/org/apache/geode/modules/session/Tomcat6SessionsJUnitTest.java
b/extensions/geode-modules/src/integrationTest/java/org/apache/geode/modules/session/Tomcat6SessionsJUnitTest.java
similarity index 100%
rename from extensions/geode-modules/src/test/java/org/apache/geode/modules/session/Tomcat6SessionsJUnitTest.java
rename to extensions/geode-modules/src/integrationTest/java/org/apache/geode/modules/session/Tomcat6SessionsJUnitTest.java
diff --git a/extensions/geode-modules/src/test/java/org/apache/geode/modules/util/ModuleFunctionsSecurityTest.java
b/extensions/geode-modules/src/integrationTest/java/org/apache/geode/modules/util/ModuleFunctionsSecurityTest.java
similarity index 100%
rename from extensions/geode-modules/src/test/java/org/apache/geode/modules/util/ModuleFunctionsSecurityTest.java
rename to extensions/geode-modules/src/integrationTest/java/org/apache/geode/modules/util/ModuleFunctionsSecurityTest.java


Mime
View raw message