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;
14 import static org.junit.Assert.*;
18 public class VillageStateTest {
20 public VillageStateTest() {
24 public static void setUpClass() throws Exception{
28 public static void tearDownClass() throws Exception{
36 public void tearDown() {
40 * Test of values method, of class VillageState.
43 public void testValues(){
44 System.out.println("values");
45 VillageState[] values = VillageState.values();
46 assertEquals(5, values.length);
51 * Test of valueOf method, of class VillageState.
54 public void testValueOf(){
60 * Test of getXmlName method, of class VillageState.
63 public void testGetXmlName(){
64 System.out.println("getXmlName");
65 assertEquals("prologue", VillageState.PROLOGUE.getXmlName());
66 assertEquals("progress", VillageState.PROGRESS.getXmlName());
67 assertEquals("epilogue", VillageState.EPILOGUE.getXmlName());
68 assertEquals("gameover", VillageState.GAMEOVER.getXmlName());
69 assertEquals("unknown", VillageState.UNKNOWN.getXmlName());