Skip to content

CODEC-285 Better StringEncoderAbstractTest testEncodeNull#41

Merged
garydgregory merged 4 commits into
apache:masterfrom
nhojpatrick:CODEC-285_StringEncoderAbstractTest_testEncodeNull
Feb 17, 2022
Merged

CODEC-285 Better StringEncoderAbstractTest testEncodeNull#41
garydgregory merged 4 commits into
apache:masterfrom
nhojpatrick:CODEC-285_StringEncoderAbstractTest_testEncodeNull

Conversation

@nhojpatrick

Copy link
Copy Markdown
Contributor

Follow up for PR #39

From experience people write tests that don't check exceptions correctly, either they are not thrown, or a different than expected line throws that exception, or it's the wrong exception, or wrong message.

This test doesn't ever throw the exception listed, so why is it catching and ignoring if thrown???

@nhojpatrick nhojpatrick force-pushed the CODEC-285_StringEncoderAbstractTest_testEncodeNull branch from 4d09f50 to 19c6d71 Compare March 3, 2020 20:25
@coveralls

coveralls commented Mar 3, 2020

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 93.976% when pulling b5f0b0f on nhojpatrick:CODEC-285_StringEncoderAbstractTest_testEncodeNull into e87ac43 on apache:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 93.84% when pulling 19c6d71 on nhojpatrick:CODEC-285_StringEncoderAbstractTest_testEncodeNull into 126f904 on apache:master.

@nhojpatrick

Copy link
Copy Markdown
Contributor Author

If easier I can collapse these into the CODEC-285 PR

@nhojpatrick nhojpatrick changed the title Codec 285 string encoder abstract test test encode null CODEC-285 string encoder abstract test test encode null Mar 4, 2020
@nhojpatrick nhojpatrick changed the title CODEC-285 string encoder abstract test test encode null CODEC-285 StringEncoderAbstractTest testEncodeNull Mar 4, 2020
@nhojpatrick nhojpatrick force-pushed the CODEC-285_StringEncoderAbstractTest_testEncodeNull branch from 19c6d71 to b5f0b0f Compare August 15, 2020 10:54
@nhojpatrick nhojpatrick force-pushed the CODEC-285_StringEncoderAbstractTest_testEncodeNull branch from b5f0b0f to 034ccdf Compare February 13, 2022 22:25
@nhojpatrick nhojpatrick force-pushed the CODEC-285_StringEncoderAbstractTest_testEncodeNull branch from 034ccdf to a5fcecf Compare February 13, 2022 22:29
@garydgregory garydgregory changed the title CODEC-285 StringEncoderAbstractTest testEncodeNull CODEC-285 Better StringEncoderAbstractTest testEncodeNull Feb 17, 2022
@garydgregory garydgregory merged commit 5b411b6 into apache:master Feb 17, 2022
@nhojpatrick nhojpatrick deleted the CODEC-285_StringEncoderAbstractTest_testEncodeNull branch February 19, 2022 23:19
omosteven pushed a commit to omosteven/commons-codec-lab-work that referenced this pull request Jan 8, 2025
* CODEC-284 update to hamcrest v2.2

* CODEC-285 update to junit v5.6.0

* CODEC-285 update to junit v5.8.2 via junit-bom

* StringEncoderAbstractTest.testEncodeNull no test actually throw EncoderException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants