Fix editorControllerTest
This commit is contained in:
parent
909e241c5b
commit
faddeb4201
|
@ -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("");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue