// ShipControllerTest.java

package de.htwg.battleship.controller;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * ShipControllerTest
 * @author Moritz Sauter (SauterMoritz@gmx.de)
 * @version 1.00
 * @since 2014-11-27
 */
public class ShipControllerTest {

    public ShipControllerTest() {
    }

    @Before
    public void setUp() {
    }

    @After
    public void tearDown() {
    }

    /**
     * Test of placeShip method, of class ShipController.
     */
    @Test
    public void testPlaceShip() {
    }

}
@@ -72,23 +72,185 @@
 ort 
-org.junit.After
+de.htwg.battleship.model.Board;%0Aimport de.htwg.battleship.model.Player;%0Aimport de.htwg.battleship.model.Ship;%0Aimport org.junit.After;%0Aimport static org.junit.Assert.assertEquals
 ;%0Aim
@@ -449,87 +449,407 @@
 t %7B%0A
-%0A    public ShipControllerTest() %7B%0A    %7D%0A%0A    @Before%0A    public void setUp() %7B
+    %0A    ShipController sc;%0A    Player player1;%0A    Player player2;%0A    Ship ship1;%0A    Ship ship2;%0A%0A    public ShipControllerTest() %7B%0A    %7D%0A%0A    @Before%0A    public void setUp() %7B%0A        player1 = new Player(new Board());%0A        player2 = new Player(new Board());%0A        ship1 = new Ship(2, true, 4, 4);%0A        ship2 = new Ship(3, true, 3, 4);%0A        sc =  new ShipController(player1, player2);
 %0A   
@@ -1006,16 +1006,23 @@
  testPla
+yer1Pla
 ceShip()
@@ -1020,20 +1020,353 @@
 aceShip() %7B%0A
+        boolean expRes = true;%0A        boolean result = sc.placeShip(ship1, true);%0A        assertEquals(expRes, result);%0A        expRes = false;%0A        result = sc.placeShip(ship1, true);%0A        assertEquals(expRes, result);%0A        expRes = false;%0A        result = sc.placeShip(ship2, true);%0A        assertEquals(expRes, result);%0A
     %7D%0A%0A%7D

test for ShipController