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
|
Description: omit test failing to mock an interface
The test log indicates mockito can only mock non-private and non-final
classes, which is (maybe?) why the interface
javax.annotation.processing.Filer fails to be mocked.
Author: Pierre Gruet <pgt@debian.org>
Forwarded: https://github.com/pf4j/pf4j/issues/445
Last-Update: 2021-05-08
--- a/pf4j/src/test/java/org/pf4j/processor/ServiceProviderExtensionStorageTest.java
+++ b/pf4j/src/test/java/org/pf4j/processor/ServiceProviderExtensionStorageTest.java
@@ -16,6 +16,7 @@
package org.pf4j.processor;
+import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import javax.annotation.processing.Filer;
@@ -50,6 +51,7 @@
assertThat(entries.contains("World"), is(true));
}
+ @Disabled
@Test
public void ensureReadingExtensionsProducesCorrectListOfExtensions() {
final StringReader file = new StringReader("#hello\n World");
|