-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[test-stack] Implement inner class assertion and fix typo "doesNotCon…
…tains" (#18921) * Implement InnerClassAssert for easy inner class testing * Suppress "'Optional.get()' without 'isPresent()' check" warning For now, until https://youtrack.jetbrains.com/issue/IDEA-354935 is solved. * Apply DRY refactoring * Move newTempFolder helper method into TestUtils * Fix typo `doesNotContains` * Pluralize assertion classes that extend ListAssert * Add short-hand has/doesNotHaveAnnotation methods to Method assertions So .hasAssertion(String) can replace .assertMethodAnnotations().containsWithName(String) * Refactor tests, simplifying setup using CodegenConfigurator * Harmonize API, removing confusion between has… and assert… This makes our the assertion API more consistent, in the way that assertSomething("") will always return a different assertion type, while hasSomething("") will always return the same type. * Use simplified hasAnnotation/doesNotHaveAnnotation assertions
- Loading branch information
Showing
26 changed files
with
1,202 additions
and
1,086 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.