Skip to content

Minor logging change and correction of and-clause in unit test #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2018

Conversation

chrjohn
Copy link
Member

@chrjohn chrjohn commented Feb 8, 2018

No description provided.

@chrjohn chrjohn added this to the QFJ 2.0.1 milestone Feb 8, 2018
@chrjohn chrjohn merged commit 2ec570e into master Feb 9, 2018
@chrjohn chrjohn deleted the minor-minor-unittest-changes branch February 9, 2018 08:59
chrjohn added a commit that referenced this pull request Feb 9, 2018
@@ -198,7 +198,7 @@ public void testLogonWithoutHeartBtInt() throws Exception {
try {
handler.processMessage(mockIoSession, message);
} catch (Exception e) {
fail("No exception should be thrown!");
fail("No exception should be thrown! " + e);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @chrjohn - A little late and a minor point, but there isn't any need to catch an Exception here. If the exception is thrown the unit test will fail and by not catching the exception you will benefit from seeing the full stacktrace.

Cheers!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @alphafoobar , you are of course right.
That happens when you don't think about what you're doing. ;)

Thanks,
Chris.

@chrjohn chrjohn modified the milestones: QFJ 2.0.1, QFJ 2.1.0 Jul 31, 2018
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.

2 participants