@@ -0,0 +1,2412 @@
+package org.mahjong4j.withsituation;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.mahjong4j.GeneralSituation;%0Aimport org.mahjong4j.PersonalSituation;%0Aimport org.mahjong4j.Player;%0Aimport org.mahjong4j.hands.MahjongHands;%0Aimport org.mahjong4j.tile.MahjongTile;%0Aimport org.mahjong4j.yaku.normals.MahjongYakuEnum;%0Aimport org.mahjong4j.yaku.yakuman.MahjongYakumanEnum;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0Aimport static junit.framework.TestCase.assertEquals;%0Aimport static org.hamcrest.CoreMatchers.hasItems;%0Aimport static org.junit.Assert.assertThat;%0Aimport static org.mahjong4j.Score.SCORE2400;%0Aimport static org.mahjong4j.tile.MahjongTile.*;%0Aimport static org.mahjong4j.yaku.normals.MahjongYakuEnum.CHITOITSU;%0A%0A/**%0A * @author yu1ro%0A */%0Apublic class ChitoitsuWithSituationTest %7B%0A    MahjongHands hands;%0A    Player player;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        int%5B%5D tiles = %7B%0A            2, 0, 0, 0, 2, 0, 0, 2, 0,%0A            0, 0, 0, 0, 2, 0, 0, 0, 0,%0A            0, 0, 2, 0, 0, 0, 0, 2, 0,%0A            0, 2, 0, 0,%0A            0, 0, 0%0A        %7D;%0A        MahjongTile last = M8;%0A        List%3CMahjongTile%3E dora = new ArrayList%3C%3E(1);%0A        dora.add(CHN);%0A%0A        List%3CMahjongTile%3E uradora = new ArrayList%3C%3E(1);%0A        uradora.add(M2);%0A        GeneralSituation general;%0A        general = new GeneralSituation(true, false, PEI, dora, uradora);%0A        PersonalSituation personal;%0A        personal = new PersonalSituation(true, false, false, false, false, false, false, SHA);%0A        hands = new MahjongHands(tiles, last);%0A        player = new Player(hands, general, personal);%0A        player.calculate();%0A    %7D%0A%0A    @Test%0A    public void testGetYakumanList() throws Exception %7B%0A        List%3CMahjongYakumanEnum%3E actual = player.getYakumanList();%0A%0A        assertEquals(0, actual.size());%0A    %7D%0A%0A    @Test%0A    public void testGetNormalYakuList() throws Exception %7B%0A        List%3CMahjongYakuEnum%3E actual = player.getNormalYakuList();%0A%0A        assertEquals(1, actual.size());%0A        assertThat(actual, hasItems(CHITOITSU));%0A    %7D%0A%0A    @Test%0A    public void testGetHan() throws Exception %7B%0A        assertEquals(2, player.getHan());%0A    %7D%0A%0A    @Test%0A    public void testGetFu() throws Exception %7B%0A        assertEquals(25, player.getFu());%0A    %7D%0A%0A    @Test%0A    public void testGetScore() throws Exception %7B%0A        assertEquals(SCORE2400, player.getScore());%0A    %7D%0A%7D

add chitoitsu test