1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-30 09:10:44 +02:00

Add test to RipStatusMessageTest (only to raise the code coverage, with no special reason for choosing this class)

This commit is contained in:
Gaboso
2018-05-29 23:42:18 -04:00
parent 6c39dec9d5
commit 8cfbdfbf49

View File

@@ -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());
}
}