Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Tantime committed Dec 6, 2023
2 parents 06b7087 + a0111b6 commit d5a0f26
Show file tree
Hide file tree
Showing 8 changed files with 210 additions and 109 deletions.
33 changes: 33 additions & 0 deletions app/src/main/java/cse/gradle/MockController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package cse.gradle;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

import cse.gradle.View.UserLogin;

public class MockController {
public boolean loginUser(String username, String password) throws IOException {
// Checks if the automic login file exists; if it does, and username matches the
// one in file, do automatic login
if ((new File("src/main/java/cse/gradle/local/login.txt")).exists()) {
File loginFile = new File("src/main/java/cse/gradle/local/login.txt");
BufferedReader reader = new BufferedReader(
new FileReader(loginFile));
if (username.equals(reader.readLine())) {
reader.close();
// String postResponse = model.performLoginRequest(loginFile);
// if (postResponse.equals("Error: Server down")) {
// appScenes.displayServerDownConstructor();
// return false;
// }
// reader.close();
return true;
}
reader.close();
}
return false;
}

}
3 changes: 1 addition & 2 deletions app/src/main/java/cse/gradle/local/login.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
bob2000
2000
login
32 changes: 31 additions & 1 deletion app/src/test/java/cse/gradle/Feature10Tests.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,36 @@

class Feature10Tests {
/* --------------------------------- UNIT TESTS --------------------------------- */

@Test
void automaticLoginChecked() {
MockController controller = new MockController();
boolean loginStatus = false;
try {
loginStatus = controller.loginUser("abc", "abc");
} catch (Exception e) {
System.out.println(e);
}
assert(!loginStatus);
}
/* --------------------------------- BDD TESTS --------------------------------- */
@Test
void loginLogoutWithAutoLogin() {
User Joe = new User("abc", "abc");
MockController controller = new MockController();
boolean loginStatus = false;
try {
loginStatus = controller.loginUser(Joe.getUsername(), Joe.getPassword());
} catch (Exception e) {
System.out.println(e);
}
assert(!loginStatus);
Joe = new User("login", "checked");
loginStatus = true;
try {
loginStatus = controller.loginUser(Joe.getUsername(), Joe.getPassword());
} catch (Exception e) {
System.out.println(e);
}
assert(loginStatus);
}
}
17 changes: 13 additions & 4 deletions app/src/test/java/cse/gradle/Feature12Tests.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,26 @@
* This Java source file was generated by the Gradle 'init' task.
*
*
* Functionality: Includes Unit and BDD Scenario Testing for User Story #_: ___________
* Functionality: Includes Unit and BDD Scenario Testing for User Story #12: Regenerate recipe
*/
package cse.gradle;

import org.junit.jupiter.api.Test;

import cse.gradle.Server.Server;
import cse.gradle.Server.APIs.MockGPT;

import static org.junit.jupiter.api.Assertions.*;
import java.util.ArrayList;


class Feature12Tests {
/* --------------------------------- UNIT TESTS --------------------------------- */

/* --------------------------------- BDD TESTS --------------------------------- */
@Test
void testRegenerateRecipe() throws Exception {
MockGPT chGpt = new MockGPT();
String[] response = chGpt.generateResponse("Lunch","meat, potatoes");
assertEquals("meat, potatoes", response[2]);
response = chGpt.generateResponse("Breakfast","bread");
assertEquals("bread", response[2]);
}
}
45 changes: 42 additions & 3 deletions app/src/test/java/cse/gradle/Feature14Tests.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,56 @@
* This Java source file was generated by the Gradle 'init' task.
*
*
* Functionality: Includes Unit and BDD Scenario Testing for User Story #_: ___________
* Functionality: Includes Unit and BDD Scenario Testing for Feature #14: Meal Type Tags
*/
package cse.gradle;

import org.bson.Document;
import org.junit.jupiter.api.Test;

import cse.gradle.Server.MongoDB;
import cse.gradle.Server.Server;

import static org.junit.jupiter.api.Assertions.*;

import java.util.ArrayList;
import java.util.List;


