forked from cosc442spring2017/FreeCol
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOtherNumberRuleTest.java
More file actions
74 lines (67 loc) · 1.61 KB
/
OtherNumberRuleTest.java
File metadata and controls
74 lines (67 loc) · 1.61 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
package net.sf.freecol.common.i18n;
import org.junit.*;
import static org.junit.Assert.*;
/**
* The class <code>OtherNumberRuleTest</code> contains tests for the class <code>{@link OtherNumberRule}</code>.
*
* @generatedBy CodePro at 5/15/17 12:16 PM
* @author michaeldavies
* @version $Revision: 1.0 $
*/
public class OtherNumberRuleTest {
/**
* Run the Number.Category getCategory(double) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 5/15/17 12:16 PM
*/
@Test
public void testGetCategory_1()
throws Exception {
OtherNumberRule fixture = new OtherNumberRule();
double input = 1.0;
Number.Category result = fixture.getCategory(input);
// add additional test code here
assertNotNull(result);
assertEquals("other", result.name());
assertEquals("other", result.toString());
assertEquals(5, result.ordinal());
}
/**
* Perform pre-test initialization.
*
* @throws Exception
* if the initialization fails for some reason
*
* @generatedBy CodePro at 5/15/17 12:16 PM
*/
@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 12:16 PM
*/
@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 12:16 PM
*/
public static void main(String[] args) {
new org.junit.runner.JUnitCore().run(OtherNumberRuleTest.class);
}
}