@@ -0,0 +1,1616 @@
+package ships.model;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport org.junit.After;%0Aimport org.junit.AfterClass;%0Aimport org.junit.Before;%0Aimport org.junit.BeforeClass;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.*;%0A%0A/**%0A *%0A * @author r4pt0r%0A */%0Apublic class ShipTest %7B%0A%0A    public ShipTest() %7B%0A    %7D%0A%0A    @BeforeClass%0A    public static void setUpClass() %7B%0A    %7D%0A%0A    @AfterClass%0A    public static void tearDownClass() %7B%0A    %7D%0A%0A    @Before%0A    public void setUp() %7B%0A    %7D%0A%0A    @After%0A    public void tearDown() %7B%0A    %7D%0A%0A    @Test%0A    public void shouldReturnListOfFieldTheVerticalShipOccupies() %7B%0A        //given%0A        Ship ship = new Ship(Ship.Size.FOUR, new FieldImpl(1, 1), Ship.Direction.VERTICAL);%0A        //when%0A        List%3CField%3E actual = ship.getFieldList();%0A        List%3CField%3E expected = new ArrayList%3C%3E();%0A        expected.add(new FieldImpl(1, 1));%0A        expected.add(new FieldImpl(2, 1));%0A        expected.add(new FieldImpl(3, 1));%0A        expected.add(new FieldImpl(4, 1));%0A        //then%0A        assertEquals(expected, actual);%0A    %7D%0A%0A    @Test%0A    public void shouldReturnListOfFieldTheHorizontalShipOccupies() %7B%0A        //given%0A        Ship ship = new Ship(Ship.Size.FOUR, new FieldImpl(1, 1), Ship.Direction.HORIZONTAL);%0A        //when%0A        List%3CField%3E actual = ship.getFieldList();%0A        List%3CField%3E expected = new ArrayList%3C%3E();%0A        expected.add(new FieldImpl(1, 1));%0A        expected.add(new FieldImpl(1, 2));%0A        expected.add(new FieldImpl(1, 3));%0A        expected.add(new FieldImpl(1, 4));%0A        //then%0A        assertEquals(expected, actual);%0A    %7D%0A%0A%7D%0A

Add tests for ship's field occupation