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