[Lada-commits] [PATCH 03 of 10] Added baseclass for validator tests

Wald Commits scm-commit at wald.intevation.org
Tue Feb 24 14:57:45 CET 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1424771719 -3600
# Node ID 1d4d6112ffeebeb94730db7bdfef87e802f7cbce
# Parent  23130e40e5b7d73942ef7b93f801882ca074ed36
Added baseclass for validator tests.

diff -r 23130e40e5b7 -r 1d4d6112ffee src/test/java/de/intevation/lada/LadaValidatorTest.java
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/test/java/de/intevation/lada/LadaValidatorTest.java	Tue Feb 24 10:55:19 2015 +0100
@@ -0,0 +1,34 @@
+package de.intevation.lada;
+
+import java.util.ArrayList;
+
+import javax.inject.Inject;
+
+import org.apache.log4j.Logger;
+import org.jboss.arquillian.junit.Arquillian;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import de.intevation.lada.test.validator.Probe;
+import de.intevation.lada.validation.Validator;
+import de.intevation.lada.validation.annotation.ValidationConfig;
+
+ at RunWith(Arquillian.class)
+public class LadaValidatorTest extends BaseTest {
+
+    private static Logger logger = Logger.getLogger(LadaStammTest.class);
+
+    @Inject
+    @ValidationConfig(type="Probe")
+    private Validator probeValidator;
+
+    public LadaValidatorTest() {
+        testProtocol = new ArrayList<Protocol>();
+    }
+
+    @BeforeClass
+    public static void beforeTests() {
+        logger.info("---------- Testing Lada Validator ----------");
+    }
+}


More information about the Lada-commits mailing list