1   package de.fu_berlin.ties.xml.convert;
2   
3   import junit.framework.TestCase;
4   // JUnitDoclet begin import
5   import org.dom4j.QName;
6   
7   import de.fu_berlin.ties.TiesConfiguration;
8   import de.fu_berlin.ties.xml.convert.DSVtoXMLConverter;
9   // JUnitDoclet end import
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  // JUnitDoclet begin extends_implements
22  extends TestCase
23  // JUnitDoclet end extends_implements
24  {
25    // JUnitDoclet begin class
26    DSVtoXMLConverter dsvtoxmlconverter = null;
27    // JUnitDoclet end class
28    
29    public DSVtoXMLConverterTest(String name) {
30      // JUnitDoclet begin method DSVtoXMLConverterTest
31      super(name);
32      // JUnitDoclet end method DSVtoXMLConverterTest
33    }
34    
35    public de.fu_berlin.ties.xml.convert.DSVtoXMLConverter createInstance() throws Exception {
36      // JUnitDoclet begin method testcase.createInstance
37      return new DSVtoXMLConverter("xml", TiesConfiguration.CONF);
38      // JUnitDoclet end method testcase.createInstance
39    }
40    
41    protected void setUp() throws Exception {
42      // JUnitDoclet begin method testcase.setUp
43      super.setUp();
44      dsvtoxmlconverter = createInstance();
45      // JUnitDoclet end method testcase.setUp
46    }
47    
48    protected void tearDown() throws Exception {
49      // JUnitDoclet begin method testcase.tearDown
50      dsvtoxmlconverter = null;
51      super.tearDown();
52      // JUnitDoclet end method testcase.tearDown
53    }
54    
55    public void testConvert() throws Exception {
56      // JUnitDoclet begin method convert
57      // JUnitDoclet end method convert
58    }
59    
60    public void testGetRootName() throws Exception {
61      // JUnitDoclet begin method getRootName
62      // JUnitDoclet end method getRootName
63    }
64    
65    public void testProcess() throws Exception {
66      // JUnitDoclet begin method process
67      // JUnitDoclet end method process
68    }
69    
70    public void testSetGetLevel2Name() throws Exception {
71      // JUnitDoclet begin method setLevel2Name getLevel2Name
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      // JUnitDoclet end method setLevel2Name getLevel2Name
79    }
80    
81    public void testSetIsOmittingAttribs() throws Exception {
82      // JUnitDoclet begin method setOmittingAttribs isOmittingAttribs
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      // JUnitDoclet end method setOmittingAttribs isOmittingAttribs
90    }
91    
92    public void testToString() throws Exception {
93      // JUnitDoclet begin method toString
94      // JUnitDoclet end method toString
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     // JUnitDoclet begin method testcase.testVault
107     // JUnitDoclet end method testcase.testVault
108   }
109   
110   public static void main(String[] args) {
111     // JUnitDoclet begin method testcase.main
112     junit.textui.TestRunner.run(DSVtoXMLConverterTest.class);
113     // JUnitDoclet end method testcase.main
114   }
115 }