From ff9ecea99755fdd941a12168d110af140819ddd4 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Mon, 28 May 2018 19:07:14 -0400 Subject: [PATCH 1/2] Added base64 unit test --- src/test/java/com/rarchives/ripme/tst/Base64Test.java | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/test/java/com/rarchives/ripme/tst/Base64Test.java diff --git a/src/test/java/com/rarchives/ripme/tst/Base64Test.java b/src/test/java/com/rarchives/ripme/tst/Base64Test.java new file mode 100644 index 00000000..123c56b2 --- /dev/null +++ b/src/test/java/com/rarchives/ripme/tst/Base64Test.java @@ -0,0 +1,4 @@ +package com.rarchives.ripme.tst; + +public class Base64Test { +} From 22581474fd21e4b82f8afa3293864360ef5f7938 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Tue, 29 May 2018 20:47:07 -0400 Subject: [PATCH 2/2] Added base64 unit test --- src/test/java/com/rarchives/ripme/tst/Base64Test.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/rarchives/ripme/tst/Base64Test.java b/src/test/java/com/rarchives/ripme/tst/Base64Test.java index 123c56b2..ffe2f3f8 100644 --- a/src/test/java/com/rarchives/ripme/tst/Base64Test.java +++ b/src/test/java/com/rarchives/ripme/tst/Base64Test.java @@ -1,4 +1,11 @@ package com.rarchives.ripme.tst; -public class Base64Test { +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=="))); + } }