]> source.dussan.org Git - pf4j.git/commitdiff
Fix deprecated class
authorDecebal Suiu <decebal.suiu@gmail.com>
Wed, 13 Mar 2019 20:37:05 +0000 (22:37 +0200)
committerDecebal Suiu <decebal.suiu@gmail.com>
Wed, 13 Mar 2019 20:37:05 +0000 (22:37 +0200)
pf4j/src/test/java/org/pf4j/processor/ServiceProviderExtensionStorageTest.java

index 2c450a0f9d9d4d6b2e3fd944baec09a1fc4f847c..d15208151724d29351991ae0e05198f83776e81f 100644 (file)
@@ -23,12 +23,16 @@ import javax.tools.FileObject;
 import javax.tools.StandardLocation;
 import java.io.IOException;
 import java.io.StringReader;
-import java.util.*;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
 
 import static org.hamcrest.core.Is.is;
-import static org.junit.Assert.*;
+import static org.junit.Assert.assertThat;
+import static org.mockito.ArgumentMatchers.any;
 import static org.mockito.BDDMockito.given;
-import static org.mockito.Matchers.any;
 import static org.mockito.Mockito.mock;
 
 /**
@@ -46,7 +50,6 @@ public class ServiceProviderExtensionStorageTest {
         assertThat(entries.contains("World"), is(true));
     }
 
-
     @Test
     public void ensureReadingExtensionsProducesCorrectListOfExtensions() {
         final StringReader file = new StringReader("#hello\n    World");
@@ -56,6 +59,7 @@ public class ServiceProviderExtensionStorageTest {
 
         given(processor.getExtensions()).willReturn(extensions);
         ServiceProviderExtensionStorage extensionStorage = new ServiceProviderExtensionStorage(processor) {
+
             @Override
             protected Filer getFiler() {
                 try {
@@ -72,6 +76,7 @@ public class ServiceProviderExtensionStorageTest {
                     throw new IllegalStateException("Shouldn't have gotten here");
                 }
             }
+
         };
 
         Map<String, Set<String>> read = extensionStorage.read();