From faddeb42014aee3857f263fbc3723c63758a300d Mon Sep 17 00:00:00 2001 From: h7x4 Date: Mon, 26 Apr 2021 17:32:17 +0200 Subject: [PATCH] Fix editorControllerTest --- src/test/java/app/controllers/EditorControllerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/app/controllers/EditorControllerTest.java b/src/test/java/app/controllers/EditorControllerTest.java index 63ea51c..b959d72 100644 --- a/src/test/java/app/controllers/EditorControllerTest.java +++ b/src/test/java/app/controllers/EditorControllerTest.java @@ -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(""); } }