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 VillageStateTest {
19 public VillageStateTest() {
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 VillageState.
42 public void testValues(){
43 System.out.println("values");
44 VillageState[] values = VillageState.values();
45 assertEquals(5, values.length);
50 * Test of valueOf method, of class VillageState.
53 public void testValueOf(){
59 * Test of getXmlName method, of class VillageState.
62 public void testGetXmlName(){
63 System.out.println("getXmlName");
64 assertEquals("prologue", VillageState.PROLOGUE.getXmlName());
65 assertEquals("progress", VillageState.PROGRESS.getXmlName());
66 assertEquals("epilogue", VillageState.EPILOGUE.getXmlName());
67 assertEquals("gameover", VillageState.GAMEOVER.getXmlName());
68 assertEquals("unknown", VillageState.UNKNOWN.getXmlName());