OSDN Git Service

改行コード指定
[jindolf/JinCore.git] / src / test / java / jp / sourceforge / jindolf / corelib / DestinyTest.java
1 /*
2  * License : The MIT License
3  * Copyright(c) 2009 olyutorskii
4  */
5
6 package jp.sourceforge.jindolf.corelib;
7
8 import org.junit.After;
9 import org.junit.AfterClass;
10 import org.junit.Before;
11 import org.junit.BeforeClass;
12 import org.junit.Test;
13 import static org.junit.Assert.*;
14
15 /**
16  */
17 public class DestinyTest {
18
19     public DestinyTest() {
20     }
21
22     @BeforeClass
23     public static void setUpClass() throws Exception{
24     }
25
26     @AfterClass
27     public static void tearDownClass() throws Exception{
28     }
29
30     @Before
31     public void setUp() {
32     }
33
34     @After
35     public void tearDown() {
36     }
37
38     /**
39      * Test of values method, of class Destiny.
40      */
41     @Test
42     public void testValues(){
43         System.out.println("values");
44         Destiny[] values = Destiny.values();
45         assertEquals(5, values.length);
46         return;
47     }
48
49     /**
50      * Test of valueOf method, of class Destiny.
51      */
52     @Test
53     public void testValueOf(){
54         // NOTHING
55         return;
56     }
57
58     /**
59      * Test of getMessage method, of class Destiny.
60      */
61     @Test
62     public void testGetMessage(){
63         System.out.println("getMessage");
64         assertEquals("生存",     Destiny.ALIVE.getMessage());
65         assertEquals("突然死",   Destiny.SUDDENDEATH.getMessage());
66         assertEquals("処刑死",   Destiny.EXECUTED.getMessage());
67         assertEquals("襲撃死",   Destiny.EATEN.getMessage());
68         assertEquals("ハム溶け", Destiny.DISSOLVE.getMessage());
69         return;
70     }
71
72 }