Package org.opengeo

Source Code of org.opengeo.GeoServerInfoTest

package org.opengeo;

import com.google.common.io.Files;
import org.apache.commons.io.FileUtils;
import org.geoserver.platform.GeoServerResourceLoader;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import java.io.IOException;

import static org.junit.Assert.assertNotNull;

public class GeoServerInfoTest {

    GeoServerResourceLoader resourceLoader;
    GeoServerInfo info;

    @Before
    public void setUp() throws Exception {
        resourceLoader = new GeoServerResourceLoader(Files.createTempDir());
        info = new GeoServerInfo(resourceLoader);
    }

    @After
    public void tearDown() throws IOException {
        FileUtils.deleteDirectory(resourceLoader.getBaseDirectory());
    }

    @Test
    public void test() throws Exception {
        assertNotNull(info.suite());
        assertNotNull(info.geoserver());
    }
}
TOP

Related Classes of org.opengeo.GeoServerInfoTest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.