1 package de.fu_berlin.ties.filter;
2
3 import junit.framework.TestCase;
4
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
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
23 extends TestCase
24
25 {
26
27 RepresentationFilter representationfilter = null;
28
29
30
31 public RepresentationFilterTest(String name) {
32
33 super(name);
34
35 }
36
37 public de.fu_berlin.ties.filter.RepresentationFilter createInstance() throws Exception {
38
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
47 }
48
49 protected void setUp() throws Exception {
50
51 super.setUp();
52 representationfilter = createInstance();
53
54 }
55
56 protected void tearDown() throws Exception {
57
58 representationfilter = null;
59 super.tearDown();
60
61 }
62
63 public void testBuildFeatures() throws Exception {
64
65
66 }
67
68 public void testInit() throws Exception {
69
70
71 }
72
73 public void testMatches() throws Exception {
74
75
76 }
77
78 public void testToString() throws Exception {
79
80
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
93
94 }
95
96 public static void main(String[] args) {
97
98 junit.textui.TestRunner.run(RepresentationFilterTest.class);
99
100 }
101 }