Browse Source

refactoring: Edited unit test in non-act part

Instance now static
remotes/origin/develop
David Hermann 2 years ago
parent
commit
98e47536db
  1. 9
      src/test/java/org/bitbiome/commands/ShopCommandTest.java

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

@ -6,30 +6,29 @@ import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertEquals;
public class ShopCommandTest { public class ShopCommandTest {
final ShopCommand shopCommand = new ShopCommand();
final Shop shop = new Shop(null, true, null, null); final Shop shop = new Shop(null, true, null, null);
@Test @Test
public void testValidInput1(){ 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 @Test
public void testValidInput2(){ public void testValidInput2(){
boolean expected = true; boolean expected = true;
boolean result = shopCommand.validInput("2");
boolean result = ShopCommand.validInput("2");
assertEquals(expected, result); assertEquals(expected, result);
} }
@Test @Test
public void testValidInput3(){ public void testValidInput3(){
boolean expected = true; boolean expected = true;
boolean result = shopCommand.validInput("3");
boolean result = ShopCommand.validInput("3");
assertEquals(expected, result); assertEquals(expected, result);
} }
@Test @Test
public void testValidInput4(){ public void testValidInput4(){
boolean expected = true; boolean expected = true;
boolean result = shopCommand.validInput("4");
boolean result = ShopCommand.validInput("4");
assertEquals(expected, result); assertEquals(expected, result);
} }

Loading…
Cancel
Save