1   package de.fu_berlin.ties;
2   
3   import junit.framework.TestCase;
4   // JUnitDoclet begin import
5   import de.fu_berlin.ties.TiesConfiguration;
6   // JUnitDoclet end import
7   
8   /***
9   * Generated by JUnitDoclet, a tool provided by
10  * ObjectFab GmbH under LGPL.
11  * Please see www.junitdoclet.org, www.gnu.org
12  * and www.objectfab.de for informations about
13  * the tool, the licence and the authors.
14  */
15  
16  
17  public class TiesConfigurationTest
18  // JUnitDoclet begin extends_implements
19  extends TestCase
20  // JUnitDoclet end extends_implements
21  {
22    // JUnitDoclet begin class
23    TiesConfiguration tiesconfiguration = null;
24    // JUnitDoclet end class
25    
26    public TiesConfigurationTest(String name) {
27      // JUnitDoclet begin method TiesConfigurationTest
28      super(name);
29      // JUnitDoclet end method TiesConfigurationTest
30    }
31    
32    public de.fu_berlin.ties.TiesConfiguration createInstance() throws Exception {
33      // JUnitDoclet begin method testcase.createInstance
34      return new de.fu_berlin.ties.TiesConfiguration();
35      // JUnitDoclet end method testcase.createInstance
36    }
37    
38    protected void setUp() throws Exception {
39      // JUnitDoclet begin method testcase.setUp
40      super.setUp();
41      tiesconfiguration = createInstance();
42      // JUnitDoclet end method testcase.setUp
43    }
44    
45    protected void tearDown() throws Exception {
46      // JUnitDoclet begin method testcase.tearDown
47      tiesconfiguration = null;
48      super.tearDown();
49      // JUnitDoclet end method testcase.tearDown
50    }
51    
52    public void testAdaptKey() throws Exception {
53      // JUnitDoclet begin method adaptKey
54      // JUnitDoclet end method adaptKey
55    }
56    
57    public void testArrayIsEmpty() throws Exception {
58      // JUnitDoclet begin method arrayIsEmpty
59      // JUnitDoclet end method arrayIsEmpty
60    }
61    
62    public void testListIsEmpty() throws Exception {
63      // JUnitDoclet begin method listIsEmpty
64      // JUnitDoclet end method listIsEmpty
65    }
66    
67    public void testPropertyIsEmpty() throws Exception {
68      // JUnitDoclet begin method propertyIsEmpty
69      // JUnitDoclet end method propertyIsEmpty
70    }
71    
72    public void testJoinKey() throws Exception {
73      // JUnitDoclet begin method joinKey
74      // JUnitDoclet end method joinKey
75    }
76    
77    public void testAddConfiguration() throws Exception {
78      // JUnitDoclet begin method addConfiguration
79      // JUnitDoclet end method addConfiguration
80    }
81    
82    public void testAddDescriptorConfig() throws Exception {
83      // JUnitDoclet begin method addDescriptorConfig
84      // JUnitDoclet end method addDescriptorConfig
85    }
86    
87    public void testConfigureFromArgs() throws Exception {
88      // JUnitDoclet begin method configureFromArgs
89      // JUnitDoclet end method configureFromArgs
90    }
91    
92    public void testGetDescriptor() throws Exception {
93      // JUnitDoclet begin method getDescriptor
94      // JUnitDoclet end method getDescriptor
95    }
96    
97    public void testGetProperty() throws Exception {
98      // JUnitDoclet begin method getProperty
99      // JUnitDoclet end method getProperty
100   }
101   
102   public void testGetStringArray() throws Exception {
103     // JUnitDoclet begin method getStringArray
104     // JUnitDoclet end method getStringArray
105   }
106   
107   public void testFlatten() throws Exception {
108     // JUnitDoclet begin method flatten
109     // JUnitDoclet end method flatten
110   }
111   
112   public void testLoad() throws Exception {
113     // JUnitDoclet begin method load
114     // load config file(s)
115     // testing the default configuration loaded from "ties"
116     assertEquals("tagger-chunker-english", 
117         TiesConfiguration.CONF.getString("treetagger.command.en"));
118     assertEquals("''",
119         TiesConfiguration.CONF.getString("treetagger.after-eos.en"));
120 
121     // non-existent propery (seems to return null in case of Strings)
122     //try {
123     assertFalse(TiesConfiguration.CONF.containsKey("bla.blub"));
124     assertNull(TiesConfiguration.CONF.getString("bla.blub"));
125     //    //fail();
126     //} catch (NoSuchElementException nsee) { /* this is what we expect */ }
127     // JUnitDoclet end method load
128   }
129   
130   public void testLocalizeKey() throws Exception {
131     // JUnitDoclet begin method localizeKey
132     // JUnitDoclet end method localizeKey
133   }
134   
135   public void testModifyProperty() throws Exception {
136     // JUnitDoclet begin method modifyProperty
137     // JUnitDoclet end method modifyProperty
138   }
139   
140   public void testSave() throws Exception {
141     // JUnitDoclet begin method save
142     // JUnitDoclet end method save
143   }
144   
145   public void testSortedKeys() throws Exception {
146     // JUnitDoclet begin method sortedKeys
147     // JUnitDoclet end method sortedKeys
148   }
149   
150   public void testSubset() throws Exception {
151     // JUnitDoclet begin method subset
152     // JUnitDoclet end method subset
153   }
154   
155   
156   
157   /***
158   * JUnitDoclet moves marker to this method, if there is not match
159   * for them in the regenerated code and if the marker is not empty.
160   * This way, no test gets lost when regenerating after renaming.
161   * Method testVault is supposed to be empty.
162   */
163   public void testVault() throws Exception {
164     // JUnitDoclet begin method testcase.testVault
165     // JUnitDoclet end method testcase.testVault
166   }
167   
168   public static void main(String[] args) {
169     // JUnitDoclet begin method testcase.main
170     junit.textui.TestRunner.run(TiesConfigurationTest.class);
171     // JUnitDoclet end method testcase.main
172   }
173 }