diff options
author | Decebal Suiu <decebal.suiu@gmail.com> | 2024-11-29 00:13:23 +0200 |
---|---|---|
committer | Decebal Suiu <decebal.suiu@gmail.com> | 2024-11-29 00:37:23 +0200 |
commit | 5afc98a7bdd8d866bbd4734140d69dcabef71d27 (patch) | |
tree | 22fd4ede09215c11438119572d4ef7e4ec44b143 | |
parent | fb43bbfbcd38139ecdc3d07cb1fc744b510c8abc (diff) | |
download | pf4j-5afc98a7bdd8d866bbd4734140d69dcabef71d27.tar.gz pf4j-5afc98a7bdd8d866bbd4734140d69dcabef71d27.zip |
Fix some Sonar warnings
-rw-r--r-- | pf4j/src/test/java/org/pf4j/AbstractExtensionFinderTest.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pf4j/src/test/java/org/pf4j/AbstractExtensionFinderTest.java b/pf4j/src/test/java/org/pf4j/AbstractExtensionFinderTest.java index 796106d..a0ad300 100644 --- a/pf4j/src/test/java/org/pf4j/AbstractExtensionFinderTest.java +++ b/pf4j/src/test/java/org/pf4j/AbstractExtensionFinderTest.java @@ -43,7 +43,7 @@ import static org.mockito.Mockito.when; /** * @author Mario Franco */ -public class AbstractExtensionFinderTest { +class AbstractExtensionFinderTest { private PluginManager pluginManager; @@ -73,7 +73,7 @@ public class AbstractExtensionFinderTest { * Test of {@link AbstractExtensionFinder#find(Class)}. */ @Test - public void testFindFailType() { + void testFindFailType() { ExtensionFinder instance = new AbstractExtensionFinder(pluginManager) { @Override @@ -95,7 +95,7 @@ public class AbstractExtensionFinderTest { * Test of {@link AbstractExtensionFinder#find(Class)}. */ @Test - public void testFindFromClasspath() { + void testFindFromClasspath() { ExtensionFinder instance = new AbstractExtensionFinder(pluginManager) { @Override @@ -124,7 +124,7 @@ public class AbstractExtensionFinderTest { * Test of {@link AbstractExtensionFinder#find(Class, String)}. */ @Test - public void testFindFromPlugin() { + void testFindFromPlugin() { ExtensionFinder instance = new AbstractExtensionFinder(pluginManager) { @Override @@ -163,7 +163,7 @@ public class AbstractExtensionFinderTest { * Test of {@link AbstractExtensionFinder#findClassNames(String)}. */ @Test - public void testFindClassNames() { + void testFindClassNames() { ExtensionFinder instance = new AbstractExtensionFinder(pluginManager) { @Override @@ -202,7 +202,7 @@ public class AbstractExtensionFinderTest { * Test of {@link org.pf4j.AbstractExtensionFinder#find(java.lang.String)}. */ @Test - public void testFindExtensionWrappersFromPluginId() { + void testFindExtensionWrappersFromPluginId() { // complicate the test to show hot to deal with dynamic Java classes (generated at runtime from sources) PluginWrapper plugin3 = mock(PluginWrapper.class); JavaFileObject object = JavaSources.compile(DefaultExtensionFactoryTest.FailTestExtension); @@ -253,7 +253,7 @@ public class AbstractExtensionFinderTest { } @Test - public void findExtensionAnnotation() { + void findExtensionAnnotation() { List<JavaFileObject> generatedFiles = JavaSources.compileAll(JavaSources.Greeting, JavaSources.WhazzupGreeting); assertEquals(2, generatedFiles.size()); @@ -264,7 +264,7 @@ public class AbstractExtensionFinderTest { } @Test - public void findExtensionAnnotationThatMissing() { + void findExtensionAnnotationThatMissing() { List<JavaFileObject> generatedFiles = JavaSources.compileAll(JavaSources.Greeting, ExtensionAnnotationProcessorTest.SpinnakerExtension_NoExtension, ExtensionAnnotationProcessorTest.WhazzupGreeting_SpinnakerExtension); |