class Feature14Tests {
class Feature14Tests extends HTTPServerTests {
/* --------------------------------- UNIT TESTS --------------------------------- */
@Test
void editingTypeTags() {
Recipe r1 = new Recipe("eggs, bacon", "cook for 10 minutes", "breakfast", "American breakfast");
Recipe r2 = new Recipe("salmon, salad", "cook for 20 minutes", "lunch", "Healthy Lunch");
Recipe r3 = new Recipe("potatoes", "boil the potatoes", "dinner", "boiled potatoes");
List<Recipe> rList = new ArrayList<>();
rList.add(r1);
rList.add(r2);
rList.add(r3);

assertEquals(rList.get(0).getCategory(), "breakfast");
assertEquals(rList.get(1).getCategory(), "lunch");
assertEquals(rList.get(2).getCategory(), "dinner");
}


/* --------------------------------- BDD TESTS --------------------------------- */
}
@Test
void manipulatingTypeTagsInView() {
Recipe r1 = new Recipe("eggs, bacon", "cook for 10 minutes", "breakfast", "American breakfast");
Recipe r2 = new Recipe("salmon, salad", "cook for 20 minutes", "lunch", "Healthy Lunch");
Recipe r3 = new Recipe("potatoes", "boil the potatoes", "dinner", "boiled potatoes");
List<Recipe> rList = new ArrayList<>();
rList.add(r1);
rList.add(r2);
rList.add(r3);

MockView view = new MockView(rList);
List<Recipe> rList1 = view.getListOfRecipes();

assertEquals(rList1.get(0).getCategory(), "breakfast");
assertEquals(rList1.get(1).getCategory(), "lunch");
assertEquals(rList1.get(2).getCategory(), "dinner");
}
}
158 changes: 60 additions & 98 deletions app/src/test/java/cse/gradle/Feature16Tests.java
Original file line number Diff line number Diff line change
@@ -1,118 +1,80 @@
// package cse.gradle;
package cse.gradle;

// import org.junit.jupiter.api.Disabled;
// import org.junit.jupiter.api.Test;
// import java.util.List;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import java.util.List;

// import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertEquals;

// import java.util.ArrayList;
// import java.util.Date;
import java.util.ArrayList;
import java.util.Date;

// public class Feature16Tests extends HTTPServerTests {
public class Feature16Tests extends HTTPServerTests {

// @Test
// public void sortByDateMethodTest() {
// // Create a new List<Recipe> with 3 recipes
// List<Recipe> recipes = new ArrayList<Recipe>();
@Test
public void sortByDateMethodTest() throws InterruptedException {
// Create a new List<Recipe> with 3 recipes
List<Recipe> recipes = new ArrayList<Recipe>();

// recipes.add(new Recipe("eggs, bacon", "cook for 10 minutes", "breakfast", "American breakfast", new Date(2023,3,4)));
// recipes.add(new Recipe("salmon, salad", "cook for 20 minutes", "lunch", "Healthy Lunch"));
// recipes.add(new Recipe("potatoes", "boil the potatoes", "brunch", "boiled potatoes"));
recipes.add(new Recipe("eggs, bacon", "cook for 10 minutes", "breakfast", "American breakfast", new Date()));
Thread.sleep(1000);
recipes.add(new Recipe("salmon, salad", "cook for 20 minutes", "lunch", "Healthy Lunch", new Date()));
Thread.sleep(1000);
recipes.add(new Recipe("potatoes", "boil the potatoes", "brunch", "boiled potatoes", new Date()));

// Recipe.sortByDate(recipes, false);
Recipe.sortByDate(recipes, false);

// // Check that the recipes are sorted alphabetically A-Z (not case sensitive)
// assert(recipes.get(0).getName().equals("American breakfast"));
// assert(recipes.get(1).getName().equals("boiled potatoes"));
// assert(recipes.get(2).getName().equals("Healthy Lunch"));
// Check that the recipes are sorted oldest to newest
assert(recipes.get(0).getName().equals("American breakfast"));
assert(recipes.get(1).getName().equals("Healthy Lunch"));
assert(recipes.get(2).getName().equals("boiled potatoes"));

// Recipe.sortByName(recipes, true);
Recipe.sortByDate(recipes, true);

// // Check that the recipes are sorted alphabetically Z-A (not case sensitive)
// assert(recipes.get(0).getName().equals("Healthy Lunch"));
// assert(recipes.get(1).getName().equals("boiled potatoes"));
// assert(recipes.get(2).getName().equals("American breakfast"));
// }
// Check that the recipes are sorted newest to oldest
assert(recipes.get(0).getName().equals("boiled potatoes"));
assert(recipes.get(1).getName().equals("Healthy Lunch"));
assert(recipes.get(2).getName().equals("American breakfast"));
}

// @Test
// public void getRecipeListAToZTest() {
@Test
public void getRecipeListOldToNewTest() throws InterruptedException {

// // Create a new List<Recipe> with 3 recipes
// List<Recipe> recipes = new ArrayList<Recipe>();
// Create a new List<Recipe> with 3 recipes
List<Recipe> recipes = new ArrayList<Recipe>();

// recipes.add(new Recipe("eggs, bacon", "cook for 10 minutes", "breakfast", "American breakfast"));
// recipes.add(new Recipe("salmon, salad", "cook for 20 minutes", "lunch", "Healthy Lunch"));
// recipes.add(new Recipe("potatoes", "boil the potatoes", "brunch", "boiled potatoes"));
recipes.add(new Recipe("eggs, bacon", "cook for 10 minutes", "breakfast", "American breakfast", new Date()));
Thread.sleep(1000);
recipes.add(new Recipe("salmon, salad", "cook for 20 minutes", "lunch", "Healthy Lunch", new Date()));
Thread.sleep(1000);
recipes.add(new Recipe("potatoes", "boil the potatoes", "brunch", "boiled potatoes", new Date()));

// Create a new Mock Model that accesses test_user in the database
Model model = new MockModel();

// // Create a new Mock Model that accesses test_user in the database
// Model model = new MockModel();
// Add the recipes to the database
for (Recipe recipe : recipes) {
model.postRecipe(recipe);
}

// // Add the recipes to the database
// for (Recipe recipe : recipes) {
// model.postRecipe(recipe);
// }
// Get all the recipes from the database sorted oldest to newest
String getAllResponse = model.getRecipeList("oldest-newest", "");

// // Get all the recipes from the database sorted alphabetically A-Z (not case sensitive)
// String getAllResponse = model.getRecipeList("a-z", "");
// Delete the recipes from the database
for (Recipe recipe : recipes) {
model.deleteRecipe(recipe.getId().toString());
}

// // Delete the recipes from the database
// for (Recipe recipe : recipes) {
// model.deleteRecipe(recipe.getId().toString());
// }
// Parse the getAllResponse into a List<Recipe>
List<Recipe> recipeArrayList = Recipe.parseRecipeListFromString(getAllResponse);

// // Parse the getAllResponse into a List<Recipe>
// List<Recipe> recipeArrayList = Recipe.parseRecipeListFromString(getAllResponse);

// System.out.println("recipeArrayList: " + recipeArrayList);

// // Check that the recieved recipes are sorted alphabetically A-Z (not case sensitive)
// assertEquals(3, recipeArrayList.size());
// assert(recipeArrayList.get(0).getName().equals("American breakfast"));
// // System.out.println(recipeArrayList.get(1).getName());
// assert(recipeArrayList.get(1).getName().equals("boiled potatoes"));
// assert(recipeArrayList.get(2).getName().equals("Healthy Lunch"));
// }

// @Test
// public void getRecipeListZToATest() {

// // Create a new List<Recipe> with 3 recipes
// List<Recipe> recipes = new ArrayList<Recipe>();

// recipes.add(new Recipe("eggs, bacon", "cook for 10 minutes", "breakfast", "American breakfast"));
// recipes.add(new Recipe("salmon, salad", "cook for 20 minutes", "lunch", "Healthy Lunch"));
// recipes.add(new Recipe("potatoes", "boil the potatoes", "brunch", "boiled potatoes"));


// // Create a new Mock Model that accesses test_user in the database
// Model model = new MockModel();

// // Add the recipes to the database
// for (Recipe recipe : recipes) {
// model.postRecipe(recipe);
// }

// // Get all the recipes from the database sorted alphabetically A-Z (not case sensitive)
// String getAllResponse = model.getRecipeList("z-a", "");

// // Delete the recipes from the database
// for (Recipe recipe : recipes) {
// model.deleteRecipe(recipe.getId().toString());
// }

// // Parse the getAllResponse into a List<Recipe>
// List<Recipe> recipeArrayList = Recipe.parseRecipeListFromString(getAllResponse);

// System.out.println("recipeArrayList: " + recipeArrayList);
System.out.println("recipeArrayList: " + recipeArrayList);

// // Check that the recieved recipes are sorted alphabetically A-Z (not case sensitive)
// assertEquals(3, recipeArrayList.size());
// assert(recipeArrayList.get(2).getName().equals("American breakfast"));
// // System.out.println(recipeArrayList.get(1).getName());
// assert(recipeArrayList.get(1).getName().equals("boiled potatoes"));
// assert(recipeArrayList.get(0).getName().equals("Healthy Lunch"));

// }
// }
// Check that the recieved recipes are sorted alphabetically A-Z (not case sensitive)
assertEquals(3, recipeArrayList.size());

Check failure on line 74 in app/src/test/java/cse/gradle/Feature16Tests.java

View workflow job for this annotation

GitHub Actions / JUnit Test Report

Feature16Tests.getRecipeListOldToNewTest()

org.opentest4j.AssertionFailedError: expected: <3> but was: <4>
Raw output
org.opentest4j.AssertionFailedError: expected: <3> but was: <4>
	at app//org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
	at app//org.junit.jupiter.api.AssertionFailureBuilder.buildAndThrow(AssertionFailureBuilder.java:132)
	at app//org.junit.jupiter.api.AssertEquals.failNotEqual(AssertEquals.java:197)
	at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:150)
	at app//org.junit.jupiter.api.AssertEquals.assertEquals(AssertEquals.java:145)
	at app//org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:528)
	at app//cse.gradle.Feature16Tests.getRecipeListOldToNewTest(Feature16Tests.java:74)
	at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at [email protected]/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:566)
	at app//org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727)
	at app//org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
	at app//org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
	at app//org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
	at app//org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
	at app//org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
	at app//org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
	at app//org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
	at app//org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
	at app//org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
	at app//org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
	at app//org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
	at app//org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
	at app//org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
	at app//org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:217)
	at app//org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at app//org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
	at app//org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
	at app//org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
	at app//org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at app//org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at app//org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)
	at app//org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
	at app//org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at app//org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at app//org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at [email protected]/java.util.ArrayList.forEach(ArrayList.java:1541)
	at app//org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
	at app//org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
	at app//org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
	at app//org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
	at app//org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
	at app//org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
	at app//org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
	at app//org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
	at app//org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:107)
	at app//org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:88)
	at app//org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:54)
	at app//org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:67)
	at app//org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:52)
	at app//org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
	at app//org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
	at app//org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:110)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:90)
	at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:85)
	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:62)
	at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at [email protected]/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at [email protected]/java.lang.reflect.Method.invoke(Method.java:566)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
	at com.sun.proxy.$Proxy2.stop(Unknown Source)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:193)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
	at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
	at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:113)
	at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:65)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
	at app//worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
assert(recipes.get(0).getName().equals("American breakfast"));
assert(recipes.get(1).getName().equals("Healthy Lunch"));
assert(recipes.get(2).getName().equals("boiled potatoes"));

}
}
3 changes: 2 additions & 1 deletion app/src/test/java/cse/gradle/Feature18Tests.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* This Java source file was generated by the Gradle 'init' task.
*
*
* Functionality: Includes Unit and BDD Scenario Testing for User Story #_: ___________
* Functionality: Includes Unit and BDD Scenario Testing for User Story #18: Share Recipe by Unique URL
*/
package cse.gradle;

Expand All @@ -14,5 +14,6 @@
class Feature18Tests {
/* --------------------------------- UNIT TESTS --------------------------------- */


/* --------------------------------- BDD TESTS --------------------------------- */
}
Loading

0 comments on commit d5a0f26

Please sign in to comment.