Package org.geoserver.logging

Source Code of org.geoserver.logging.LegacyLoggingImporterTest

package org.geoserver.logging;

import java.io.File;

import junit.framework.TestCase;

import org.geoserver.config.GeoServer;
import org.geoserver.config.impl.GeoServerImpl;
import org.geotools.data.DataUtilities;

public class LegacyLoggingImporterTest extends TestCase {

    GeoServer gs;
    LegacyLoggingImporter importer;
   
    protected void setUp() throws Exception {
        gs = new GeoServerImpl();
       
        importer = new LegacyLoggingImporter();
        importer.imprt(
            DataUtilities.urlToFile(getClass().getResource("services.xml")).getParentFile());
    }
   
    public void test() throws Exception {
        assertEquals( "DEFAULT_LOGGING.properties", importer.getConfigFileName() );
        assertFalse( importer.getSuppressStdOutLogging() );
        assertEquals( "logs/geoserver.log", importer.getLogFile());
    }
}
TOP

Related Classes of org.geoserver.logging.LegacyLoggingImporterTest

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.