summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2013-06-17 11:24:03 -0700
committerGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2013-06-17 11:24:03 -0700
commit6f1ac2610ecd1d6b01406476781ba8cd836a95e4 (patch)
tree621dab6d853f929f71c92c81726001aab703bd67 /test
parenta54d86b5508630a4815ca7f6ca3d5f05b74b1d9f (diff)
parent34943979b77efea44e099e93ee4ee48b42e35091 (diff)
downloadscala-6f1ac2610ecd1d6b01406476781ba8cd836a95e4.tar.gz
scala-6f1ac2610ecd1d6b01406476781ba8cd836a95e4.tar.bz2
scala-6f1ac2610ecd1d6b01406476781ba8cd836a95e4.zip
Merge pull request #2656 from gkossakowski/junit
Add JUnit support
Diffstat (limited to 'test')
-rw-r--r--test/junit/scala/tools/nsc/SampleTest.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/junit/scala/tools/nsc/SampleTest.scala b/test/junit/scala/tools/nsc/SampleTest.scala
new file mode 100644
index 0000000000..8e026da1ea
--- /dev/null
+++ b/test/junit/scala/tools/nsc/SampleTest.scala
@@ -0,0 +1,17 @@
+package scala.tools.nsc
+package test
+
+import org.junit.Assert._
+import org.junit.Test
+import org.junit.runner.RunWith
+import org.junit.runners.JUnit4
+
+/** Sample JUnit test that shows that all pieces
+ of JUnit infrastructure work correctly */
+@RunWith(classOf[JUnit4])
+class SampleTest {
+ @Test
+ def testMath: Unit = {
+ assert(2+2 == 4, "you didn't get the math right fellow")
+ }
+}