Skip to content
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

test: add tests for RollingFileAppender test #280

Closed
wants to merge 2 commits into from
Closed

test: add tests for RollingFileAppender test #280

wants to merge 2 commits into from

Conversation

ccmywish
Copy link

The first commit

Add REAL RollingFileAppender test for the two overloaded functions, the original test is just some getter setter tests, which are really useless.

This is just a part of RollingFileAppender test, I will supplement more later.

The second commit

There's a wrong assertion, it shouldn't exist by design. It hinders the unit test. Fix it to make test pass.

add tests for two overloaded setDatePattern() and it will test
internal computeRollOverTime()

Log: add RollingFileAppender tests for two constructors setDatePattern()
the Weekly and Monthly Rollover will change its date, it's different
with 'now' by design. The original assertion didn't notice this. This
fix make unit test pass.

Log: remove wrong assertion in RollingFileAppender
@deepin-bot
Copy link
Contributor

deepin-bot bot commented Feb 20, 2023

Doc Check bot
🟢 Document Coverage Check Passed!

@asterwyx
Copy link
Contributor

Please resolve all conflicts, and better check whether we have accepted your advice.

@ccmywish
Copy link
Author

Please resolve all conflicts, and better check whether we have accepted your advice.

这个提交已经过去半年了,有什么问题也应该在当时解决。不可能再去重新搭建环境,测试,解决冲突,没有考虑的必要了。

@ccmywish ccmywish closed this Sep 20, 2023
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