fixed weird spacing
This commit is contained in:
parent
da0c401168
commit
e4fd15b120
1 changed files with 4 additions and 2 deletions
|
|
@ -9,7 +9,6 @@ import java.util.Map;
|
|||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
public class RecipeIngredientTest {
|
||||
|
||||
private Map<String, FormalIngredient> ingredientUnitMap;
|
||||
private Map<String, VagueIngredient> ingredientDescriptorMap;
|
||||
|
||||
|
|
@ -17,12 +16,14 @@ public class RecipeIngredientTest {
|
|||
Ingredient ingredient = new Ingredient("Bread", 1, 2, 3);
|
||||
return new FormalIngredient(ingredient, 1.0, unit);
|
||||
}
|
||||
|
||||
private VagueIngredient getVague(String descriptor) {
|
||||
Ingredient ingredient = new Ingredient("Bread", 1, 2, 3);
|
||||
return new VagueIngredient(ingredient, descriptor);
|
||||
}
|
||||
|
||||
@BeforeEach
|
||||
void setup(){
|
||||
void setup() {
|
||||
ingredientUnitMap = new HashMap<>();
|
||||
ingredientDescriptorMap = new HashMap<>();
|
||||
List.of("g", "kg", "ml", "l", "tbsp", "cup")
|
||||
|
|
@ -37,6 +38,7 @@ public class RecipeIngredientTest {
|
|||
FormalIngredient fi = new FormalIngredient(ingredient, 1.0, "g");
|
||||
assertEquals(ingredient, fi.getIngredient());
|
||||
}
|
||||
|
||||
@Test
|
||||
void testInstantiateVagueIngredient() {
|
||||
Ingredient ingredient = new Ingredient("Bread", 1, 2, 3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue