File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/test/java/fun/trackmoney/category/service Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ void findById_shouldReturnCategory_whenIdExists() {
5454 CategoryEntity expectedCategory = new CategoryEntity ();
5555 expectedCategory .setCategoryId (categoryId );
5656 expectedCategory .setName ("Food" );
57+ expectedCategory .setColor ("#fffff" );
5758
5859 when (categoryRepository .findById (categoryId )).thenReturn (Optional .of (expectedCategory ));
5960
@@ -63,6 +64,7 @@ void findById_shouldReturnCategory_whenIdExists() {
6364 // Assert
6465 assertEquals (expectedCategory .getCategoryId (), actualCategory .getCategoryId ());
6566 assertEquals (expectedCategory .getName (), actualCategory .getName ());
67+ assertEquals (expectedCategory .getColor (), actualCategory .getColor ());
6668 }
6769
6870 @ Test
You can’t perform that action at this time.
0 commit comments