implemented delete recipe test
This commit is contained in:
parent
b1a8003f9b
commit
1eab6f517a
1 changed files with 9 additions and 0 deletions
|
|
@ -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()));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue