1 package de.fu_berlin.ties.xml.convert;
2
3 import junit.framework.TestCase;
4
5 import org.dom4j.QName;
6
7 import de.fu_berlin.ties.TiesConfiguration;
8 import de.fu_berlin.ties.xml.convert.DSVtoXMLConverter;
9
10
11 /***
12 * Generated by JUnitDoclet, a tool provided by
13 * ObjectFab GmbH under LGPL.
14 * Please see www.junitdoclet.org, www.gnu.org
15 * and www.objectfab.de for informations about
16 * the tool, the licence and the authors.
17 */
18
19
20 public class DSVtoXMLConverterTest
21
22 extends TestCase
23
24 {
25
26 DSVtoXMLConverter dsvtoxmlconverter = null;
27
28
29 public DSVtoXMLConverterTest(String name) {
30
31 super(name);
32
33 }
34
35 public de.fu_berlin.ties.xml.convert.DSVtoXMLConverter createInstance() throws Exception {
36
37 return new DSVtoXMLConverter("xml", TiesConfiguration.CONF);
38
39 }
40
41 protected void setUp() throws Exception {
42
43 super.setUp();
44 dsvtoxmlconverter = createInstance();
45
46 }
47
48 protected void tearDown() throws Exception {
49
50 dsvtoxmlconverter = null;
51 super.tearDown();
52
53 }
54
55 public void testConvert() throws Exception {
56
57
58 }
59
60 public void testGetRootName() throws Exception {
61
62
63 }
64
65 public void testProcess() throws Exception {
66
67
68 }
69
70 public void testSetGetLevel2Name() throws Exception {
71
72 QName[] tests = {new QName("element"), null};
73
74 for (int i = 0; i < tests.length; i++) {
75 dsvtoxmlconverter.setLevel2Name(tests[i]);
76 assertEquals(tests[i], dsvtoxmlconverter.getLevel2Name());
77 }
78
79 }
80
81 public void testSetIsOmittingAttribs() throws Exception {
82
83 boolean[] tests = {true, false};
84
85 for (int i = 0; i < tests.length; i++) {
86 dsvtoxmlconverter.setOmittingAttribs(tests[i]);
87 assertEquals(tests[i], dsvtoxmlconverter.isOmittingAttribs());
88 }
89
90 }
91
92 public void testToString() throws Exception {
93
94
95 }
96
97
98
99 /***
100 * JUnitDoclet moves marker to this method, if there is not match
101 * for them in the regenerated code and if the marker is not empty.
102 * This way, no test gets lost when regenerating after renaming.
103 * Method testVault is supposed to be empty.
104 */
105 public void testVault() throws Exception {
106
107
108 }
109
110 public static void main(String[] args) {
111
112 junit.textui.TestRunner.run(DSVtoXMLConverterTest.class);
113
114 }
115 }