We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2986e7c commit f33785bCopy full SHA for f33785b
src/test/java/com/structurizr/cli/AbstractCommandTests.java
@@ -2,17 +2,21 @@
2
3
import org.junit.jupiter.api.Test;
4
5
+import java.io.File;
6
+
7
import static org.junit.jupiter.api.Assertions.*;
8
9
public class AbstractCommandTests {
10
11
@Test
12
public void loadWorkspace_ThrowsAnException_WhenTheWorkspacePathIsADirectory() {
13
+ File file = new File("src/test/dsl");
14
try {
- new ValidateCommand().loadWorkspace("src/test/dsl");
15
16
+ new ValidateCommand().loadWorkspace(file.getAbsolutePath());
17
fail();
18
} catch (Exception e) {
- assertTrue(e.getMessage().endsWith("/src/test/dsl is not a JSON or DSL file"));
19
+ assertTrue(e.getMessage().endsWith(file.getAbsolutePath() + " is not a JSON or DSL file"));
20
}
21
22
0 commit comments