Skip to content

Commit

Permalink
Reenable tests, fix minor errors in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angsongyee committed Mar 21, 2024
1 parent 4b44a88 commit 825b07e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {
//}

test {
//useJUnitPlatform()
useJUnitPlatform()
finalizedBy jacocoTestReport
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/seedu/address/logic/MailAppTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<Desktop> desktopMock = mockStatic(Desktop.class)) {
desktopMock.when(Desktop::isDesktopSupported).thenReturn(false);

MailApp mailApp = new MailApp(GEORGE);
Expand Down

0 comments on commit 825b07e

Please sign in to comment.