Revision 23de68fc
Added by Andreas Müller almost 2 years ago
cdmlib-print/src/test/java/eu/etaxonomy/cdm/print/out/odf/OdfOutputModuleTest.java | ||
---|---|---|
1 | 1 |
/** |
2 | 2 |
* Copyright (C) 2007 EDIT |
3 |
* European Distributed Institute of Taxonomy
|
|
3 |
* European Distributed Institute of Taxonomy |
|
4 | 4 |
* http://www.e-taxonomy.eu |
5 |
*
|
|
5 |
* |
|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.cdm.print.out.odf; |
11 | 10 |
|
12 | 11 |
import java.io.File; |
13 | 12 |
import java.io.InputStream; |
14 | 13 |
|
15 |
import org.apache.log4j.Logger; |
|
16 | 14 |
import org.jdom.Document; |
17 | 15 |
import org.jdom.input.SAXBuilder; |
18 | 16 |
import org.junit.Before; |
19 | 17 |
import org.junit.Test; |
20 | 18 |
|
21 |
import eu.etaxonomy.cdm.print.out.odf.OdfOutputModule; |
|
22 |
|
|
23 | 19 |
/** |
24 | 20 |
* @author n.hoffmann |
25 | 21 |
* @since Apr 23, 2010 |
26 |
* @version 1.0 |
|
27 | 22 |
*/ |
28 | 23 |
public class OdfOutputModuleTest { |
29 |
private static final Logger logger = Logger |
|
30 |
.getLogger(OdfOutputModuleTest.class); |
|
31 | 24 |
|
32 |
private Document input; |
|
33 |
|
|
34 |
/** |
|
35 |
* @throws java.lang.Exception |
|
36 |
*/ |
|
25 |
@SuppressWarnings("unused") |
|
26 |
private Document input; |
|
27 |
|
|
37 | 28 |
@Before |
38 | 29 |
public void setUp() throws Exception { |
39 |
|
|
30 |
|
|
40 | 31 |
InputStream documentStream = getClass().getResourceAsStream("single_input.xml"); |
41 |
|
|
32 |
|
|
42 | 33 |
SAXBuilder builder = new SAXBuilder(); |
43 | 34 |
input = builder.build(documentStream); |
44 |
|
|
45 | 35 |
} |
46 |
|
|
36 |
|
|
47 | 37 |
/** |
48 | 38 |
* Test method for {@link eu.etaxonomy.cdm.print.out.odf.OdfOutputModule#output(org.jdom.Document, java.io.File)}. |
49 | 39 |
*/ |
50 | 40 |
@Test |
51 | 41 |
public void testOutputDocumentFile() { |
52 | 42 |
OdfOutputModule outputModule = new OdfOutputModule(); |
53 |
|
|
43 |
|
|
54 | 44 |
File outputFolder = new File("."); |
55 |
|
|
45 |
|
|
56 | 46 |
// outputModule.output(input, outputFolder); |
57 |
|
|
58 |
|
|
59 | 47 |
} |
60 | 48 |
} |
Also available in: Unified diff
ref #9359 upgrade cdmlib to log4j 2