Clover coverage report -
Coverage timestamp: Do Okt 21 2004 12:21:23 CEST
file stats: LOC: 48   Methods: 5
NCLOC: 26   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
ErrorHandlerTest.java - 0% 0% 0%
coverage
 1    /*
 2    * Created on 28.06.2004
 3    * Created by crappy eclipse.
 4    */
 5    package org.jconfig.error;
 6   
 7    import junit.framework.TestCase;
 8   
 9    import org.jconfig.Configuration;
 10    import org.jconfig.ConfigurationManager;
 11   
 12    /**
 13    * @author Mecky
 14    * shoot me because I am using eclipse
 15    */
 16    public class ErrorHandlerTest extends TestCase {
 17   
 18   
 19  0 public ErrorHandlerTest(String arg0) {
 20  0 super(arg0);
 21    }
 22   
 23  0 public static void main(String[] args) {
 24  0 junit.textui.TestRunner.run(ErrorHandlerTest.class);
 25    }
 26   
 27    /* (non-Javadoc)
 28    * @see junit.framework.TestCase#setUp()
 29    */
 30  0 protected void setUp() throws Exception {
 31  0 super.setUp();
 32    }
 33    /* (non-Javadoc)
 34    * @see junit.framework.TestCase#tearDown()
 35    */
 36  0 protected void tearDown() throws Exception {
 37  0 super.tearDown();
 38    }
 39   
 40  0 public void testErrorHandler() {
 41  0 System.setProperty("jconfig.errorhandler","org.jconfig.error.MockErrorHandler");
 42  0 Configuration cfg = ConfigurationManager.getConfiguration("I do not exist");
 43  0 assertNotNull(cfg);
 44  0 MockErrorHandler handler = (MockErrorHandler)ErrorReporter.getErrorHandler();
 45  0 assertEquals("Problem while trying to read configuration. Returning new configuration.",handler.getMsg());
 46  0 System.setProperty("jconfig.errorhandler","blabla");
 47    }
 48    }