java - Prevent Itellij IDEA to change assert imports -
first of all, when create test class via ctrl+shift+t, idea automatically puts
import static org.junit.assert.*;
into class. in same time popup dialog apperas asks me whether add new file git. hitting yes file added import disappears. can understand because unit methods empty, declared bodys. after implementing test assert have manually add static import again. first behavior. second after close file , reopen after time again idea replaces wildcard assert import asserts used in unit test, e. g. only
import static org.junit.assert.assertequals; import static org.junit.assert.assertnotnull;
how can prevent quite annoying behavior? tried use code template copied template of "class" , added static import did not me.
Comments
Post a Comment