This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Currently, code completion for static imports does not work. It means: you cannot just write: assertThat and push ctrl+space to create the import-statement: import static org.junit.Assert.*; Also commonly used imports for: import static org.hamcrest.CoreMatchers.*; and import static org.mockito.Mockito.*; should be generated after clicking ctrl+space.
I believe that Eclipse has a nice feature to add "favorite" packages to automatically search for static imports. This would be a great feature for NetBeans.
Code completion for static imports is one of the new features implemented for NB 7.4. Try to write 'assert' and press 'Ctrl+Space' twice (or alternatively 'Ctrl+Alt+Space' once) - 'all' completion popup should appear presenting all available assert* methods. Please note that static members are prefixed by their corresponding class names when completed by default. If you prefer static imports to be added, please check the corresponding box in 'Tools -> Options -> Editor -> Formatting -> Java -> Imports'.