[
https://issues.apache.org/jira/browse/CODEC-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18059900#comment-18059900
]
Gary D. Gregory commented on CODEC-247:
---------------------------------------
[~fadedblack04]
You break the test, and then the test fails, therefore...?
If {{org.apache.commons.codec.digest.MessageDigestAlgorithms.values()}} returns
an empty array, you get:
{noformat}
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.002 s
<<< FAILURE! -- in org.apache.commons.codec.digest.MessageDigestAlgorithmsTest
[ERROR] org.apache.commons.codec.digest.MessageDigestAlgorithmsTest -- Time
elapsed: 0.002 s <<< FAILURE!
org.opentest4j.AssertionFailedError: One or more entries are missing from the
MessageDigestAlgorithms.values() array
at
org.apache.commons.codec.digest.MessageDigestAlgorithmsTest.checkValues(MessageDigestAlgorithmsTest.java:75)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
{noformat}
As expected.
> MessageDigestAlgorithmsTest does not fail with an empty array
> -------------------------------------------------------------
>
> Key: CODEC-247
> URL: https://issues.apache.org/jira/browse/CODEC-247
> Project: Commons Codec
> Issue Type: Improvement
> Reporter: Oscar Luis Vera Pérez
> Priority: Trivial
>
> The MessageDigestAlgorithmsTest does not fail if
> MessageDigestAlgorithms.values returns an empty array.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)