[Schmitzm-commits] r1211 - trunk/src_junit/schmitzm/swing
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Nov 3 10:36:27 CET 2010
Author: alfonx
Date: 2010-11-03 10:36:26 +0100 (Wed, 03 Nov 2010)
New Revision: 1211
Modified:
trunk/src_junit/schmitzm/swing/TestingUtil.java
Log:
Added a command the the JUnit logger, and set its level to DEBUG
Modified: trunk/src_junit/schmitzm/swing/TestingUtil.java
===================================================================
--- trunk/src_junit/schmitzm/swing/TestingUtil.java 2010-11-03 01:25:15 UTC (rev 1210)
+++ trunk/src_junit/schmitzm/swing/TestingUtil.java 2010-11-03 09:36:26 UTC (rev 1211)
@@ -30,6 +30,7 @@
import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.Layout;
+import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.PatternLayout;
import org.apache.log4j.SimpleLayout;
@@ -51,6 +52,8 @@
import schmitzm.geotools.io.GeoImportUtil;
import schmitzm.io.IOUtil;
import schmitzm.lang.LangUtil;
+import skrueger.geotools.StyledFS;
+
/**
* Helpers to test Swing applications in general. <br/>
* If not set to @Ignore, HUDSON will complain
@@ -59,9 +62,13 @@
@Ignore
public class TestingUtil {
-
+
static {
- Logger.getRootLogger().addAppender(new ConsoleAppender(new PatternLayout("%r\t%p\t%c\t%m%n"),"System.out"));
+ // Adds a Console Logger so that logger output during tests is not lost
+ Logger.getRootLogger().addAppender(
+ new ConsoleAppender(new PatternLayout("%r\t%p\t%c\t%m%n"),
+ "System.out"));
+ Logger.getRootLogger().setLevel(Level.DEBUG);
}
/**
@@ -70,7 +77,8 @@
public static enum TestDatasets {
arabicInHeader(
"/schmitzm/geotools/feature/arabicShapefiles/arabicwitharabicinheader.shp"), kreise(
- "/schmitzm/jfree/feature/style/testLineChartShape/testKreiseLineChart.shp");
+ "/schmitzm/jfree/feature/style/testLineChartShape/testKreiseLineChart.shp"), countryShp(
+ "/shapes/shp countries/country.shp");
private final String resLoc;
@@ -101,6 +109,10 @@
throws IOException {
return getFeatureSource().getFeatures();
}
+
+ public StyledFS getStyledFS() throws IOException {
+ return new StyledFS(getFeatureSource());
+ }
}
/**
More information about the Schmitzm-commits
mailing list