|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.configuration.ConfigurationAssert
public class ConfigurationAssert
Assertions on configurations for the unit tests. This class also provides access to test files.
Field Summary | |
---|---|
static File |
OUT_DIR
The directory with the output files. |
static String |
OUT_DIR_NAME
Constant for the name of the directory with the output files. |
static File |
TEST_DIR
The directory with the test files. |
static String |
TEST_DIR_NAME
Constant for the name of the directory with the test files. |
Constructor Summary | |
---|---|
ConfigurationAssert()
|
Method Summary | |
---|---|
static void |
assertEquals(Configuration expected,
Configuration actual)
Checks the content of a configuration. |
static File |
getOutFile(String name)
Returns a File object for the specified out file. |
static URL |
getOutURL(String name)
Returns a URL pointing to the specified output file. |
static File |
getTestFile(String name)
Returns a File object for the specified test file. |
static URL |
getTestURL(String name)
Returns a URL pointing to the specified test file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TEST_DIR_NAME
public static final String OUT_DIR_NAME
public static final File TEST_DIR
public static final File OUT_DIR
Constructor Detail |
---|
public ConfigurationAssert()
Method Detail |
---|
public static void assertEquals(Configuration expected, Configuration actual)
expected
- the expected propertiesactual
- the configuration to checkpublic static File getTestFile(String name)
File
object for the specified test file.
name
- the name of the test file
File
object pointing to that test filepublic static File getOutFile(String name)
File
object for the specified out file.
name
- the name of the out file
File
object pointing to that out filepublic static URL getTestURL(String name)
name
- the name of the test file
public static URL getOutURL(String name)
name
- the name of the output file
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |