diff --git a/src/test/java/com/rarchives/ripme/tst/ui/RipStatusMessageTest.java b/src/test/java/com/rarchives/ripme/tst/ui/RipStatusMessageTest.java new file mode 100644 index 00000000..cabe6491 --- /dev/null +++ b/src/test/java/com/rarchives/ripme/tst/ui/RipStatusMessageTest.java @@ -0,0 +1,21 @@ +package com.rarchives.ripme.tst.ui; + +import com.rarchives.ripme.ui.RipStatusMessage; +import junit.framework.Assert; +import junit.framework.TestCase; + +public class RipStatusMessageTest extends TestCase { + + public void testConstructor() { + RipStatusMessage.STATUS loadingResource = RipStatusMessage.STATUS.LOADING_RESOURCE; + String path = "path/to/file"; + String toStringValue = "Loading Resource: " + path; + + RipStatusMessage ripStatusMessage = new RipStatusMessage(loadingResource, path); + + Assert.assertEquals(loadingResource, ripStatusMessage.getStatus()); + Assert.assertEquals(path, ripStatusMessage.getObject()); + Assert.assertEquals(toStringValue, ripStatusMessage.toString()); + } + +} \ No newline at end of file