summaryrefslogtreecommitdiff
path: root/test/files/neg/nowarnDefaultJunitMethods.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/nowarnDefaultJunitMethods.check')
-rw-r--r--test/files/neg/nowarnDefaultJunitMethods.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/nowarnDefaultJunitMethods.check b/test/files/neg/nowarnDefaultJunitMethods.check
new file mode 100644
index 0000000000..7efdcc299a
--- /dev/null
+++ b/test/files/neg/nowarnDefaultJunitMethods.check
@@ -0,0 +1,6 @@
+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