Fix editorControllerTest

This commit is contained in:
Oystein Kristoffer Tveit 2021-04-26 17:32:17 +02:00
parent 909e241c5b
commit faddeb4201
1 changed files with 2 additions and 2 deletions

View File

@ -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("");
} }
} }