--- /dev/null
+package jp.co.dorakuplus;
+
+import static org.hamcrest.CoreMatchers.*;
+import static org.junit.Assert.*;
+
+import java.util.logging.Logger;
+
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Rule;
+import org.junit.Test;
+import org.junit.rules.TestName;
+
+public class MasqueradeTest {
+
+ Masquerade sut;
+ Logger logger = Logger.getLogger(MasqueradeTest.class.getName());
+
+ @Rule public TestName name = new TestName();
+
+ @BeforeClass
+ public static void setupClass() {
+ // 最初のテストケースの実行前に1回のみ実行する
+
+ }
+
+ @Before
+ public void setup() {
+ // テストケース毎に、開始前に実行する
+ // インスタンス生成
+ logger.info(name.getMethodName() + "start!!!");
+ sut = new Masquerade();
+ }
+
+ @After
+ public void tearDown() {
+ // テストケースごとに、実行後に実施する
+ // ログ出力など
+ logger.info(name.getMethodName() + "end!!!");
+ }
+
+ @AfterClass
+ public static void tearDownClass() {
+ // 最後のテストケースの後に1回だけ実施する
+ // セッションクローズなど
+ }
+
+ @Test
+ public void findZodiacに2008年を指定すると子年を返す() {
+ String expected = "子年";
+ String actual = sut.findZodiac(2008);
+ assertThat(actual, is(expected));
+ }
+
+ @Test
+ public void findZodiacに1999年を指定すると卯年を返す() {
+ String expected = "卯年";
+ String actual = sut.findZodiac(1999);
+ assertThat(actual, is(expected));
+ }
+
+ @Test
+ public void findZodiacに2013年を指定すると寅年を返さない() {
+ String expected = "寅年";
+ String actual = sut.findZodiac(2013);
+ assertThat(actual, is(not(expected)));
+ }
+
+ @Test
+ public void testName() throws Exception {
+
+ }
+}