implemented delete recipe test

This commit is contained in:
Mei Chang van der Werff 2025-11-27 04:43:49 +01:00
commit 1eab6f517a

View file

@ -43,4 +43,13 @@ class DetailViewTest {
assertIterableEquals(List.of("Bread", "Cheese", "Ham"), r.getIngredients()); assertIterableEquals(List.of("Bread", "Cheese", "Ham"), r.getIngredients());
assertIterableEquals(List.of("Step 1: ", "Step 2: "), r.getPreparationSteps()); assertIterableEquals(List.of("Step 1: ", "Step 2: "), r.getPreparationSteps());
} }
@Test
void deleteTest() throws IOException, InterruptedException {
Recipe r = dv.findId(testRecipe.getId());
dv.deleteRecipe(r.getId());
assertNull(dv.findId(testRecipe.getId()));
}
} }