From 45bad6d1266d0dfda7e41e9517f460ce9f828518 Mon Sep 17 00:00:00 2001 From: Igor Aprelev Date: Wed, 6 Dec 2023 00:03:50 -0800 Subject: [PATCH] Revert "Update Feature18Tests.java" This reverts commit ed59d68048e72bbd797ff59d7d6eecf5d057e2bf. --- .../test/java/cse/gradle/Feature18Tests.java | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/app/src/test/java/cse/gradle/Feature18Tests.java b/app/src/test/java/cse/gradle/Feature18Tests.java index 24b4f95..186e04e 100644 --- a/app/src/test/java/cse/gradle/Feature18Tests.java +++ b/app/src/test/java/cse/gradle/Feature18Tests.java @@ -12,11 +12,9 @@ import static org.junit.jupiter.api.Assertions.*; import java.util.ArrayList; -import java.util.List; class Feature18Tests { - // unit @Test void checkShare() { MockModel model = new MockModel(); @@ -24,27 +22,6 @@ void checkShare() { MockController controller = new MockController(); Recipe recipe = new Recipe("eggs, bacon", "cook for 10 minutes", "breakfast", "American breakfast"); - assertEquals("html", controller.shareRecipe(recipe)); - } - // BDD - @Test - void checkShareWithUser() { - Recipe r1 = new Recipe("eggs, bacon", "cook for 10 minutes", "breakfast", "American breakfast"); - Recipe r2 = new Recipe("salmon, salad", "cook for 20 minutes", "breakfast", "Healthy Lunch"); - Recipe r3 = new Recipe("potatoes", "boil the potatoes", "dinner", "boiled potatoes"); - Recipe r4 = new Recipe("salmon", "boil the salmon", "dinner", "boiled salmon"); - List rList = new ArrayList<>(); - rList.add(r1); - rList.add(r2); - rList.add(r3); - rList.add(r4); - MockModel model = new MockModel(); - User Joe = new User("abc", "123"); - Joe.setRecipeList(rList); - MockView view = new MockView(new ArrayList()); - MockController controller = new MockController(); - Recipe recipe = new Recipe("eggs, bacon", "cook for 10 minutes", "breakfast", "American breakfast"); - assertEquals("html", controller.shareRecipe(recipe)); } }