-
-
Notifications
You must be signed in to change notification settings - Fork 101
Add tests for TopHelperMessageListener #661
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff. Just some minor things.
Even better would be to test more of the code though, like a full method.
But thats also better than nothing 👍
...ation/src/main/java/org/togetherjava/tjbot/commands/tophelper/TopHelpersMessageListener.java
Outdated
Show resolved
Hide resolved
application/src/test/java/org/togetherjava/tjbot/commands/tophelper/TopHelperAntiCheatTest.java
Outdated
Show resolved
Hide resolved
application/src/test/java/org/togetherjava/tjbot/commands/tophelper/TopHelperAntiCheatTest.java
Outdated
Show resolved
Hide resolved
application/src/test/java/org/togetherjava/tjbot/commands/tophelper/TopHelperAntiCheatTest.java
Outdated
Show resolved
Hide resolved
application/src/test/java/org/togetherjava/tjbot/commands/tophelper/TopHelperAntiCheatTest.java
Outdated
Show resolved
Hide resolved
application/src/test/java/org/togetherjava/tjbot/commands/tophelper/TopHelperAntiCheatTest.java
Outdated
Show resolved
Hide resolved
@Zabuzard you mean sending a fake message and checking the database entry? |
that would be the ultimate test, yes. but it would also already help if there would be some sort of |
…ests for all checks
Ok i changed pretty much everything. Tests now also include the checks if a message is supposed count. |
...on/src/test/java/org/togetherjava/tjbot/commands/tophelper/TopHelperMessageListenerTest.java
Outdated
Show resolved
Hide resolved
...on/src/test/java/org/togetherjava/tjbot/commands/tophelper/TopHelperMessageListenerTest.java
Outdated
Show resolved
Hide resolved
...on/src/test/java/org/togetherjava/tjbot/commands/tophelper/TopHelperMessageListenerTest.java
Outdated
Show resolved
Hide resolved
...on/src/test/java/org/togetherjava/tjbot/commands/tophelper/TopHelperMessageListenerTest.java
Outdated
Show resolved
Hide resolved
Ok great. I took a look at the |
...on/src/test/java/org/togetherjava/tjbot/commands/tophelper/TopHelperMessageListenerTest.java
Outdated
Show resolved
Hide resolved
...on/src/test/java/org/togetherjava/tjbot/commands/tophelper/TopHelperMessageListenerTest.java
Outdated
Show resolved
Hide resolved
application/src/test/java/org/togetherjava/tjbot/jda/JdaTester.java
Outdated
Show resolved
Hide resolved
...ation/src/main/java/org/togetherjava/tjbot/commands/tophelper/TopHelpersMessageListener.java
Outdated
Show resolved
Hide resolved
...on/src/test/java/org/togetherjava/tjbot/commands/tophelper/TopHelperMessageListenerTest.java
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
Everything resolved without margin for further questions
Adds tests for the TopHelperMessageListener checks and anticheat. This is important because if the Top-Helper system fails, track of the helpers messages is lost.