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