Clover Coverage Report
Coverage timestamp: Sa Aug 2 2008 13:56:27 CEST
8   59   5   2,67
0   25   0,62   3
3     1,67  
1    
 
  SchemaTest       Line # 29 8 5 63,6% 0.6363636
 
  (1)
 
1    /* $Id: SchemaTest.java,v 1.1 2008/07/26 08:01:09 m31 Exp $
2    *
3    * This file is part of the project "Hilbert II" - http://www.qedeq.org
4    *
5    * Copyright 2000-2008, Michael Meyling <mime@qedeq.org>.
6    *
7    * "Hilbert II" is free software; you can redistribute
8    * it and/or modify it under the terms of the GNU General Public
9    * License as published by the Free Software Foundation; either
10    * version 2 of the License, or (at your option) any later version.
11    *
12    * This program is distributed in the hope that it will be useful,
13    * but WITHOUT ANY WARRANTY; without even the implied warranty of
14    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15    * GNU General Public License for more details.
16    */
17    package org.qedeq.kernel.xml.schema;
18   
19    import java.io.File;
20   
21    import org.qedeq.base.test.QedeqTestCase;
22   
23    /**
24    * This class tests the XML schema files under <code>org.qedeq.kernel.xml.schema</code>.
25    *
26    * @version $Revision: 1.1 $
27    * @author Michael Meyling
28    */
 
29    public class SchemaTest extends QedeqTestCase {
30   
 
31  1 toggle protected void setUp() throws Exception {
32  1 super.setUp();
33    }
34   
 
35  1 toggle protected void tearDown() throws Exception {
36  1 super.tearDown();
37    }
38   
39    /**
40    * Test XSLT transformation.
41    *
42    * @throws Exception Something bad happened.
43    */
 
44  1 toggle public void testXml() throws Exception {
45  1 try {
46  1 org.apache.xalan.xslt.Process.main(new String[] {
47    // "-EDUMP", "-TT", // for debugging
48    "-IN", getFile("qedeq.xml").toString(), "-XSL",
49    getFile("qedeq.xsl").toString(),
50    "-OUT", (new File(getOutdir(), "qedeq.html")).toString(), "-HTML"});
51    } catch (RuntimeException t) {
52  0 t.printStackTrace();
53  0 throw t;
54    } catch (Error t) {
55  0 t.printStackTrace();
56  0 throw t;
57    }
58    }
59    }