From a86f9771a213d2e2d67ab89ad3941bb09bd44a15 Mon Sep 17 00:00:00 2001
From: Peter van 't Hof <p.j.van_t_hof@lumc.nl>
Date: Mon, 11 Apr 2016 08:16:59 +0200
Subject: [PATCH] Added empty test

---
 public/gwas-test/pom.xml                      | 12 +++++++
 .../pipelines/gwastest/GwasTestTest.scala     | 31 +++++++++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 public/gwas-test/src/test/scala/nl/lumc/sasc/biopet/pipelines/gwastest/GwasTestTest.scala

diff --git a/public/gwas-test/pom.xml b/public/gwas-test/pom.xml
index e7977c576..619df649c 100644
--- a/public/gwas-test/pom.xml
+++ b/public/gwas-test/pom.xml
@@ -45,6 +45,18 @@
             <artifactId>BiopetToolsExtensions</artifactId>
             <version>${project.version}</version>
         </dependency>
+        <dependency>
+            <groupId>org.testng</groupId>
+            <artifactId>testng</artifactId>
+            <version>6.8</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.scalatest</groupId>
+            <artifactId>scalatest_2.10</artifactId>
+            <version>2.2.1</version>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
 </project>
\ No newline at end of file
diff --git a/public/gwas-test/src/test/scala/nl/lumc/sasc/biopet/pipelines/gwastest/GwasTestTest.scala b/public/gwas-test/src/test/scala/nl/lumc/sasc/biopet/pipelines/gwastest/GwasTestTest.scala
new file mode 100644
index 000000000..0d2e0cb44
--- /dev/null
+++ b/public/gwas-test/src/test/scala/nl/lumc/sasc/biopet/pipelines/gwastest/GwasTestTest.scala
@@ -0,0 +1,31 @@
+package nl.lumc.sasc.biopet.pipelines.gwastest
+
+import nl.lumc.sasc.biopet.utils.config.Config
+import org.broadinstitute.gatk.queue.QSettings
+import org.scalatest.Matchers
+import org.scalatest.testng.TestNGSuite
+import org.testng.annotations.Test
+
+/**
+  * Created by pjvan_thof on 4/11/16.
+  */
+class GwasTestTest extends TestNGSuite with Matchers {
+  def initPipeline(map: Map[String, Any]): GwasTest = {
+    new GwasTest {
+      override def configName = "gwastest"
+      override def globalConfig = new Config(map)
+      qSettings = new QSettings
+      qSettings.runName = "test"
+    }
+  }
+
+
+
+  @Test
+  def testEmpty: Unit = {
+    val pipeline = initPipeline(Map())
+    intercept[IllegalArgumentException] {
+      pipeline.script()
+    }
+  }
+}
-- 
GitLab