Fix editorControllerTest
This commit is contained in:
parent
909e241c5b
commit
faddeb4201
@ -64,7 +64,7 @@ public class EditorControllerTest extends FxTestTemplate {
|
|||||||
|
|
||||||
private String mockContent = """
|
private String mockContent = """
|
||||||
class HelloWorld {
|
class HelloWorld {
|
||||||
private String message = "Hello world";
|
private String message = \"Hello world\";
|
||||||
|
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
return message;
|
return message;
|
||||||
@ -108,7 +108,7 @@ public class EditorControllerTest extends FxTestTemplate {
|
|||||||
String brokenFilePath = "/doesNotExist.txt";
|
String brokenFilePath = "/doesNotExist.txt";
|
||||||
eventBus.post(new OpenFileEvent(Optional.ofNullable(Paths.get(brokenFilePath))));
|
eventBus.post(new OpenFileEvent(Optional.ofNullable(Paths.get(brokenFilePath))));
|
||||||
|
|
||||||
verify(editor, never()).clear();
|
verify(editor).appendText("");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user