Boot -> 3, JUnit -> 5, Java -> 17

This commit is contained in:
aboyko
2022-12-07 09:49:03 -05:00
parent ac16151fe6
commit 65a8a15649
129 changed files with 25377 additions and 24895 deletions

View File

@@ -10,17 +10,18 @@
*******************************************************************************/
package org.springframework.ide.vscode.commons.jandex;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNull;
import java.io.File;
import java.nio.file.Path;
import java.util.function.BiConsumer;
import java.util.stream.Stream;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;
import org.springframework.ide.vscode.commons.java.ClasspathData;
import org.springframework.ide.vscode.commons.java.IField;
import org.springframework.ide.vscode.commons.java.IMethod;
@@ -33,7 +34,8 @@ import com.google.common.io.Files;
public class JandexClasspathTest {
@Rule public TemporaryFolder folder = new TemporaryFolder();
@TempDir
File folder;
class TestProject {
String name;
@@ -46,7 +48,7 @@ public class JandexClasspathTest {
this.name = name;
this.root = new File(JandexClasspathTest.class.getResource("/" + name ).toURI());
testClassesFolder = new File(root, "bin");
this.outputFolder = folder.newFolder().getCanonicalFile();
this.outputFolder = folder;
}
void createClass(String fqName) throws Exception {

View File

@@ -10,10 +10,10 @@
*******************************************************************************/
package org.springframework.ide.vscode.commons.jandex;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.when;
@@ -27,7 +27,7 @@ import java.util.concurrent.CompletableFuture;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.junit.Test;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.springframework.ide.vscode.commons.java.IAnnotation;
import org.springframework.ide.vscode.commons.java.IMethod;