From 50b71b6c829faabfaa46197572fc4ddd03b7e9c1 Mon Sep 17 00:00:00 2001 From: Lukas Rytz Date: Wed, 31 Aug 2016 11:08:26 +0200 Subject: Emit mixin forwarders for JUnit-annotated trait methods by default JUnit 4 does not support default methods. For better user experience, this commit makes the compiler generate mixin forwarders for inherited trait methods that carry a JUnit annotation. The -Yjunit-trait-methods-no-forwarders flag disables this behavior. This supersedes the scala-js/scala-2.12-junit-mixin-plugin compiler plugin. --- test/files/neg/nowarnDefaultJunitMethods.check | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 test/files/neg/nowarnDefaultJunitMethods.check (limited to 'test/files/neg/nowarnDefaultJunitMethods.check') diff --git a/test/files/neg/nowarnDefaultJunitMethods.check b/test/files/neg/nowarnDefaultJunitMethods.check deleted file mode 100644 index 7efdcc299a..0000000000 --- a/test/files/neg/nowarnDefaultJunitMethods.check +++ /dev/null @@ -1,6 +0,0 @@ -C_1.scala:2: warning: JUnit tests in traits that are compiled as default methods are not executed by JUnit 4. JUnit 5 will fix this issue. - @org.junit.Test def foo = 0 - ^ -error: No warnings can be incurred under -Xfatal-warnings. -one warning found -one error found -- cgit v1.2.3