Fix file name Project: http://git-wip-us.apache.org/repos/asf/commons-crypto/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-crypto/commit/64ad87d0 Tree: http://git-wip-us.apache.org/repos/asf/commons-crypto/tree/64ad87d0 Diff: http://git-wip-us.apache.org/repos/asf/commons-crypto/diff/64ad87d0
Branch: refs/heads/CRYPTO-1.0.0 Commit: 64ad87d016e8fe28bf8a4c51c3d26272e343ce02 Parents: fab4456 Author: Sebb <s...@apache.org> Authored: Sat Jul 9 23:50:24 2016 +0100 Committer: Sebb <s...@apache.org> Committed: Sat Jul 9 23:50:24 2016 +0100 ---------------------------------------------------------------------- .../crypto/random/OpenSslCryptoRandomTest.java | 45 ++++++++++++++++++++ .../crypto/random/OpensslCryptoRandomTest.java | 45 -------------------- 2 files changed, 45 insertions(+), 45 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/64ad87d0/src/test/java/org/apache/commons/crypto/random/OpenSslCryptoRandomTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/crypto/random/OpenSslCryptoRandomTest.java b/src/test/java/org/apache/commons/crypto/random/OpenSslCryptoRandomTest.java new file mode 100644 index 0000000..4784b18 --- /dev/null +++ b/src/test/java/org/apache/commons/crypto/random/OpenSslCryptoRandomTest.java @@ -0,0 +1,45 @@ +/** + * 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.random; + +import java.security.GeneralSecurityException; +import java.util.Properties; + +import org.apache.commons.crypto.Crypto; +import org.junit.Assume; + +import static org.junit.Assert.fail; + +public class OpensslCryptoRandomTest extends AbstractRandomTest { + + @Override + public CryptoRandom getCryptoRandom() throws GeneralSecurityException { + Assume.assumeTrue(Crypto.isNativeCodeLoaded()); + Properties props = new Properties(); + props.setProperty( + CryptoRandomFactory.CLASSES_KEY, + OpenSslCryptoRandom.class.getName()); + CryptoRandom random = CryptoRandomFactory.getCryptoRandom(props); + if (!(random instanceof OpenSslCryptoRandom)) { + fail("The CryptoRandom should be: " + + OpenSslCryptoRandom.class.getName()); + } + return random; + } + +} http://git-wip-us.apache.org/repos/asf/commons-crypto/blob/64ad87d0/src/test/java/org/apache/commons/crypto/random/OpensslCryptoRandomTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/crypto/random/OpensslCryptoRandomTest.java b/src/test/java/org/apache/commons/crypto/random/OpensslCryptoRandomTest.java deleted file mode 100644 index 4784b18..0000000 --- a/src/test/java/org/apache/commons/crypto/random/OpensslCryptoRandomTest.java +++ /dev/null @@ -1,45 +0,0 @@ -/** - * 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.random; - -import java.security.GeneralSecurityException; -import java.util.Properties; - -import org.apache.commons.crypto.Crypto; -import org.junit.Assume; - -import static org.junit.Assert.fail; - -public class OpensslCryptoRandomTest extends AbstractRandomTest { - - @Override - public CryptoRandom getCryptoRandom() throws GeneralSecurityException { - Assume.assumeTrue(Crypto.isNativeCodeLoaded()); - Properties props = new Properties(); - props.setProperty( - CryptoRandomFactory.CLASSES_KEY, - OpenSslCryptoRandom.class.getName()); - CryptoRandom random = CryptoRandomFactory.getCryptoRandom(props); - if (!(random instanceof OpenSslCryptoRandom)) { - fail("The CryptoRandom should be: " - + OpenSslCryptoRandom.class.getName()); - } - return random; - } - -}