diff --git a/src/test/java/guru/springframework/services/IngredientServiceImplTest.java b/src/test/java/guru/springframework/services/IngredientServiceImplTest.java index 4f78e05c49..7431dbb8f5 100644 --- a/src/test/java/guru/springframework/services/IngredientServiceImplTest.java +++ b/src/test/java/guru/springframework/services/IngredientServiceImplTest.java @@ -64,10 +64,10 @@ public void findByRecipeIdAndReceipeIdHappyPath() throws Exception { when(recipeRepository.findById(anyLong())).thenReturn(recipeOptional); - //then + //when IngredientCommand ingredientCommand = ingredientService.findByRecipeIdAndIngredientId(1L, 3L); - //when + //then assertEquals(Long.valueOf(3L), ingredientCommand.getId()); assertEquals(Long.valueOf(1L), ingredientCommand.getRecipeId()); verify(recipeRepository, times(1)).findById(anyLong());