Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Issue #16361: Update DefaultLoggerTest.java to verify with InlineConfigParser and logger#17370

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
ElinaZoldnere wants to merge1 commit intocheckstyle:master
base:master
Choose a base branch
Loading
fromElinaZoldnere:16361-DefaultLoggerTest-to-verifyWithInlineConfigParserAndLogger

Conversation

ElinaZoldnere
Copy link
Contributor

It's been a while :)

Issue#16361

  • created a methodverifyWithInlineConfigParserAndLoggerTwoStreams inAbstractModuleTestSupport for loggers with two output streams. One test case inDefaultLoggerTest.java is converted to the new approach as an example with a case of parsing exception logged as error.

I needed to change the defaulthaltOnException value fromtrue tofalse so the exception would be logged instead of bubbling up. Therefore, I use the fullChecker configuration.
The stack trace output is trimmed to its first line.

Copy link
Member

@romaniromani left a comment

Choose a reason for hiding this comment

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

testing exceptional cases by means end-to-end might be challenging.
if you will have problems to make it work, itis ok keep such test methods as is.

We usually allow not end-to-end for testing that exception is thrown.

<!-- Intentionally unparsable files-->
<modulename="BeforeExecutionExclusionFileFilter">
<propertyname="fileNamePattern"
value="defaultlogger[\\/]InputDefaultLoggerTestCtor\.java"/>
Copy link
Member

Choose a reason for hiding this comment

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

we have "non-compiled" folder in resources, if you place here you might not need this Filter

@ElinaZoldnereElinaZoldnere marked this pull request as draftJuly 12, 2025 18:19
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@romaniromaniromani requested changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@ElinaZoldnere@romani

[8]ページ先頭

©2009-2025 Movatter.jp