@@ -0,0 +1,1649 @@
+package com.example.model.command;%0A%0Aimport com.example.model.Board;%0Aimport com.example.model.Game;%0Aimport com.example.model.Point;%0Aimport junit.framework.TestCase;%0A%0A/**%0A * Created by zonoise on 2016/02/19.%0A */%0Apublic class PutCommandTest extends TestCase %7B%0A%0A    public void setUp() throws Exception %7B%0A        super.setUp();%0A    %7D%0A%0A%0A    /*%0A0 0 0 0 0 0 0 0%0A0 0 0 0 0 0 0 0%0A0 0 0 0 0 0 0 0%0A0 0 0 W B 0 0 0%0A0 0 0 B W 0 0 0%0A0 0 0 0 0 0 0 0%0A0 0 0 0 0 0 0 0%0A0 0 0 0 0 0 0 0%0A */%0A    public Game put(int x,int y)%7B%0A        Board board = new Board();%0A        board.init();%0A        Game game = new Game(board);%0A        game.run(new InitializeCommand());%0A        return game;%0A//        Point point = new Point(x,y);%0A//        PutCommand p = new PutCommand(point);%0A//        game.run(p);%0A//        //p.execute(game);%0A//        return game;%0A    %7D%0A%0A    public void test1()%7B%0A        Game game = put(2,3);%0A        String after = game.getBoard().toDetailString();%0A        System.out.println(after);%0A        String expect =%0A        %220 0 0 0 0 0 0 0%5Cn%22 +%0A        %220 0 0 0 0 0 0 0%5Cn%22 +%0A        %220 0 0 0 0 0 0 0%5Cn%22 +%0A        %220 0 0 W B 0 0 0%5Cn%22 +%0A        %220 0 0 B W 0 0 0%5Cn%22 +%0A        %220 0 0 0 0 0 0 0%5Cn%22 +%0A        %220 0 0 0 0 0 0 0%5Cn%22 +%0A        %220 0 0 0 0 0 0 0%5Cn%22;%0A        assertEquals(expect,after);%0A    %7D%0A%0A    public void test2()%7B%0A        int x = 2;%0A        int y = 3;%0A        Board board = new Board();%0A        board.init();%0A        Game game = new Game(board);%0A        game.run(new InitializeCommand());%0A        Point point = new Point(x,y);%0A        PutCommand p = new PutCommand(point);%0A        game.run(p);%0A        //p.execute(game);%0A        //return game;%0A    %7D%0A%7D%0A

add PutCommandTest