-
Notifications
You must be signed in to change notification settings - Fork 69
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
Fixed ArchUnit tests #3778
Fixed ArchUnit tests #3778
Conversation
lorriborri
commented
Jan 8, 2025
- closes ArchUnit refactore code, fix tests and test imports #3713
- not tested yet - rely on project and test dependencies - arch unit executed after all others
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.
I like the new rules for test classes. Good job 👍
But I'd like you to have a look at my comments:
You are mixing // ...
and /* ... */
style of comments
Please use /* ... */
for real comments
I don't see a reason to put a generic warning message behind specific ArchUnit rules (because(...)). Either check for the violations at the end or print a generic warning message at the start/end.
I did not look at every violation here but please make sure that every test class ends with Test and any supporting test class starts with Test. Nothing in between should be possible.
Moving from assertEquals
to fluent AssertJ ist optional. But it is beneficial in the long run.
sechub-archunit-test/src/test/java/mercedesbenz/com/sechub/archunit/ArchUnitRuntimeSupport.java
Outdated
Show resolved
Hide resolved
...test/java/com/mercedesbenz/sechub/commons/core/resilience/ResilientRunnableExecutorTest.java
Outdated
Show resolved
Hide resolved
...test/java/com/mercedesbenz/sechub/commons/core/resilience/ResilientRunnableExecutorTest.java
Outdated
Show resolved
Hide resolved
sechub-archunit-test/src/test/java/mercedesbenz/com/sechub/archunit/NamingConventionTest.java
Show resolved
Hide resolved
sechub-doc/src/test/java/com/mercedesbenz/sechub/PDSDataExampleTestFile.java
Outdated
Show resolved
Hide resolved
...red-kernel/src/test/java/com/mercedesbenz/sechub/sharedkernel/monitoring/TestCPUMonitor.java
Outdated
Show resolved
Hide resolved
- eclipse and IntelliJ direct class builds can now used in parallel of gradle builds. Per default the arch unit tests will only test gradle build outputs. But by setting -Dsechub.archunit.ignoreFolders=build it is possible to execute arch unit tests directly inside IDE without gradle
* Restructured pages and added create scan component #1900 * Added buttons and file input #1900 * Create configuration from user input #1900 * Added scan function and data upload api for source code and binaries #1900 * Added test setup #1900 * Added encryption ENV to docker images (local), refactored code #1900
Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 7.0.5 to 7.0.6. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](peter-evans/create-pull-request@5e91468...67ccf78) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
also added updated .ts files
* Added REST API for user cancel job #3789 * Applied spotless #3789 * Added 404 to openapi and replaced notauthorized by notfound #3789 * Added change requests #3789 * Added 204 to restDoc test #3789 * Added new management URL #3789 * Handle nullpointer #3789 * Refactored exception #3789 * Changed API URL #3789
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.
Looks good to me