2 * License : The MIT License
3 * Copyright(c) 2009 olyutorskii
6 package jp.sourceforge.jindolf.corelib;
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.*;
17 public class DestinyTest {
19 public DestinyTest() {
23 public static void setUpClass() throws Exception{
27 public static void tearDownClass() throws Exception{
35 public void tearDown() {
39 * Test of values method, of class Destiny.
42 public void testValues(){
43 System.out.println("values");
44 Destiny[] values = Destiny.values();
45 assertEquals(5, values.length);
50 * Test of valueOf method, of class Destiny.
53 public void testValueOf(){
59 * Test of getMessage method, of class Destiny.
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());