KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > smartlib > pool > core > ConfigFileProcessorTest


1 package org.smartlib.pool.core;
2
3 import org.smartlib.pool.core.ConfigFileProcessor;
4 import org.apache.log4j.Logger;
5
6 /**
7  * Created by IntelliJ IDEA.
8  * User: kerneldebugger
9  * Date: Aug 25, 2005
10  * Time: 9:54:28 PM
11  * To change this template use File | Settings | File Templates.
12  */

13 public class ConfigFileProcessorTest extends PoolTestFixture {
14
15
16     Logger logger = Logger.getLogger(ConfigFileProcessorTest.class);
17
18     public void testIfDefaultFileLoads() throws Exception JavaDoc {
19         ConfigFileProcessor processor = new ConfigFileProcessor();
20         PoolConfig config[] = processor.getPoolConfig();
21         for (int i=0; i<config.length; i++) {
22             logger.debug("Configurations are: " + config[i]);
23         }
24     }
25
26
27     public void testIfSpecificFileLoads() throws Exception JavaDoc {
28         ConfigFileProcessor processor = new ConfigFileProcessor();
29         PoolConfig config[] = processor.getPoolConfig(System.getProperty(PoolConstants.CONFIG_FILE_SYSTEM_PROPERTY));
30         for (int i=0; i<config.length; i++) {
31             logger.debug("Configurations are: " + config[i]);
32         }
33     }
34
35
36 }
37
Popular Tags