|
@ -8,9 +8,15 @@ import static org.junit.jupiter.api.Assertions.assertEquals; |
|
|
public class ShopCommandTest { |
|
|
public class ShopCommandTest { |
|
|
final ShopCommand shopCommand = new ShopCommand(); |
|
|
final ShopCommand shopCommand = new ShopCommand(); |
|
|
@Test |
|
|
@Test |
|
|
public void testValidInput(){ |
|
|
|
|
|
|
|
|
public void testValidInput1(){ |
|
|
boolean expected = true; |
|
|
boolean expected = true; |
|
|
boolean result = shopCommand.validInput("1"); |
|
|
boolean result = shopCommand.validInput("1"); |
|
|
assertEquals(expected, result); |
|
|
assertEquals(expected, result); |
|
|
} |
|
|
} |
|
|
|
|
|
@Test |
|
|
|
|
|
public void testValidInput2(){ |
|
|
|
|
|
boolean expected = true; |
|
|
|
|
|
boolean result = shopCommand.validInput("2"); |
|
|
|
|
|
assertEquals(expected, result); |
|
|
|
|
|
} |
|
|
} |
|
|
} |