Android Studio automatically erases my static imports in Unit tests -


android studio automatically erases static imports. started out creating new tests using robolectric , when used static import import static junit.framework.assert.assertequals; android-studio automatically removes it. frustrating.

is there settings need set up?

go preferences --> editor --> code style --> java, select "imports" tab.

you can manage imports there see fit. example, have settings in section "packages use import '*'".

screenshot


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -