1 package de.fu_berlin.ties.text;
2
3 import junit.framework.TestCase;
4
5 import de.fu_berlin.ties.text.TokenDetails;
6
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 TokenDetailsTest
18
19 extends TestCase
20
21 {
22
23 TokenDetails tokendetails = null;
24
25
26 public TokenDetailsTest(String name) {
27
28 super(name);
29
30 }
31
32 public de.fu_berlin.ties.text.TokenDetails createInstance() throws Exception {
33
34 return new de.fu_berlin.ties.text.TokenDetails("sample", 3, 247, true);
35
36 }
37
38 protected void setUp() throws Exception {
39
40 super.setUp();
41 tokendetails = createInstance();
42
43 }
44
45 protected void tearDown() throws Exception {
46
47 tokendetails = null;
48 super.tearDown();
49
50 }
51
52 public void testGetIndex() throws Exception {
53
54
55 }
56
57 public void testGetToken() throws Exception {
58
59
60 }
61
62 public void testIsWhitespaceBefore() throws Exception {
63
64
65 }
66
67 public void testSetGetRep() throws Exception {
68
69 int[] tests = {Integer.MIN_VALUE, -1, 0, 1, Integer.MAX_VALUE};
70
71 for (int i = 0; i < tests.length; i++) {
72 tokendetails.setRep(tests[i]);
73 assertEquals(tests[i], tokendetails.getRep());
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(TokenDetailsTest.class);
99
100 }
101 }