-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
src/test.bach/test/java/test/bach/workflow/WorkflowTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package test.bach.workflow; | ||
|
||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Nested; | ||
import org.junit.jupiter.params.ParameterizedTest; | ||
import org.junit.jupiter.params.provider.ValueSource; | ||
import run.bach.workflow.Structure.Launcher; | ||
|
||
class WorkflowTests { | ||
@Nested | ||
class StructureTests { | ||
@Nested | ||
class LauncherTests { | ||
@ParameterizedTest | ||
@ValueSource(strings = {"", "a", "=", "a=", "=a", "a=/", "a=a/", "a=/a"}) | ||
void illegalArgumentThrowsIllegalArgumentException(String s) { | ||
Assertions.assertThrows(IllegalArgumentException.class, () -> Launcher.of(s)); | ||
} | ||
} | ||
} | ||
} |