| org.objectweb.util.monolog.TestHelper org.objectweb.util.monolog.file.monolog.TestPropertiesConfAccess
TestPropertiesConfAccess | public class TestPropertiesConfAccess extends TestHelper (Code) | | This test is based on JUnit and verifies the PropertiesConfAccess class.
author: Sebastien Chassande-Barrioz |
Method Summary | |
public void | checkBeginExist(Properties p, String key, String value, String msg) | public void | checkExist(Properties p, Set s, String key, String value, String msg) It verifies that the couple (key, value) is available in a Properties. | public void | checkUnExist(Set s, String key, String msg) It verifies that a String is not available in a Set. | public static TestSuite | getTestSuite(String lfcn) Return the test suite associated to this class. | public static void | main(String args) For running the TestPropertiesConfAccess suite standalone. | public void | printProperties(Properties p) | public void | testLoadConf() | public void | testStoreConf() It tests the store method. |
checkExist | public void checkExist(Properties p, Set s, String key, String value, String msg)(Code) | | It verifies that the couple (key, value) is available in a Properties.
Parameters: p - is the properties where to find the key and the value. Parameters: s - is the key set of the properies p Parameters: key - is the string which must be a key in the properties Parameters: value - is the object which must be value associated to the key Parameters: msg - is the error messageis the (key, value) is not found |
checkUnExist | public void checkUnExist(Set s, String key, String msg)(Code) | | It verifies that a String is not available in a Set.
Parameters: s - is the set. Parameters: key - is the string which must not be a key in the set Parameters: msg - is the error messageis the (key, value) is found |
getTestSuite | public static TestSuite getTestSuite(String lfcn)(Code) | | Return the test suite associated to this class.
|
main | public static void main(String args)(Code) | | For running the TestPropertiesConfAccess suite standalone.
|
testLoadConf | public void testLoadConf()(Code) | | It tests the load method
|
testStoreConf | public void testStoreConf()(Code) | | It tests the store method.
|
Methods inherited from org.objectweb.util.monolog.TestHelper | public void assertInFileEquals(String message, String required)(Code)(Java Doc) public void assertInFileEquals(String message, String filename, String required)(Code)(Java Doc) public void assertInFileEquals(String message, String[] required)(Code)(Java Doc) public void assertInFileEquals(String message, String filename, String[] required)(Code)(Java Doc) protected void debug(String m)(Code)(Java Doc) public String[] getFirstLines(int linenumber)(Code)(Java Doc) public String[] getFirstLines(String filename, int linenumber)(Code)(Java Doc) public String[] getLastLines(int linenumber)(Code)(Java Doc) public String[] getLastLines(String filename, int linenumber)(Code)(Java Doc) public static TestSuite getTestSuite(Class c, String[] methods, String params, String lfcn, String fn)(Code)(Java Doc) public static TestSuite getTestSuite(Class c, String[] methods, String params, String lfcn)(Code)(Java Doc) public static void main(String[] args)(Code)(Java Doc) public void quietRootLogger()(Code)(Java Doc) public static void run(Class c, String[] methods, String params, String lfcn, String fn)(Code)(Java Doc) public static void run(Class c, String[] methods, String params, String lfcn)(Code)(Java Doc) public void setLoggerFactoryClassName(String lfcn)(Code)(Java Doc) public void setOutputFile(String filename)(Code)(Java Doc) protected void setUp() throws Exception(Code)(Java Doc)
|
|
|