Fix editorControllerTest

This commit is contained in:
Oystein Kristoffer Tveit 2021-04-26 17:32:17 +02:00
parent 909e241c5b
commit faddeb4201

View File

@ -64,7 +64,7 @@ public class EditorControllerTest extends FxTestTemplate {
private String mockContent = """
class HelloWorld {
private String message = "Hello world";
private String message = \"Hello world\";
public String getMessage() {
return message;
@ -108,7 +108,7 @@ public class EditorControllerTest extends FxTestTemplate {
String brokenFilePath = "/doesNotExist.txt";
eventBus.post(new OpenFileEvent(Optional.ofNullable(Paths.get(brokenFilePath))));
verify(editor, never()).clear();
verify(editor).appendText("");
}
}