diff options
author | Arne Schwabe <arne@rfc2549.org> | 2018-08-06 18:19:41 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2018-08-06 18:19:41 +0200 |
commit | b9ac2b15eac3e5e5f9dc89c948ec8278e2e7c1f9 (patch) | |
tree | 63f371b4ae6555b15f76c5a13ed2e26c192895dc /tlsexternalcertprovider/src/test/java | |
parent | 7b7940186fafcdf4bb15ea8e087b8cf345cd53c8 (diff) |
Implement certificate authentication via external provider
Diffstat (limited to 'tlsexternalcertprovider/src/test/java')
-rw-r--r-- | tlsexternalcertprovider/src/test/java/de/blinkt/externalcertprovider/SignDataTest.java (renamed from tlsexternalcertprovider/src/test/java/de/blinkt/externalcertprovider/ExampleUnitTest.java) | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tlsexternalcertprovider/src/test/java/de/blinkt/externalcertprovider/ExampleUnitTest.java b/tlsexternalcertprovider/src/test/java/de/blinkt/externalcertprovider/SignDataTest.java index 785f56a9..7b4e0764 100644 --- a/tlsexternalcertprovider/src/test/java/de/blinkt/externalcertprovider/ExampleUnitTest.java +++ b/tlsexternalcertprovider/src/test/java/de/blinkt/externalcertprovider/SignDataTest.java @@ -5,8 +5,10 @@ package de.blinkt.externalcertprovider; +import de.blinkt.openvpn.api.ExternalCertificateProvider; import org.junit.Test; +import static junit.framework.Assert.assertEquals; import static org.junit.Assert.*; /** @@ -14,9 +16,10 @@ import static org.junit.Assert.*; * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ -public class ExampleUnitTest { +public class SignDataTest { @Test - public void addition_isCorrect() { - assertEquals(4, 2 + 2); + public void testSignData() throws Exception + { + SimpleSigner.signData(new byte[]{1,2,3,4,5,6,7,8}); } }
\ No newline at end of file |