Fix compatibility with Java 8

This commit is contained in:
Benjamin Davies 2024-03-21 19:38:05 +13:00
parent e14c8ef0a5
commit 4b5bcd3bca
No known key found for this signature in database
GPG Key ID: 9FFDE0674336C460
6 changed files with 13 additions and 14 deletions

View File

@ -2,7 +2,7 @@ package net.sourceforge.plantuml.cheneer.command;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import java.util.ArrayList;
import org.junit.jupiter.api.Test;
@ -20,7 +20,7 @@ public class CommandAssociateTest {
private final Command<ChenEerDiagram> command = new CommandAssociate();
private final ChenEerDiagram diagram = new ChenEerDiagram(UmlSource.create(List.of(), false), null);
private final ChenEerDiagram diagram = new ChenEerDiagram(UmlSource.create(new ArrayList<>(), false), null);
@Test
void test_parse() {

View File

@ -2,7 +2,7 @@ package net.sourceforge.plantuml.cheneer.command;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import java.util.ArrayList;
import org.junit.jupiter.api.Test;
@ -21,7 +21,7 @@ public class CommandCreateAttributeTest {
private final Command<ChenEerDiagram> command = new CommandCreateAttribute();
private final ChenEerDiagram diagram = new ChenEerDiagram(UmlSource.create(List.of(), false), null);
private final ChenEerDiagram diagram = new ChenEerDiagram(UmlSource.create(new ArrayList<>(), false), null);
@Test
void test_parse() {

View File

@ -2,7 +2,7 @@ package net.sourceforge.plantuml.cheneer.command;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import java.util.ArrayList;
import org.junit.jupiter.api.Test;
@ -21,7 +21,7 @@ public class CommandCreateEntityTest {
private final Command<ChenEerDiagram> command = new CommandCreateEntity();
private final ChenEerDiagram diagram = new ChenEerDiagram(UmlSource.create(List.of(), false), null);
private final ChenEerDiagram diagram = new ChenEerDiagram(UmlSource.create(new ArrayList<>(), false), null);
@Test
void test_parseEntity() {

View File

@ -2,7 +2,7 @@ package net.sourceforge.plantuml.cheneer.command;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import java.util.ArrayList;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@ -25,7 +25,7 @@ public class CommandEndGroupTest {
private final Command<ChenEerDiagram> command = new CommandEndGroup();
@Spy
private final ChenEerDiagram diagram = new ChenEerDiagram(UmlSource.create(List.of(), false), null);
private final ChenEerDiagram diagram = new ChenEerDiagram(UmlSource.create(new ArrayList<>(), false), null);
@Test
void test_parse() {

View File

@ -2,7 +2,7 @@ package net.sourceforge.plantuml.cheneer.command;
import static org.assertj.core.api.Assertions.assertThat;
import net.sourceforge.plantuml.core.UmlSource;
import java.util.ArrayList;
import org.junit.jupiter.api.Test;
@ -10,19 +10,18 @@ import net.sourceforge.plantuml.abel.Link;
import net.sourceforge.plantuml.cheneer.ChenEerDiagram;
import net.sourceforge.plantuml.command.Command;
import net.sourceforge.plantuml.command.CommandExecutionResult;
import net.sourceforge.plantuml.core.UmlSource;
import net.sourceforge.plantuml.decoration.LinkMiddleDecor;
import net.sourceforge.plantuml.klimt.color.NoSuchColorException;
import net.sourceforge.plantuml.regex.IRegex;
import net.sourceforge.plantuml.regex.RegexResult;
import net.sourceforge.plantuml.utils.BlocLines;
import java.util.List;
public class CommandMultiSubclassTest {
private final Command<ChenEerDiagram> command = new CommandMultiSubclass();
private final ChenEerDiagram diagram = new ChenEerDiagram(UmlSource.create(List.of(), false), null);
private final ChenEerDiagram diagram = new ChenEerDiagram(UmlSource.create(new ArrayList<>(), false), null);
@Test
void test_parse() {

View File

@ -2,7 +2,7 @@ package net.sourceforge.plantuml.cheneer.command;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import java.util.ArrayList;
import org.junit.jupiter.api.Test;
@ -21,7 +21,7 @@ public class CommandSimpleSubclassTest {
private final Command<ChenEerDiagram> command = new CommandSimpleSubclass();
private final ChenEerDiagram diagram = new ChenEerDiagram(UmlSource.create(List.of(), false), null);
private final ChenEerDiagram diagram = new ChenEerDiagram(UmlSource.create(new ArrayList<>(), false), null);
@Test
void test_parseSubset() {