Commits

Anonymous committed 3d30293

Unit test infrastructure with sample test

  • Participants
  • Parent commits 28ab82c

Comments (0)

Files changed (2)

File controlsfx/build.gradle

         exclude group: 'org.codehaus.groovy', module: 'groovy-all'
         exclude group: 'org.codehaus.groovy', module: 'groovy'
     }
+    testCompile 'junit:junit:[4,)'
+}
+
+test {
+    testLogging {
+        // Show that tests are run in the command-line output
+        events 'started', 'passed'
+    }
 }
 
 Properties commons = new Properties()

File controlsfx/src/test/java/org/controlsfx/SampleTest.java

+package org.controlsfx;
+
+import static org.junit.Assert.*;
+import org.junit.*;
+
+public class SampleTest {
+
+    @Test public void sample() {
+        assertEquals("ControlsFX", "ControlsFX");
+    }
+    
+}