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