Apache Commons logo Commons Crypto? logo

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
105 0 0 2 98.095% 15.702

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
org.apache.commons.crypto 7 0 0 2 71.429% 0.319
org.apache.commons.crypto.stream 18 0 0 0 100% 2.105
org.apache.commons.crypto.random 17 0 0 0 100% 8.892
org.apache.commons.crypto.jna 35 0 0 0 100% 3.967
org.apache.commons.crypto.cipher 24 0 0 0 100% 0.4
org.apache.commons.crypto.utils 4 0 0 0 100% 0.019

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

org.apache.commons.crypto

Class Tests Errors Failures Skipped Success Rate Time
NativeCodeLoaderTest 5 0 0 2 60% 0.071
CryptoTest 2 0 0 0 100% 0.248

org.apache.commons.crypto.stream

Class Tests Errors Failures Skipped Success Rate Time
CtrNoPaddingCipherStreamTest 4 0 0 0 100% 0.227
PositionedCryptoInputStreamTest 2 0 0 0 100% 0.117
CbcNoPaddingCipherStreamTest 4 0 0 0 100% 0.173
CtrCryptoStreamTest 4 0 0 0 100% 0.202
CbcPkcs5PaddingCipherStreamTest 4 0 0 0 100% 1.386

org.apache.commons.crypto.random

Class Tests Errors Failures Skipped Success Rate Time
JavaCryptoRandomTest 2 0 0 0 100% 3.094
OsCryptoRandomTest 3 0 0 0 100% 3.695
CryptoRandomFactoryTest 10 0 0 0 100% 0.017
OpenSslCryptoRandomTest 2 0 0 0 100% 2.086

org.apache.commons.crypto.jna

Class Tests Errors Failures Skipped Success Rate Time
CtrCryptoJnaStreamTest 4 0 0 0 100% 0.27
PositionedCryptoInputStreamJnaTest 3 0 0 0 100% 0.386
OpenSslJnaCipherTest 13 0 0 0 100% 0.194
CbcNoPaddingCipherJnaStreamTest 4 0 0 0 100% 0.291
OpenSslJnaCryptoRandomTest 2 0 0 0 100% 1.709
CtrNoPaddingCipherJnaStreamTest 4 0 0 0 100% 0.231
OpenSslNativeJnaTest 1 0 0 0 100% 0.691
CbcPkcs5PaddingCipherJnaStreamTest 4 0 0 0 100% 0.195

org.apache.commons.crypto.cipher

Class Tests Errors Failures Skipped Success Rate Time
JceCipherTest 6 0 0 0 100% 0.16
OpenSslCipherTest 13 0 0 0 100% 0.202
CryptoCipherFactoryTest 5 0 0 0 100% 0.038

org.apache.commons.crypto.utils

Class Tests Errors Failures Skipped Success Rate Time
UtilsTest 2 0 0 0 100% 0.009
EnumTest 2 0 0 0 100% 0.01

Test Cases

[Summary] [Package List] [Test Cases]

CtrNoPaddingCipherStreamTest

testSkip 0.014
testReadWrite 0.136
testByteBufferRead 0.05
testByteBufferWrite 0.025

NativeCodeLoaderTest

testUnSuccessfulLoad 0
Seems to cause issues with other tests on Linux; disable for now
test 0.001
testCanLoadIfPresent 0.019
testNativePresent 0
testNativeNotPresent 0
skipped

PositionedCryptoInputStreamTest

doTestJCE 0.061
doTestJNI 0.053

JavaCryptoRandomTest

testRandomBytes 0.346
testRandomBytesMultiThreaded 2.744

CtrCryptoJnaStreamTest

testSkip 0.036
testReadWrite 0.156
testByteBufferRead 0.023
testByteBufferWrite 0.029

PositionedCryptoInputStreamJnaTest

doTest 0.09
doTestJCE 0.158
doTestJNI 0.122

JceCipherTest

closeTestRepeat 0
cryptoTest 0.112
closeTestAfterInit 0.001
reInitAfterClose 0.002
reInitTest 0.014
closeTestNoInit 0.002

OpenSslJnaCipherTest

testInvalidMode 0.009
testInvalidAlgorithm 0.007
testInvalidIV 0.009
testUpdateArguments 0.008
testDoFinalArguments 0.008
testInvalidKey 0.008
testInvalidPadding 0.008
closeTestRepeat 0.001
cryptoTest 0.127
closeTestAfterInit 0
reInitAfterClose 0.001
reInitTest 0.001
closeTestNoInit 0

OpenSslCipherTest

testInvalidMode 0
testInvalidAlgorithm 0.023
testInvalidIV 0.01
testUpdateArguments 0.008
testDoFinalArguments 0.011
testInvalidKey 0.009
testInvalidPadding 0.009
closeTestRepeat 0
cryptoTest 0.113
closeTestAfterInit 0
reInitAfterClose 0.001
reInitTest 0.001
closeTestNoInit 0

OsCryptoRandomTest

testInvalidRansom 0.001
testRandomBytes 0.002
testRandomBytesMultiThreaded 3.689

CbcNoPaddingCipherJnaStreamTest

testSkip 0.039
testReadWrite 0.188
testByteBufferRead 0.021
testByteBufferWrite 0.034

OpenSslJnaCryptoRandomTest

testRandomBytes 0.013
testRandomBytesMultiThreaded 1.696

UtilsTest

testSplitNull 0
testSplitOmitEmptyLine 0.002

CryptoRandomFactoryTest

testDefaultRandom 0.001
testEmpty 0
testNull 0
testFailingRandom 0.001
testGetOSRandom 0.001
testInvalidRandom 0.005
testAbstractRandom 0.002
testDummmyRandom 0.001
testFullClassName 0.001
testNoClasses 0

CbcNoPaddingCipherStreamTest

testSkip 0.013
testReadWrite 0.117
testByteBufferRead 0.024
testByteBufferWrite 0.016

CryptoTest

testGetComponentName 0.019
testGetComponentVersion 0

CtrNoPaddingCipherJnaStreamTest

testSkip 0.017
testReadWrite 0.08
testByteBufferRead 0.027
testByteBufferWrite 0.103

CtrCryptoStreamTest

testSkip 0.029
testReadWrite 0.126
testByteBufferRead 0.032
testByteBufferWrite 0.015

OpenSslCryptoRandomTest

testRandomBytes 0.002
testRandomBytesMultiThreaded 2.084

CryptoCipherFactoryTest

testDefaultCipher 0.007
testEmptyCipher 0.001
testInvalidTransformation 0.021
testInvalidCipher 0.003
testNoCipher 0

OpenSslNativeJnaTest

test 0.69

CbcPkcs5PaddingCipherStreamTest

testSkip 1.13
testReadWrite 0.219
testByteBufferRead 0.023
testByteBufferWrite 0.014

CbcPkcs5PaddingCipherJnaStreamTest

testSkip 0.052
testReadWrite 0.107
testByteBufferRead 0.016
testByteBufferWrite 0.019

EnumTest

testCipher 0
testRandom 0.009

Failure Details

[Summary] [Package List] [Test Cases]


testUnSuccessfulLoad
skipped: Seems to cause issues with other tests on Linux; disable for now
testNativeNotPresent
skipped: skipped