Mercurial > lada > lada-server
view src/test/java/de/intevation/lada/LadaStammTest.java @ 504:251e254e4c2e
Added tests for messstellen services.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 18 Feb 2015 16:57:44 +0100 |
parents | ff5e10f2dc8a |
children | f2832b156be3 |
line wrap: on
line source
/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz * Software engineering by Intevation GmbH * * This file is Free Software under the GNU GPL (v>=3) * and comes with ABSOLUTELY NO WARRANTY! Check out * the documentation coming with IMIS-Labordaten-Application for details. */ package de.intevation.lada; import java.net.URL; import java.util.ArrayList; import org.apache.log4j.Logger; import org.jboss.arquillian.container.test.api.RunAsClient; import org.jboss.arquillian.junit.Arquillian; import org.jboss.arquillian.test.api.ArquillianResource; import org.junit.BeforeClass; import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.MethodSorters; import de.intevation.lada.test.stamm.Stammdaten; /** * Class to test the Lada server stammdaten services. * * @author <a href="mailto:rrenkert@intevation.de">Raimund Renkert</a> */ @RunWith(Arquillian.class) @FixMethodOrder(MethodSorters.NAME_ASCENDING) public class LadaStammTest extends BaseTest { private static Logger logger = Logger.getLogger(LadaStammTest.class); private Stammdaten stammdatenTest; public LadaStammTest () { stammdatenTest = new Stammdaten(); testProtocol = new ArrayList<Protocol>(); verboseLogging = true; } @BeforeClass public static void beforeTests() { logger.info("---------- Testing Lada Stamm Services ----------"); } @Test @RunAsClient public final void testDatenbasisAll(@ArquillianResource URL baseUrl) { stammdatenTest.getAll(baseUrl, "datenbasis", testProtocol); } @Test @RunAsClient public final void testDatenbasisById(@ArquillianResource URL baseUrl) { stammdatenTest.getById(baseUrl, "datenbasis", 9, testProtocol); } @Test @RunAsClient public final void testMesseinheitAll(@ArquillianResource URL baseUrl) { stammdatenTest.getAll(baseUrl, "messeinheit", testProtocol); } @Test @RunAsClient public final void testMesseinheitById(@ArquillianResource URL baseUrl) { stammdatenTest.getById(baseUrl, "messeinheit", 207, testProtocol); } @Test @RunAsClient public final void testMessgroesseAll(@ArquillianResource URL baseUrl) { stammdatenTest.getAll(baseUrl, "messgroesse", testProtocol); } @Test @RunAsClient public final void testMessgroesseById(@ArquillianResource URL baseUrl) { stammdatenTest.getById(baseUrl, "messgroesse", 56, testProtocol); } @Test @RunAsClient public final void testMessmethodeAll(@ArquillianResource URL baseUrl) { stammdatenTest.getAll(baseUrl, "messmethode", testProtocol); } @Test @RunAsClient public final void testMessmethodeById(@ArquillianResource URL baseUrl) { stammdatenTest.getById(baseUrl, "messmethode", "GI", testProtocol); } @Test @RunAsClient public final void testMessstelleAll(@ArquillianResource URL baseUrl) { stammdatenTest.getAll(baseUrl, "messstelle", testProtocol); } @Test @RunAsClient public final void testMessstelleById(@ArquillianResource URL baseUrl) { stammdatenTest.getById(baseUrl, "messstelle", "03151", testProtocol); } }