How to add default imports for generated unit tests in IntelliJ Idea

Whereas the unit test generation for Java class Idea adds static imports by default

import static org.junit.Assert.*;

      

I want to expand this section with a few more imported files, but I couldn't find a place to customize them.

I am using IntelliJ IDEA 2017.1 Ultimate

+3


source to share


1 answer


You can edit it by following the link: Settings -> Editor -> File and Code Templates -> Junit4 Test Class



+2


source







All Articles