From 825b07e174b1917024a671d56ffac6c6eda67764 Mon Sep 17 00:00:00 2001 From: angsongyee Date: Thu, 21 Mar 2024 23:03:31 +0800 Subject: [PATCH] Reenable tests, fix minor errors in tests --- build.gradle | 2 +- src/test/java/seedu/address/logic/MailAppTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 576b42dafbd..ceff73a9904 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,7 @@ repositories { //} test { - //useJUnitPlatform() + useJUnitPlatform() finalizedBy jacocoTestReport } diff --git a/src/test/java/seedu/address/logic/MailAppTest.java b/src/test/java/seedu/address/logic/MailAppTest.java index 7ed8085f28b..1add34041e0 100644 --- a/src/test/java/seedu/address/logic/MailAppTest.java +++ b/src/test/java/seedu/address/logic/MailAppTest.java @@ -24,7 +24,7 @@ public void handleEmailClicked_validEmail_opensMailApp() { @Test public void handleEmailClicked_noDesktopMailApp_throwsException() { // Create a mock object for the Desktop class - try (MockedStatic desktopMock = mockStatic(Desktop.class)) { + try (MockedStatic desktopMock = mockStatic(Desktop.class)) { desktopMock.when(Desktop::isDesktopSupported).thenReturn(false); MailApp mailApp = new MailApp(GEORGE);