mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
GUACAMOLE-1623: Merge fix for build against Java 8 (no List.of()).
This commit is contained in:
@@ -24,6 +24,7 @@ import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -60,7 +61,7 @@ public class WindowsUsernameTest {
|
||||
assertEquals("localhost", usernameAndDomain.getDomain());
|
||||
|
||||
// It should not match if there are an invalid number of separators
|
||||
List<String> invalidSeparators = List.of(
|
||||
List<String> invalidSeparators = Arrays.asList(
|
||||
"bob@local@host", "local\\host\\bob",
|
||||
"bob\\local@host", "local@host\\bob");
|
||||
invalidSeparators.stream().forEach(
|
||||
|
Reference in New Issue
Block a user