view src/test/java/de/intevation/lada/test/QueryServiceTest.java @ 434:7d527bff842a

Added test environment.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 06 Feb 2015 12:24:23 +0100
parents
children 4986ef8bff19
line wrap: on
line source
package de.intevation.lada.test;

import org.junit.Assert;

import de.intevation.lada.rest.QueryService;
import de.intevation.lada.util.rest.Response;


public class QueryServiceTest {

    public final void test(QueryService queryService) throws Exception {
        queryService(queryService);
    }

    private final void queryService(QueryService queryService)
    throws Exception {
        Response response = queryService.get();
        Assert.assertEquals("200", response.getMessage());
        Assert.assertTrue(response.getSuccess());
        Assert.assertNotNull(response.getData());
    }

}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)