mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-29 16:11:03 +00:00
Reformat
This commit is contained in:
@@ -42,18 +42,7 @@ public class DataSourceIdTest {
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
@ValueSource(
|
||||
strings = {
|
||||
"abc",
|
||||
"abc:",
|
||||
"ab::c",
|
||||
"::abc",
|
||||
" ab",
|
||||
"::::",
|
||||
"",
|
||||
" "
|
||||
}
|
||||
)
|
||||
@ValueSource(strings = {"abc", "abc:", "ab::c", "::abc", " ab", "::::", "", " "})
|
||||
public void testFromStringInvalidParameters(String arg) {
|
||||
Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||
DataSourceId.fromString(arg);
|
||||
|
||||
@@ -22,13 +22,7 @@ public class DataSourceReferenceTest {
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
@ValueSource(
|
||||
strings = {
|
||||
"abc:",
|
||||
"ab::c",
|
||||
"::abc"
|
||||
}
|
||||
)
|
||||
@ValueSource(strings = {"abc:", "ab::c", "::abc"})
|
||||
public void parseInvalidParameters(String arg) {
|
||||
Assertions.assertThrows(IllegalArgumentException.class, () -> {
|
||||
DataSourceReference.parse(arg);
|
||||
|
||||
Reference in New Issue
Block a user