package hu.bme.mit.spaceship;

import static org.junit.Assert.*;
import static org.mockito.Mockito.*;

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

public class GT4500Test {

  private GT4500 ship;
  private TorpedoStore mock1;
  private TorpedoStore mock2;

  @Before
  public void init(){
    mock1 = mock(TorpedoStore.class);
    mock2 = mock(TorpedoStore.class);
    this.ship = new GT4500(mock1, mock2);
  }

  @Test
  public void fireTorpedos_Single_Success(){
    // Arrange

    // Act
    boolean result = ship.fireTorpedos(FiringMode.SINGLE);

    // Assert
    assertEquals(true, result);
    
    verify(mock1, times(1)).fire(1);

  }

  @Test
  public void fireTorpedos_All_Success(){
    // Arrange

    // Act
    boolean result = ship.fireTorpedos(FiringMode.ALL);

    // Assert
    assertEquals(true, result);
  }

}

@@ -775,24 +775,396 @@
 Mode.ALL);%0A%0A
+    // Assert%0A    assertEquals(true, result);%0A  %7D%0A  %0A  @Test%0A  public void fireLasres_Single_Success()%7B%0A    // Arrange%0A%0A    // Act%0A    boolean result = ship.fireLasers(FiringMode.SINGLE);%0A%0A    // Assert%0A    assertEquals(true, result);%0A  %7D%0A  %0A  @Test%0A  public void fireLasres_All_Success()%7B%0A    // Arrange%0A%0A    // Act%0A    boolean result = ship.fireLasers(FiringMode.ALL);%0A%0A
     // Asser

Update GT4500Test.java