fix checkstyle error

This commit is contained in:
Mei Chang van der Werff 2025-12-18 04:27:04 +01:00
commit b553cee6fd

View file

@ -18,7 +18,7 @@ public class RecipeIngredientTest {
private RecipeIngredient piece; private RecipeIngredient piece;
private RecipeIngredient pinch; private RecipeIngredient pinch;
private RecipeIngredient handful; private RecipeIngredient handful;
private RecipeIngredient to_taste; private RecipeIngredient toTaste;
private RecipeIngredient invalid; private RecipeIngredient invalid;
@BeforeEach @BeforeEach
@ -36,7 +36,7 @@ public class RecipeIngredientTest {
piece = new RecipeIngredient(recipe,ingredient,1,"PIECE"); piece = new RecipeIngredient(recipe,ingredient,1,"PIECE");
pinch = new RecipeIngredient(recipe,ingredient,1,"PINCH"); pinch = new RecipeIngredient(recipe,ingredient,1,"PINCH");
handful = new RecipeIngredient(recipe,ingredient,1,"HANDFUL"); handful = new RecipeIngredient(recipe,ingredient,1,"HANDFUL");
to_taste = new RecipeIngredient(recipe,ingredient,1,"TO_TASTE"); toTaste = new RecipeIngredient(recipe,ingredient,1,"TO_TASTE");
invalid = new RecipeIngredient(recipe,ingredient,1,"INVALID"); invalid = new RecipeIngredient(recipe,ingredient,1,"INVALID");
} }
@ -59,7 +59,7 @@ public class RecipeIngredientTest {
void getInformalUnitTest(){ void getInformalUnitTest(){
assertEquals(Unit.PINCH, pinch.getUnit()); assertEquals(Unit.PINCH, pinch.getUnit());
assertEquals(Unit.HANDFUL, handful.getUnit()); assertEquals(Unit.HANDFUL, handful.getUnit());
assertEquals(Unit.TO_TASTE, to_taste.getUnit()); assertEquals(Unit.TO_TASTE, toTaste.getUnit());
} }
@Test @Test
@ -84,7 +84,7 @@ public class RecipeIngredientTest {
void convertInformalToBaseUnit(){ void convertInformalToBaseUnit(){
assertEquals(0,pinch.amountInBaseUnit()); assertEquals(0,pinch.amountInBaseUnit());
assertEquals(0,handful.amountInBaseUnit()); assertEquals(0,handful.amountInBaseUnit());
assertEquals(0,to_taste.amountInBaseUnit()); assertEquals(0, toTaste.amountInBaseUnit());
} }
@Test @Test