1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
|
Description: deleting classes needing com.google.testing.compile
This package is not Debian-packaged and concerns few tests, so we delete the
test classes needing it.
This patch should get removed if com.google.testing.compile gets packaged.
Author: Pierre Gruet <pgt@debian.org>
Forwarded: not-needed
Last-Update: 2021-05-08
--- a/pf4j/src/test/java/org/pf4j/AbstractExtensionFinderTest.java
+++ b/pf4j/src/test/java/org/pf4j/AbstractExtensionFinderTest.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.pf4j;
+/*package org.pf4j;
import com.google.common.collect.ImmutableList;
import com.google.common.io.ByteStreams;
@@ -44,12 +44,12 @@
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.mockito.Mockito.eq;
import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
+import static org.mockito.Mockito.when;*/
/**
* @author Mario Franco
*/
-public class AbstractExtensionFinderTest {
+/*public class AbstractExtensionFinderTest {
private PluginManager pluginManager;
@@ -73,12 +73,12 @@
@AfterEach
public void tearDown() {
pluginManager = null;
- }
+ }*/
/**
* Test of {@link AbstractExtensionFinder#find(Class)}.
*/
- @Test
+/* @Test
public void testFindFailType() {
ExtensionFinder instance = new AbstractExtensionFinder(pluginManager) {
@@ -95,12 +95,12 @@
};
List<ExtensionWrapper<FailTestPlugin>> list = instance.find(FailTestPlugin.class);
assertEquals(0, list.size());
- }
+ }*/
/**
* Test of {@link AbstractExtensionFinder#find(Class)}.
*/
- @Test
+/* @Test
public void testFindFromClasspath() {
ExtensionFinder instance = new AbstractExtensionFinder(pluginManager) {
@@ -125,12 +125,12 @@
List<ExtensionWrapper<TestExtensionPoint>> list = instance.find(TestExtensionPoint.class);
assertEquals(2, list.size());
- }
+ }*/
/**
* Test of {@link AbstractExtensionFinder#find(Class, String)}.
*/
- @Test
+/* @Test
public void testFindFromPlugin() {
ExtensionFinder instance = new AbstractExtensionFinder(pluginManager) {
@@ -164,12 +164,12 @@
list = instance.find(TestExtensionPoint.class, "plugin2");
assertEquals(0, list.size());
- }
+ }*/
/**
* Test of {@link AbstractExtensionFinder#findClassNames(String)}.
*/
- @Test
+/* @Test
public void testFindClassNames() {
ExtensionFinder instance = new AbstractExtensionFinder(pluginManager) {
@@ -208,7 +208,7 @@
/**
* Test of {@link org.pf4j.AbstractExtensionFinder#find(java.lang.String)}.
*/
- @Test
+/* @Test
public void testFindExtensionWrappersFromPluginId() {
ExtensionFinder instance = new AbstractExtensionFinder(pluginManager) {
@@ -304,4 +304,4 @@
}
-}
+}*/
--- a/pf4j/src/test/java/org/pf4j/ExtensionAnnotationProcessorTest.java
+++ b/pf4j/src/test/java/org/pf4j/ExtensionAnnotationProcessorTest.java
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.pf4j;
+/*package org.pf4j;
import com.google.testing.compile.Compilation;
import com.google.testing.compile.JavaFileObjects;
@@ -30,13 +30,13 @@
import static com.google.testing.compile.CompilationSubject.assertThat;
import static com.google.testing.compile.Compiler.javac;
-import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertEquals;*/
/**
* @author Mario Franco
* @author Decebal Suiu
*/
-public class ExtensionAnnotationProcessorTest {
+/*public class ExtensionAnnotationProcessorTest {
public static final JavaFileObject Greeting = JavaFileObjects.forSourceLines(
"Greeting",
@@ -101,12 +101,12 @@
" public String getGreeting() {",
" return \"Whazzup\";",
" }",
- "}");
+ "}");*/
/**
* The same like {@link #SpinnakerExtension} but without {@code Extension} annotation.
*/
- public static final JavaFileObject SpinnakerExtension_NoExtension = JavaFileObjects.forSourceLines(
+/* public static final JavaFileObject SpinnakerExtension_NoExtension = JavaFileObjects.forSourceLines(
"SpinnakerExtension",
"package test;",
"",
@@ -197,4 +197,4 @@
assertEquals(extensions, processor.getExtensions());
}
-}
+}*/
|