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