You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2016/07/01 15:26:59 UTC
commons-crypto git commit: Move JNA test to own folder
Repository: commons-crypto
Updated Branches:
refs/heads/master 000010af8 -> acb1a15a8
Move JNA test to own folder
Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/acb1a15a
Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/acb1a15a
Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/acb1a15a
Branch: refs/heads/master
Commit: acb1a15a8c2176396b4acf39d4068f98da679ff9
Parents: 000010a
Author: Sebb <se...@apache.org>
Authored: Fri Jul 1 16:26:54 2016 +0100
Committer: Sebb <se...@apache.org>
Committed: Fri Jul 1 16:26:54 2016 +0100
----------------------------------------------------------------------
.../jna/PositionedCryptoInputStreamJnaTest.java | 33 ++++++++++++++++++++
.../stream/PositionedCryptoInputStreamTest.java | 3 +-
2 files changed, 34 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/acb1a15a/src/test/java/org/apache/commons/crypto/jna/PositionedCryptoInputStreamJnaTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/crypto/jna/PositionedCryptoInputStreamJnaTest.java b/src/test/java/org/apache/commons/crypto/jna/PositionedCryptoInputStreamJnaTest.java
new file mode 100644
index 0000000..f094b5b
--- /dev/null
+++ b/src/test/java/org/apache/commons/crypto/jna/PositionedCryptoInputStreamJnaTest.java
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.apache.commons.crypto.jna;
+
+import org.apache.commons.crypto.stream.PositionedCryptoInputStreamTest;
+import org.junit.Test;
+
+/**
+ *
+ */
+public class PositionedCryptoInputStreamJnaTest extends PositionedCryptoInputStreamTest {
+
+ @Test
+ public void doTest() throws Exception {
+ testCipher(OpenSslJnaCipher.class.getName());
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/acb1a15a/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java b/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
index 714b1fb..5ffef00 100644
--- a/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
+++ b/src/test/java/org/apache/commons/crypto/stream/PositionedCryptoInputStreamTest.java
@@ -94,10 +94,9 @@ public class PositionedCryptoInputStreamTest {
public void doTest() throws Exception {
testCipher(AbstractCipherTest.JCE_CIPHER_CLASSNAME);
testCipher(AbstractCipherTest.OPENSSL_CIPHER_CLASSNAME);
- testCipher(AbstractCipherTest.OPENSSLJNA_CIPHER_CLASSNAME);
}
- private void testCipher(String cipherClass) throws Exception {
+ protected void testCipher(String cipherClass) throws Exception {
doPositionedReadTests(cipherClass);
doReadFullyTests(cipherClass);
doSeekTests(cipherClass);