Scalaトレイトから継承された@Test注釈付きメソッドがJUnit4テストランナーによって検出されない理由を誰かが知っていますか?「JUnitテストが見つかりません」と表示されます。
class FooTests extends BarTesting
しかし、次の変更は機能しますか?
import junit.framework.TestCase
class FooTests extends TestCase with BarTesting
ScalaトレイトのBarTestingで、次のシグネチャを使用してメソッドを定義しました。
@Test
final def testBar() {
// ...
}