Mercurial > lada > lada-server
view src/test/java/de/intevation/lada/LadaStammTest.java @ 499:4564f702f6aa
Added tests for messgroesse service.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 18 Feb 2015 16:38:39 +0100 |
parents | 27fccef93f62 |
children | ff5e10f2dc8a |
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); } }