Assert That Import

Use quick intentions to manage imports and keep your code compiling.

⌥⏎ (macOS) / Alt+Enter (Windows/Linux), to import static methods into classes to improve the readability of your code.

This can be especially useful when you're migrating from older versions of testing frameworks and need to make multiple replacements in your class.


Related Resources

Merge/Unmerge If Statements
Merge/Unmerge If Statements
Experiment with your code without changing the semantics.
Migrating from the `javax` to `jakarta` namespace
Migrating from the `javax` to `jakarta` namespace
How to transition your application from Java EE to Jakarta EE.
Extract Method
Extract Method
Extract code to a new method.