Apache Commons logo Commons Crypto? logo

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
143 0 0 3 97.902% 1.948

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.stream.output 1 0 0 0 100% 0.011
org.apache.commons.crypto 9 0 0 3 66.667% 0.324
org.apache.commons.crypto.stream 27 0 0 0 100% 0.57
org.apache.commons.crypto.random 19 0 0 0 100% 0.459
org.apache.commons.crypto.jna 41 0 0 0 100% 0.521
org.apache.commons.crypto.utils 5 0 0 0 100% 0.005
org.apache.commons.crypto.cipher 40 0 0 0 100% 0.056
org.apache.commons.crypto.stream.input 1 0 0 0 100% 0.002

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

org.apache.commons.crypto.stream.output

Class Tests Errors Failures Skipped Success Rate Time
StreamOutputTest 1 0 0 0 100% 0.011

org.apache.commons.crypto

Class Tests Errors Failures Skipped Success Rate Time
CryptoTest 4 0 0 1 75% 0.251
NativeCodeLoaderTest 5 0 0 2 60% 0.073

org.apache.commons.crypto.stream

Class Tests Errors Failures Skipped Success Rate Time
CbcNoPaddingCipherStreamTest 6 0 0 0 100% 0.067
CtrCryptoStreamTest 7 0 0 0 100% 0.089
PositionedCryptoInputStreamTest 2 0 0 0 100% 0.124
CtrNoPaddingCipherStreamTest 6 0 0 0 100% 0.194
CbcPkcs5PaddingCipherStreamTest 6 0 0 0 100% 0.096

org.apache.commons.crypto.random

Class Tests Errors Failures Skipped Success Rate Time
JavaCryptoRandomTest 2 0 0 0 100% 0.378
OpenSslCryptoRandomTest 2 0 0 0 100% 0.024
CryptoRandomFactoryTest 12 0 0 0 100% 0.01
OsCryptoRandomTest 3 0 0 0 100% 0.047

org.apache.commons.crypto.jna

Class Tests Errors Failures Skipped Success Rate Time
CtrNoPaddingCipherJnaStreamTest 6 0 0 0 100% 0.069
OpenSslJnaCipherTest 11 0 0 0 100% 0.011
CbcNoPaddingCipherJnaStreamTest 6 0 0 0 100% 0.027
OpenSslNativeJnaTest 1 0 0 0 100% 0.001
CtrCryptoJnaStreamTest 6 0 0 0 100% 0.21
OpenSslJnaCryptoRandomTest 2 0 0 0 100% 0.079
PositionedCryptoInputStreamJnaTest 3 0 0 0 100% 0.083
CbcPkcs5PaddingCipherJnaStreamTest 6 0 0 0 100% 0.041

org.apache.commons.crypto.utils

Class Tests Errors Failures Skipped Success Rate Time
EnumTest 2 0 0 0 100% 0.005
UtilsTest 3 0 0 0 100% 0

org.apache.commons.crypto.cipher

Class Tests Errors Failures Skipped Success Rate Time
JceCipherTest 11 0 0 0 100% 0.025
OpenSslCipherTest 16 0 0 0 100% 0.011
GcmCipherTest 8 0 0 0 100% 0.016
CryptoCipherFactoryTest 5 0 0 0 100% 0.004

org.apache.commons.crypto.stream.input

Class Tests Errors Failures Skipped Success Rate Time
ChannelInputTest 1 0 0 0 100% 0.002

Test Cases

[Summary] [Package List] [Test Cases]

JavaCryptoRandomTest

testRandomBytes 0.014
testRandomBytesMultiThreaded 0.364

OpenSslCryptoRandomTest

testRandomBytes 0
testRandomBytesMultiThreaded 0.024

CtrNoPaddingCipherJnaStreamTest

testSkip 0.003
testReadWrite 0.052
testByteBufferRead 0.003
testByteBufferWrite 0.003
testExceptions 0.002
testFieldGetters 0.002

OpenSslJnaCipherTest

closeTestRepeat 0
cryptoTest 0.006
testInvalidIV 0.001
testInvalidTransform 0
closeTestAfterInit 0
testInvalidIVClass 0
testNullTransform 0.001
reInitAfterClose 0
reInitTest 0.001
testInvalidKey 0
closeTestNoInit 0.001

CbcNoPaddingCipherJnaStreamTest

testSkip 0.001
testReadWrite 0.017
testByteBufferRead 0.002
testByteBufferWrite 0.001
testExceptions 0.002
testFieldGetters 0.002

