mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-22 04:55:10 +00:00
Fix compatibility with Java 8
This commit is contained in:
parent
e14c8ef0a5
commit
4b5bcd3bca
@ -2,7 +2,7 @@ package net.sourceforge.plantuml.cheneer.command;
|
|||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
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.Test;
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ public class CommandAssociateTest {
|
|||||||
|
|
||||||
private final Command<ChenEerDiagram> command = new CommandAssociate();
|
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
|
@Test
|
||||||
void test_parse() {
|
void test_parse() {
|
||||||
|
@ -2,7 +2,7 @@ package net.sourceforge.plantuml.cheneer.command;
|
|||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
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.Test;
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ public class CommandCreateAttributeTest {
|
|||||||
|
|
||||||
private final Command<ChenEerDiagram> command = new CommandCreateAttribute();
|
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
|
@Test
|
||||||
void test_parse() {
|
void test_parse() {
|
||||||
|
@ -2,7 +2,7 @@ package net.sourceforge.plantuml.cheneer.command;
|
|||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
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.Test;
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ public class CommandCreateEntityTest {
|
|||||||
|
|
||||||
private final Command<ChenEerDiagram> command = new CommandCreateEntity();
|
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
|
@Test
|
||||||
void test_parseEntity() {
|
void test_parseEntity() {
|
||||||
|
@ -2,7 +2,7 @@ package net.sourceforge.plantuml.cheneer.command;
|
|||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
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.Test;
|
||||||
import org.junit.jupiter.api.extension.ExtendWith;
|
import org.junit.jupiter.api.extension.ExtendWith;
|
||||||
@ -25,7 +25,7 @@ public class CommandEndGroupTest {
|
|||||||
private final Command<ChenEerDiagram> command = new CommandEndGroup();
|
private final Command<ChenEerDiagram> command = new CommandEndGroup();
|
||||||
|
|
||||||
@Spy
|
@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
|
@Test
|
||||||
void test_parse() {
|
void test_parse() {
|
||||||
|
@ -2,7 +2,7 @@ package net.sourceforge.plantuml.cheneer.command;
|
|||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
import static org.assertj.core.api.Assertions.assertThat;
|
||||||
|
|
||||||
import net.sourceforge.plantuml.core.UmlSource;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
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.cheneer.ChenEerDiagram;
|
||||||
import net.sourceforge.plantuml.command.Command;
|
import net.sourceforge.plantuml.command.Command;
|
||||||
import net.sourceforge.plantuml.command.CommandExecutionResult;
|
import net.sourceforge.plantuml.command.CommandExecutionResult;
|
||||||
|
import net.sourceforge.plantuml.core.UmlSource;
|
||||||
import net.sourceforge.plantuml.decoration.LinkMiddleDecor;
|
import net.sourceforge.plantuml.decoration.LinkMiddleDecor;
|
||||||
import net.sourceforge.plantuml.klimt.color.NoSuchColorException;
|
import net.sourceforge.plantuml.klimt.color.NoSuchColorException;
|
||||||
import net.sourceforge.plantuml.regex.IRegex;
|
import net.sourceforge.plantuml.regex.IRegex;
|
||||||
import net.sourceforge.plantuml.regex.RegexResult;
|
import net.sourceforge.plantuml.regex.RegexResult;
|
||||||
import net.sourceforge.plantuml.utils.BlocLines;
|
import net.sourceforge.plantuml.utils.BlocLines;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
public class CommandMultiSubclassTest {
|
public class CommandMultiSubclassTest {
|
||||||
|
|
||||||
private final Command<ChenEerDiagram> command = new CommandMultiSubclass();
|
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
|
@Test
|
||||||
void test_parse() {
|
void test_parse() {
|
||||||
|
@ -2,7 +2,7 @@ package net.sourceforge.plantuml.cheneer.command;
|
|||||||
|
|
||||||
import static org.assertj.core.api.Assertions.assertThat;
|
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.Test;
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ public class CommandSimpleSubclassTest {
|
|||||||
|
|
||||||
private final Command<ChenEerDiagram> command = new CommandSimpleSubclass();
|
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
|
@Test
|
||||||
void test_parseSubset() {
|
void test_parseSubset() {
|
||||||
|
Loading…
Reference in New Issue
Block a user