Merge pull request #630 from cyian-1756/unit-tests
Added base64 unit test
This commit is contained in:
commit
e10bfeaa9f
11
src/test/java/com/rarchives/ripme/tst/Base64Test.java
Normal file
11
src/test/java/com/rarchives/ripme/tst/Base64Test.java
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
package com.rarchives.ripme.tst;
|
||||||
|
|
||||||
|
import junit.framework.TestCase;
|
||||||
|
import com.rarchives.ripme.utils.Base64;
|
||||||
|
|
||||||
|
public class Base64Test extends TestCase {
|
||||||
|
|
||||||
|
public void testDecode() {
|
||||||
|
assertEquals("test", new String(Base64.decode("dGVzdA==")));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user