OpenSslNativeJnaTest

test 0

EnumTest

testCipher 0
testRandom 0.005

CbcNoPaddingCipherStreamTest

testExceptions 0.007
testSkip 0.004
testReadWrite 0.041
testByteBufferRead 0.005
testFieldGetters 0.003
testByteBufferWrite 0.004

CtrCryptoStreamTest

testDecrypt 0.004
testExceptions 0.005
testSkip 0.005
testReadWrite 0.039
testByteBufferRead 0.014
testFieldGetters 0.003
testByteBufferWrite 0.006

CtrCryptoJnaStreamTest

testSkip 0.172
testReadWrite 0.02
testByteBufferRead 0.006
testByteBufferWrite 0.003
testExceptions 0.004
testFieldGetters 0.002

StreamOutputTest

testGetOut 0.002

OpenSslJnaCryptoRandomTest

testRandomBytes 0.002
testRandomBytesMultiThreaded 0.076

CryptoTest

testLoadingError 0.199
testMain 0
Mac64 failure with OpenSSL 1.1.1g
testGetComponentName 0.002
testGetComponentVersion 0

CryptoRandomFactoryTest

testDefaultRandom 0
testDefaultRandomClass 0
testEmpty 0
testNull 0.001
testFailingRandom 0.003
testGetOSRandom 0.002
testInvalidRandom 0
testAbstractRandom 0.002
testDummmyRandom 0.001
testInvalidRandomClass 0
testFullClassName 0
testNoClasses 0

ChannelInputTest

testSkipWithSkipBuffer 0.001

NativeCodeLoaderTest

testUnSuccessfulLoad 0
Seems to cause issues with other tests on Linux; disable for now
test 0.001
testCanLoadIfPresent 0.068
testNativePresent 0.001
testNativeNotPresent 0
got: <false>, expected: is <true>

JceCipherTest

closeTestRepeat 0.002
cryptoTest 0.016
testInvalidIV 0.001
testInvalidTransform 0.001
closeTestAfterInit 0
testInvalidIVClass 0.001
testNullTransform 0
reInitAfterClose 0
reInitTest 0
testInvalidKey 0.001
closeTestNoInit 0

UtilsTest

testGetProperties 0
testSplitNull 0
testSplitOmitEmptyLine 0

PositionedCryptoInputStreamTest

doTestJCE 0.099
doTestJNI 0.021

OpenSslCipherTest

testInvalidMode 0.001
testInvalidIV 0.001
testCipherLifecycle 0
testUpdateArguments 0
testInvalidIVClass 0
testDoFinalArguments 0.001
testInvalidKey 0
testInvalidPadding 0
closeTestRepeat 0
cryptoTest 0.005
testInvalidTransform 0
closeTestAfterInit 0
testNullTransform 0.001
reInitAfterClose 0
reInitTest 0
closeTestNoInit 0

GcmCipherTest

testGMac 0.005
testGcmTamperedData 0.009
testGcmNistCase2 0
testGcmNistCase4 0.001
testGcmNistCase5 0
testGcmNistCase6 0
testGcmNistCases 0.001
testGMacTamperedData 0

CryptoCipherFactoryTest

testDefaultCipher 0
testEmptyCipher 0
testInvalidTransformation 0.002
testInvalidCipher 0.001
testNoCipher 0

OsCryptoRandomTest

testInvalidRandom 0
testRandomBytes 0.001
testRandomBytesMultiThreaded 0.045

CtrNoPaddingCipherStreamTest

testExceptions 0.108
testSkip 0.01
testReadWrite 0.051
testByteBufferRead 0.015
testFieldGetters 0.004
testByteBufferWrite 0.006

CbcPkcs5PaddingCipherStreamTest

testExceptions 0.006
testSkip 0.01
testReadWrite 0.053
testByteBufferRead 0.014
testFieldGetters 0.003
testByteBufferWrite 0.006

PositionedCryptoInputStreamJnaTest

doTest 0.022
doTestJCE 0.041
doTestJNI 0.018

CbcPkcs5PaddingCipherJnaStreamTest

testSkip 0.003
testReadWrite 0.026
testByteBufferRead 0.003
testByteBufferWrite 0.002
testExceptions 0.002
testFieldGetters 0.002

Failure Details

[Summary] [Package List] [Test Cases]


testMain
skipped: Mac64 failure with OpenSSL 1.1.1g
testUnSuccessfulLoad
skipped: Seems to cause issues with other tests on Linux; disable for now
testNativeNotPresent
skipped: got: <false>, expected: is <true>