bug 502539: Removed Gradle Test Kit set-up
diff --git a/org.eclipse.virgo.bundlor.gradle/build.gradle b/org.eclipse.virgo.bundlor.gradle/build.gradle
index dabd754..45fb0ab 100644
--- a/org.eclipse.virgo.bundlor.gradle/build.gradle
+++ b/org.eclipse.virgo.bundlor.gradle/build.gradle
@@ -40,17 +40,17 @@
}
// Write the plugin's classpath to a file to share with the tests
-task createClasspathManifest {
- def outputDir = file("$buildDir/$name")
-
- inputs.files sourceSets.main.runtimeClasspath
- outputs.dir outputDir
-
- doLast {
- outputDir.mkdirs()
- file("$outputDir/plugin-classpath.txt").text = sourceSets.main.runtimeClasspath.join("\n")
- }
-}
+//task createClasspathManifest {
+// def outputDir = file("$buildDir/$name")
+//
+// inputs.files sourceSets.main.runtimeClasspath
+// outputs.dir outputDir
+//
+// doLast {
+// outputDir.mkdirs()
+// file("$outputDir/plugin-classpath.txt").text = sourceSets.main.runtimeClasspath.join("\n")
+// }
+//}
dependencies {
compile localGroovy()
@@ -58,7 +58,7 @@
compile project(':org.eclipse.virgo.bundlor.blint')
testCompile "junit:junit:${junitVersion}"
// Add the classpath file to the test runtime classpath
- testRuntime files(createClasspathManifest)
+// testRuntime files(createClasspathManifest)
}
gradlePlugin {
@@ -82,4 +82,3 @@
}
}
}
-
diff --git a/org.eclipse.virgo.bundlor.gradle/src/test/groovy/org/eclipse/virgo/bundlor/gradle/internal/BundlorGradlePluginTests.groovy b/org.eclipse.virgo.bundlor.gradle/src/test/groovy/org/eclipse/virgo/bundlor/gradle/internal/BundlorGradlePluginTests.groovy
deleted file mode 100644
index 49be3e3..0000000
--- a/org.eclipse.virgo.bundlor.gradle/src/test/groovy/org/eclipse/virgo/bundlor/gradle/internal/BundlorGradlePluginTests.groovy
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
- * This file is part of the Eclipse Virgo project.
- *
- * Copyright (c) 2016 ISPIN AG
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Daniel Marthaler - initial contribution
- */
-package org.eclipse.virgo.bundlor.gradle.internal
-
-import static org.gradle.testkit.runner.TaskOutcome.*
-import static org.junit.Assert.*
-
-import org.gradle.testkit.runner.BuildResult
-import org.gradle.testkit.runner.GradleRunner
-import org.junit.Before
-import org.junit.Test
-
-class BundlorGradlePluginTests {
-
- public File testProjectDir
- public List pluginClasspath
-
- @Before
- public void before() {
- pluginClasspath = getClass().classLoader.findResource('plugin-classpath.txt').readLines().collect {
- println it
- new File(it)
- }
- }
-
- @Test
- public void test() {
-// testProjectDir = new File('src/test/resources/simpleproject')
-//
-// BuildResult result = GradleRunner.create()
-// .withProjectDir(testProjectDir)
-// .withArguments("tasks", "--stacktrace")
-// .withPluginClasspath(pluginClasspath)
-// .build()
-//
-// assertEquals(result.task(":tasks").getOutcome(), SUCCESS)
- }
-}
diff --git a/org.eclipse.virgo.bundlor.gradle/src/test/resources/simpleproject/build.gradle b/org.eclipse.virgo.bundlor.gradle/src/test/resources/simpleproject/build.gradle
deleted file mode 100644
index f73d9bd..0000000
--- a/org.eclipse.virgo.bundlor.gradle/src/test/resources/simpleproject/build.gradle
+++ /dev/null
@@ -1,3 +0,0 @@
-plugins {
- id 'org.eclipse.virgo.bundlor'
-}