|
UTF-X, Unit Testing Framework - Xslt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectutfx.framework.ConfigurationManager
public class ConfigurationManager
UTF-X framework configuration manager.
Copyright © 2004 - University of Southern Queensland.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
$Source: /cvs/utf-x/framework/src/java/utfx/framework/ConfigurationManager.java,v $
Field Summary | |
---|---|
private static ConfigurationManager |
instance
singleton instance of the ConfigurationManager |
private org.apache.log4j.Logger |
log
logger |
private java.lang.String |
osName
operating system * |
private static java.lang.String |
propertiesFilename
name of the properties file |
private java.util.Properties |
utfxProperties
UTF-X properties |
Constructor Summary | |
---|---|
private |
ConfigurationManager()
Create a new instance of ConfigurationManager. |
Method Summary | |
---|---|
boolean |
generateHTMLReport()
Check if HTML report of the test run should be generrated. |
java.lang.String |
getHTMLReportFilename()
|
static ConfigurationManager |
getInstance()
|
java.lang.Class |
getResultPrinterClass()
Get a ResultPrinter Class object for the result printer as specified in the utfx.result-printer.class property. |
java.io.OutputStream |
getResultPrinterOutputStream()
|
SourceParser |
getSourceBuilder()
|
java.io.FilenameFilter |
getTestFileFilter()
This methods creates and returns java.io.FilenameFilter used for filtering UTF-X test definition files. |
boolean |
openHTMLReportInBrowser()
Check if UTF-X should attempt to open the generated HTML report in a browser. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String propertiesFilename
private static ConfigurationManager instance
private java.util.Properties utfxProperties
private org.apache.log4j.Logger log
private java.lang.String osName
Constructor Detail |
---|
private ConfigurationManager()
Method Detail |
---|
public static ConfigurationManager getInstance()
public java.io.FilenameFilter getTestFileFilter()
utfx.testfile-filter.class
property. If the class
cannot be loaded or the instance cannot be created then a default test
file filter will be used. The default test file filter is TestFileFilter.
TestFileFilter
public SourceParser getSourceBuilder()
public java.lang.Class getResultPrinterClass()
utfx.result-printer.class
property. If the property is
not set then return a default ResultPrinter, ie JunitResultPrinter
JunitResultPrinter
public java.io.OutputStream getResultPrinterOutputStream() throws java.io.FileNotFoundException
java.io.FileNotFoundException
- if the file specified in the properties file cannot be
createdpublic boolean generateHTMLReport()
utfx.html-report.generate=yes
public java.lang.String getHTMLReportFilename()
utfx.html-report.filename
property.public boolean openHTMLReportInBrowser()
utfx.html-report.open-in-browser=yes
|
UTF-X, Unit Testing Framework - Xslt | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |