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;

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

  @Test
  public void fireTorpedos_Single_Success(){
    // Arrange

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

    // Assert
    assertEquals(true, result);
  }

  @Test
  public void fireTorpedos_All_Success(){
    // Arrange

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

    // Assert
    assertEquals(true, result);
  }

}

@@ -194,16 +194,56 @@
 00 ship;
+%0A  private TorpedoStore mock1, mock2;%0A  
 %0A%0A  @Bef
@@ -276,31 +276,16 @@
     
-this.ship = new GT4500(
+mock1 = 
 mock
@@ -304,17 +304,29 @@
 e.class)
-,
+;%0A    mock2 =
  mock(To
@@ -342,16 +342,57 @@
 e.class)
+;%0A    this.ship = new GT4500(mock1, mock2
 );%0A  %7D%0A%0A
@@ -529,16 +529,21 @@
 SINGLE);
+%0A    
 %0A%0A    //

Update GT4500Test.java