Skip to content

Commit

Permalink
hotfix nos testes, retirada da função 'setUP()' do bevControl
Browse files Browse the repository at this point in the history
  • Loading branch information
italo48 committed Apr 4, 2019
1 parent d2e7d35 commit 7b37351
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions src/main/java/bvs/controle/BeverageControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public class BeverageControl {
public BeverageControl(InMemoryDB datab, StockControl stock) {
this.db = datab;
this.stock = stock;
this.setUP();
}

public boolean addBeverage(Beverage bev) {
Expand Down Expand Up @@ -80,12 +79,4 @@ public Beverage toBeverage(String beverage) {
}
return null;
}

private void setUP() {
this.addBeverage(new Beverage(1, "Itaipava", "Cerveja", 1.39f, (short)2, 600));
this.addBeverage(new Beverage(2, "Ypioca Prata", "Cachaça", 4.79f, (short)30, 500));
Beverage absinto = new Beverage(3, "Green Demon", "Absinto", 150.50f, (short)72, 50);
absinto.setProhibited(true);
this.addBeverage(absinto);
}
}
4 changes: 2 additions & 2 deletions src/test/java/bvs/test/Stock/StockTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ public void CalculateTheValueInRsTest() {
@Test
public void LevelStockTest() {

byte expecteds = 50;
byte expecteds = 49;
assertEquals(expecteds, stock.LevelStock());
}
@Test
public void LevelBeverageTest() {
short expecteds = 50;
short expecteds = 49;
assertEquals(expecteds, stock.LevelBeverage(1));
}
@Test
Expand Down

0 comments on commit 7b37351

Please sign in to comment.