Apache Commons logo Commons Crypto? logo

Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
140 0 0 3 97.857% 2.043

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.002
org.apache.commons.crypto 10 0 0 3 70% 0.287
org.apache.commons.crypto.stream 27 0 0 0 100% 0.48
org.apache.commons.crypto.random 19 0 0 0 100% 0.508
org.apache.commons.crypto.jna 34 0 0 0 100% 0.606
org.apache.commons.crypto.cipher 43 0 0 0 100% 0.149
org.apache.commons.crypto.utils 5 0 0 0 100% 0.009
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.002

org.apache.commons.crypto

Class Tests Errors Failures Skipped Success Rate Time
CryptoTest 4 0 0 0 100% 0.256
NativeCodeLoaderTest 5 0 0 3 40% 0.03
OsInfoTest 1 0 0 0 100% 0.001

org.apache.commons.crypto.stream

Class Tests Errors Failures Skipped Success Rate Time
CbcNoPaddingCipherStreamTest 6 0 0 0 100% 0.045
CtrCryptoStreamTest 7 0 0 0 100% 0.061
PositionedCryptoInputStreamTest 2 0 0 0 100% 0.038
CtrNoPaddingCipherStreamTest 6 0 0 0 100% 0.227
CbcPkcs5PaddingCipherStreamTest 6 0 0 0 100% 0.109

org.apache.commons.crypto.random

Class Tests Errors Failures Skipped Success Rate Time
JavaCryptoRandomTest 2 0 0 0 100% 0.395
OpenSslCryptoRandomTest 2 0 0 0 100% 0.034
CryptoRandomFactoryTest 12 0 0 0 100% 0.014
OsCryptoRandomTest 3 0 0 0 100% 0.065

org.apache.commons.crypto.jna

Class Tests Errors Failures Skipped Success Rate Time
CtrNoPaddingCipherJnaStreamTest 4 0 0 0 100% 0.034
OpenSslJnaCipherTest 11 0 0 0 100% 0.036
CbcNoPaddingCipherJnaStreamTest 4 0 0 0 100% 0.05
OpenSslNativeJnaTest 1 0 0 0 100% 0.051
CtrCryptoJnaStreamTest 4 0 0 0 100% 0.228
OpenSslJnaTest 1 0 0 0 100% 0.001
OpenSslJnaCryptoRandomTest 2 0 0 0 100% 0.137
PositionedCryptoInputStreamJnaTest 3 0 0 0 100% 0.047
CbcPkcs5PaddingCipherJnaStreamTest 4 0 0 0 100% 0.022

org.apache.commons.crypto.cipher

Class Tests Errors Failures Skipped Success Rate Time
CryptoCipherTest 2 0 0 0 100% 0.004
JceCipherTest 11 0 0 0 100% 0.036
OpenSslCipherTest 16 0 0 0 100% 0.053
GcmCipherTest 8 0 0 0 100% 0.034
CryptoCipherFactoryTest 5 0 0 0 100% 0.02
OpenSslCommonModeTest 1 0 0 0 100% 0.002

org.apache.commons.crypto.utils

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

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.041
testRandomBytesMultiThreaded 0.351

OpenSslCryptoRandomTest

testRandomBytes 0
testRandomBytesMultiThreaded 0.032

CtrNoPaddingCipherJnaStreamTest

testExceptions 0.003
testFieldGetters 0.005
testSkip 0.002
testReadWrite 0.021

OpenSslJnaCipherTest

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

CbcNoPaddingCipherJnaStreamTest

testExceptions 0.02
testFieldGetters 0.002
testSkip 0.001
testReadWrite 0.02

OpenSslNativeJnaTest

test(TestReporter) 0.048

CryptoCipherTest

testUpdateAADByteBuffer 0.001
testUpdateAADByteArray 0

EnumTest

testCipher 0.001
testRandom 0.001

CbcNoPaddingCipherStreamTest

testExceptions 0.004
testSkip 0.003
testReadWrite 0.022
testByteBufferRead 0.007
testFieldGetters 0.002
testByteBufferWrite 0.003

CtrCryptoStreamTest

testExceptions 0.004
testSkip 0.003
testReadWrite 0.023
testByteBufferRead 0.013
testFieldGetters 0.004
testByteBufferWrite 0.004
testDecrypt 0.003

CtrCryptoJnaStreamTest

testExceptions 0.203
testFieldGetters 0.002
testSkip 0.003
testReadWrite 0.013

OpenSslJnaTest

testMain 0.001

StreamOutputTest

testGetOut 0.001

OpenSslJnaCryptoRandomTest

testRandomBytes 0.002
testRandomBytesMultiThreaded 0.133

CryptoTest

testLoadingError 0.175
testMain 0.054
testGetComponentName 0.001
testGetComponentVersion 0.001

CryptoRandomFactoryTest

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

ChannelInputTest

testSkipWithSkipBuffer 0.001

NativeCodeLoaderTest

testUnSuccessfulLoad 0
Seems to cause issues with other tests on Linux; disable for now
test 0.002
testCanLoadIfPresent 0
Causes crash on Ubuntu when compiled with Java 17
testNativePresent 0.001
testNativeNotPresent 0
skipped

JceCipherTest

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

UtilsTest

testGetProperties 0.001
testSplitNull 0.001
testSplitOmitEmptyLine 0.001

PositionedCryptoInputStreamTest

doTestJCE 0.026
doTestJNI 0.01

OpenSslCipherTest

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

GcmCipherTest

testGMac 0.005
testGcmTamperedData 0.008
testGcmNistCase2 0.001
testGcmNistCase4 0.001
testGcmNistCase5 0.002
testGcmNistCase6 0.003
testGcmNistCases 0.002
testGMacTamperedData 0.001

CryptoCipherFactoryTest

testDefaultCipher 0.001
testEmptyCipher 0.001
testInvalidTransformation 0.01
testInvalidCipher 0.001
testNoCipher 0.001

OsCryptoRandomTest

testRandomBytes 0.001
testRandomBytesMultiThreaded 0.063
testInvalidRandom 0.001

CtrNoPaddingCipherStreamTest

testExceptions 0.121
testSkip 0.015
testReadWrite 0.055
testByteBufferRead 0.022
testFieldGetters 0.003
testByteBufferWrite 0.006

CbcPkcs5PaddingCipherStreamTest

testExceptions 0.005
testSkip 0.012
testReadWrite 0.06
testByteBufferRead 0.02
testFieldGetters 0.002
testByteBufferWrite 0.004

OsInfoTest

testMain 0.001

PositionedCryptoInputStreamJnaTest

doTestJCE 0.007
doTestJNI 0.01
doTest 0.026

OpenSslCommonModeTest

testUpdateAAD 0.001

CbcPkcs5PaddingCipherJnaStreamTest

testExceptions 0.003
testFieldGetters 0.002
testSkip 0.002
testReadWrite 0.013

Failure Details

[Summary] [Package List] [Test Cases]


testUnSuccessfulLoad
skipped: Seems to cause issues with other tests on Linux; disable for now
testCanLoadIfPresent
skipped: Causes crash on Ubuntu when compiled with Java 17
testNativeNotPresent
skipped: skipped