diff --git a/build.gradle b/build.gradle index 9a6341607f88..cccee9d23ba7 100644 --- a/build.gradle +++ b/build.gradle @@ -86,6 +86,7 @@ dependencies { implementation group: 'org.openjfx', name: 'javafx-web', version: javafxVersion, classifier: firstOtherPlatform implementation group: 'org.openjfx', name: 'javafx-web', version: javafxVersion, classifier: secondOtherPlatform + implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.8.1' implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.7.0' implementation group: 'com.fasterxml.jackson.datatype', name: 'jackson-datatype-jsr310', version: '2.7.4' diff --git a/src/test/java/seedu/address/ui/GuiUnitTest.java b/src/test/java/seedu/address/ui/GuiUnitTest.java index d163c5748337..d9a03e693996 100644 --- a/src/test/java/seedu/address/ui/GuiUnitTest.java +++ b/src/test/java/seedu/address/ui/GuiUnitTest.java @@ -2,6 +2,7 @@ import java.util.Optional; +import org.apache.commons.lang3.SystemUtils; import org.junit.Rule; import guitests.GuiRobot; @@ -18,6 +19,12 @@ public abstract class GuiUnitTest { protected final GuiRobot guiRobot = new GuiRobot(); + static { + if (SystemUtils.IS_OS_WINDOWS) { + System.load("C:\\Windows\\System32\\WindowsCodecs.dll"); + } + } + /** * Retrieves the {@code query} node owned by the {@code rootNode}. *