Organise Imports and ScalaTest with JUnitRunner don't like each other
I have the following code:
import org.junit.runner.RunWith
import org.scalatest.FlatSpec
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
class DummyTest extends FlatSpec {}
If I run Organise Imports (Ctrl+Shift+O), the import for JUnitRunner disappears. If I run Organise Imports again, it re-appears. If I do it again, it disappears again. Quite annoying :).
Also, normally, Organise Imports nicely groups imports: the com's go together, and the org's go together, and there's a line of whitespace between them. However, this doesn't work when JUnitRunner is in the list. When I "toggle", JUnitRunner disappears, and the groupings look nice again.
Scala plugin version: 3.0.0.v-2_10-201303191346-dac2f1c
Scala compiler version: 2.10.1.v20130302-092018-VFINAL-33e32179fd
Scala library version: 2.10.1.v20130302-092018-VFINAL-33e32179fd
Eclipse version: 3.7.2.v201202080800
import org.junit.runner.RunWith
import org.scalatest.FlatSpec
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
class DummyTest extends FlatSpec {}
If I run Organise Imports (Ctrl+Shift+O), the import for JUnitRunner disappears. If I run Organise Imports again, it re-appears. If I do it again, it disappears again. Quite annoying :).
Also, normally, Organise Imports nicely groups imports: the com's go together, and the org's go together, and there's a line of whitespace between them. However, this doesn't work when JUnitRunner is in the list. When I "toggle", JUnitRunner disappears, and the groupings look nice again.
Scala plugin version: 3.0.0.v-2_10-201303191346-dac2f1c
Scala compiler version: 2.10.1.v20130302-092018-VFINAL-33e32179fd
Scala library version: 2.10.1.v20130302-092018-VFINAL-33e32179fd
Eclipse version: 3.7.2.v201202080800
Leave a comment