Skip to content
Snippets Groups Projects
Commit ed1a02e0 authored by Stian Lyng's avatar Stian Lyng
Browse files

bugfix: change assertion to false

parent 615b113b
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,8 @@ public class RecipeRepositoryTest { ...@@ -24,8 +24,8 @@ public class RecipeRepositoryTest {
.build(); .build();
recipeRepository.save(recipe); recipeRepository.save(recipe);
List<Recipe> foundRecipes = recipeRepository.getByName("Pizza Margherita"); List<Recipe> foundRecipes = recipeRepository.findAllByName("Pizza Margherita");
assertTrue(foundRecipes.isEmpty()); assertFalse(foundRecipes.isEmpty());
assertEquals(1, foundRecipes.size()); assertEquals(1, foundRecipes.size());
assertEquals(recipe.getName(), foundRecipes.get(0).getName()); assertEquals(recipe.getName(), foundRecipes.get(0).getName());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment