diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-03-20 14:34:33 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2015-03-20 14:34:33 +0100 |
commit | 70a17dcbeb5d8de095f09a7ce756543deff0165a (patch) | |
tree | 250ffe8faa30a3abc9d83f70b676bc7189e82ed2 | |
parent | 34ccf4df41a30cb586f06eb3b9bc90efc8dd7a2c (diff) | |
download | openpgp-api-70a17dcbeb5d8de095f09a7ce756543deff0165a.tar.gz openpgp-api-70a17dcbeb5d8de095f09a7ce756543deff0165a.tar.bz2 openpgp-api-70a17dcbeb5d8de095f09a7ce756543deff0165a.zip |
Remove test
-rw-r--r-- | src/main/test/org/openintents/openpgp/OpenPgpUtilsTest.java | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/main/test/org/openintents/openpgp/OpenPgpUtilsTest.java b/src/main/test/org/openintents/openpgp/OpenPgpUtilsTest.java deleted file mode 100644 index f115398..0000000 --- a/src/main/test/org/openintents/openpgp/OpenPgpUtilsTest.java +++ /dev/null @@ -1,50 +0,0 @@ -package test.org.openintents.openpgp; - -import org.openintents.openpgp.util.OpenPgpUtils; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertNull; - -import android.support.test.runner.AndroidJUnit4; - -import org.junit.Test; -import org.junit.runner.RunWith; -import org.openintents.openpgp.util.OpenPgpUtils; - -import static junit.framework.Assert.assertEquals; -import static junit.framework.Assert.assertNull; - -@RunWith(AndroidJUnit4.class) -public class OpenPgpUtilsTest { - @Test - public void splitCompleteUserIdShouldReturnAll3Components() throws Exception { - OpenPgpUtils.UserInfo info = OpenPgpUtils.splitUserId("Max Mustermann (this is a comment) <max@example.com>"); - assertEquals("Max Mustermann", info.name); - assertEquals("this is a comment", info.comment); - assertEquals("max@example.com", info.email); - } - - @Test - public void splitUserIdWithAllButCommentShouldReturnNameAndEmail() throws Exception { - OpenPgpUtils.UserInfo info = OpenPgpUtils.splitUserId("Max Mustermann <max@example.com>"); - assertEquals("Max Mustermann", info.name); - assertNull(info.comment); - assertEquals("max@example.com", info.email); - } - - @Test - public void splitUserIdWithAllButEmailShouldReturnNameAndComment() throws Exception { - OpenPgpUtils.UserInfo info = OpenPgpUtils.splitUserId("Max Mustermann (this is a comment)"); - assertEquals(info.name, "Max Mustermann"); - assertEquals(info.comment, "this is a comment"); - assertNull(info.email); - } - - @Test - public void splitUserIdWithOnlyNameShouldReturnNameOnly() throws Exception { - OpenPgpUtils.UserInfo info = OpenPgpUtils.splitUserId("Max Mustermann [this is a nothing]"); - assertEquals("Max Mustermann", info.name); - assertNull(info.comment); - assertNull(info.email); - } -}
\ No newline at end of file |