EMMA Coverage Report (generated Sun Apr 20 22:38:01 CEST 2008)
[all classes][net.sf.jomic.tests]

COVERAGE SUMMARY FOR SOURCE FILE [XmlPrettyPrinterTest.java]

nameclass, %method, %block, %line, %
XmlPrettyPrinterTest.java100% (1/1)100% (2/2)100% (28/28)100% (8/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class XmlPrettyPrinterTest100% (1/1)100% (2/2)100% (28/28)100% (8/8)
XmlPrettyPrinterTest (): void 100% (1/1)100% (3/3)100% (1/1)
testXmlPrettyPrinter (): void 100% (1/1)100% (25/25)100% (7/7)

1// Jomic - a viewer for comic book archives.
2// Copyright (C) 2004-2008 Thomas Aglassinger
3//
4// This program is free software: you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation, either version 3 of the License, or
7// (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program.  If not, see <http://www.gnu.org/licenses/>.
16package net.sf.jomic.tests;
17 
18import java.io.File;
19import java.io.IOException;
20 
21import org.xml.sax.SAXException;
22 
23import net.sf.jomic.XmlPrettyPrinter;
24import net.sf.jomic.tools.FileTools;
25import net.sf.jomic.tools.TestTools;
26import junit.framework.TestCase;
27 
28/**
29 *  TestCase for XmlPrettyPrinter.
30 *
31 * @author    Thomas Aglassinger
32 */
33public class XmlPrettyPrinterTest extends TestCase
34{
35    private static final String XML_FILE_NAME = "net.sf.jomic.XmlPrettyPrinterTest.xml";
36 
37    public void testXmlPrettyPrinter()
38        throws IOException, SAXException {
39        TestTools testTools = TestTools.instance();
40        File inFile = testTools.getTestInputFile(XML_FILE_NAME);
41        File outFile = testTools.getTestOutputFile(XML_FILE_NAME);
42        FileTools fileTools = FileTools.instance();
43 
44        fileTools.copyFile(inFile, outFile);
45        XmlPrettyPrinter.main(new String[]{outFile.getAbsolutePath()});
46    }
47}

[all classes][net.sf.jomic.tests]
EMMA 2.0.4217 (C) Vladimir Roubtsov