1   package de.fu_berlin.ties.filter;
2   
3   import junit.framework.TestCase;
4   // JUnitDoclet begin import
5   import de.fu_berlin.ties.TiesConfiguration;
6   import de.fu_berlin.ties.classify.Reranker;
7   import de.fu_berlin.ties.context.DefaultRepresentation;
8   import de.fu_berlin.ties.xml.dom.ElementNameFilter;
9   
10  // JUnitDoclet end import
11  
12  /***
13  * Generated by JUnitDoclet, a tool provided by
14  * ObjectFab GmbH under LGPL.
15  * Please see www.junitdoclet.org, www.gnu.org
16  * and www.objectfab.de for informations about
17  * the tool, the licence and the authors.
18  */
19  
20  
21  public class RepresentationFilterTest
22  // JUnitDoclet begin extends_implements
23          extends TestCase
24  // JUnitDoclet end extends_implements
25  {
26    // JUnitDoclet begin class
27      RepresentationFilter representationfilter = null;
28  
29    // JUnitDoclet end class
30    
31    public RepresentationFilterTest(String name) {
32      // JUnitDoclet begin method RepresentationFilterTest
33          super(name);
34      // JUnitDoclet end method RepresentationFilterTest
35    }
36    
37    public de.fu_berlin.ties.filter.RepresentationFilter createInstance() throws Exception {
38      // JUnitDoclet begin method testcase.createInstance
39          return new de.fu_berlin.ties.filter.RepresentationFilter(
40                  TiesConfiguration.CONF,
41                  new ElementNameFilter( new String[] { "sent" }),
42                  new ElementNameFilter( new String[]
43                                                    { "pos", "const", "entity" }),
44                  new Reranker(TiesConfiguration.CONF),
45                  new DefaultRepresentation(TiesConfiguration.CONF), "Sentence");
46      // JUnitDoclet end method testcase.createInstance
47    }
48    
49    protected void setUp() throws Exception {
50      // JUnitDoclet begin method testcase.setUp
51          super.setUp();
52          representationfilter = createInstance();
53      // JUnitDoclet end method testcase.setUp
54    }
55    
56    protected void tearDown() throws Exception {
57      // JUnitDoclet begin method testcase.tearDown
58          representationfilter = null;
59          super.tearDown();
60      // JUnitDoclet end method testcase.tearDown
61    }
62    
63    public void testBuildFeatures() throws Exception {
64      // JUnitDoclet begin method buildFeatures
65      // JUnitDoclet end method buildFeatures
66    }
67    
68    public void testInit() throws Exception {
69      // JUnitDoclet begin method init
70      // JUnitDoclet end method init
71    }
72    
73    public void testMatches() throws Exception {
74      // JUnitDoclet begin method matches
75      // JUnitDoclet end method matches
76    }
77    
78    public void testToString() throws Exception {
79      // JUnitDoclet begin method toString
80      // JUnitDoclet end method toString
81    }
82    
83    
84    
85    /***
86    * JUnitDoclet moves marker to this method, if there is not match
87    * for them in the regenerated code and if the marker is not empty.
88    * This way, no test gets lost when regenerating after renaming.
89    * Method testVault is supposed to be empty.
90    */
91    public void testVault() throws Exception {
92      // JUnitDoclet begin method testcase.testVault
93      // JUnitDoclet end method testcase.testVault
94    }
95    
96    public static void main(String[] args) {
97      // JUnitDoclet begin method testcase.main
98          junit.textui.TestRunner.run(RepresentationFilterTest.class);
99      // JUnitDoclet end method testcase.main
100   }
101 }