Skip to content

Commit

Permalink
fix RecipeListTest.testSaveRecipes()
Browse files Browse the repository at this point in the history
  • Loading branch information
qzzzppt committed Dec 4, 2023
1 parent 5813ed1 commit 4513f2e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/test/java/RecipeListTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void testSaveRecipes() {
recipe2.getMealType().setText("breakfast2");
recipe2.getIngredient().setText("ingredient2");
recipe2.getInstruction().setText("instruction2");
recipe2.getInstruction().setText("https123");
recipe2.getImageURL().setText("https123");
recipe2.addRecipe();

try {
Expand All @@ -112,8 +112,6 @@ public void testSaveRecipes() {

List<String> lines = Files.readAllLines(Path.of("recipes.csv"));

System.out.print(lines.get(0));

String[] parts1 = lines.get(0).split("-", 4);
assertEquals("Recipe 1", parts1[0]);

Expand Down

0 comments on commit 4513f2e

Please sign in to comment.