forked from cosc442spring2017/FreeCol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNumberTest.java
More file actions
111 lines (98 loc) · 2.24 KB
/
NumberTest.java
File metadata and controls
111 lines (98 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
package net.sf.freecol.common.i18n;
import org.junit.*;
import static org.junit.Assert.*;
/**
* The class <code>NumberTest</code> contains tests for the class <code>{@link Number}</code>.
*
* @generatedBy CodePro at 5/15/17 10:02 AM
* @author michaeldavies
* @version $Revision: 1.0 $
*/
public class NumberTest {
/**
* Run the String getKey(double) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 5/15/17 10:02 AM
*/
@Test
public void testGetKey_1()
throws Exception {
Number fixture = new DefaultNumberRule();
double selector = 1.0;
String result = fixture.getKey(selector);
// add additional test code here
assertEquals("other", result);
}
/**
* Run the String getKey(String,String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 5/15/17 10:02 AM
*/
@Test
public void testGetKey_2()
throws Exception {
Number fixture = new DefaultNumberRule();
String selector = "";
String template = "";
String result = fixture.getKey(selector, template);
// add additional test code here
assertEquals("other", result);
}
/**
* Run the String getKey(String,String) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 5/15/17 10:02 AM
*/
@Test
public void testGetKey_3()
throws Exception {
Number fixture = new DefaultNumberRule();
String selector = "";
String template = "";
String result = fixture.getKey(selector, template);
// add additional test code here
assertEquals("other", result);
}
/**
* Perform pre-test initialization.
*
* @throws Exception
* if the initialization fails for some reason
*
* @generatedBy CodePro at 5/15/17 10:02 AM
*/
@Before
public void setUp()
throws Exception {
// add additional set up code here
}
/**
* Perform post-test clean-up.
*
* @throws Exception
* if the clean-up fails for some reason
*
* @generatedBy CodePro at 5/15/17 10:02 AM
*/
@After
public void tearDown()
throws Exception {
// Add additional tear down code here
}
/**
* Launch the test.
*
* @param args the command line arguments
*
* @generatedBy CodePro at 5/15/17 10:02 AM
*/
public static void main(String[] args) {
new org.junit.runner.JUnitCore().run(NumberTest.class);
}
}