Clover coverage report -
Coverage timestamp: Do Okt 21 2004 12:21:23 CEST
file stats: LOC: 45   Methods: 5
NCLOC: 23   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
IncludePropertiesTest.java - 87,5% 80% 84,6%
coverage coverage
 1    /*
 2    * ConfigurationTest.java
 3    *
 4    * Created on 19. November 2002, 22:37
 5    */
 6    package org.jconfig;
 7   
 8    import junit.framework.TestCase;
 9   
 10    import org.jconfig.parser.DefaultConfigParser;
 11    /**
 12    * test cases for the for the configuration
 13    *
 14    * @author Andreas Mecky <andreas.mecky@xcom.de>
 15    * @author Terry Dye <terry.dye@xcom.de>
 16    */
 17    public class IncludePropertiesTest extends TestCase {
 18   
 19  1 public IncludePropertiesTest(String name) {
 20  1 super(name);
 21    }
 22    /**
 23    * The main program for the ConfigurationTest class
 24    *
 25    *@param args The command line arguments
 26    */
 27  0 public static void main(String[] args) {
 28  0 junit.textui.TestRunner.run(IncludePropertiesTest.class);
 29    }
 30   
 31  1 protected void setUp() {
 32  1 ConfigurationManager.getInstance().removeConfiguration("default");
 33  1 System.setProperty("jconfig.parser", DefaultConfigParser.class.getName());
 34    }
 35   
 36  1 protected void tearDown() {
 37    }
 38   
 39  1 public void testGetInclude() {
 40  1 Configuration config = ConfigurationManager.getConfiguration();
 41  1 String val = config.getProperty("varprop1",null,"includeTest");
 42  1 assertNotNull(val);
 43  1 assertEquals("value1",val);
 44    }
 45    }