Browse Source

unittest: testValidInput2

remotes/origin/shop
Max Gerbeth 2 years ago
parent
commit
ac443832b7
  1. 8
      src/test/java/org/bitbiome/commands/ShopCommandTest.java

8
src/test/java/org/bitbiome/commands/ShopCommandTest.java

@ -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);
}
}
Loading…
Cancel
Save