@@ -57,8 +57,8 @@ public void create() {
5757 int newId = created .getId ();
5858 Meal newMeal = getNew ();
5959 newMeal .setId (newId );
60- assertMatch (created , newMeal );
61- assertMatch (service .get (newId , USER_ID ), newMeal );
60+ MEAL_MATCHER . assertMatch (created , newMeal );
61+ MEAL_MATCHER . assertMatch (service .get (newId , USER_ID ), newMeal );
6262 }
6363
6464 @ Test
@@ -70,7 +70,7 @@ public void duplicateDateTimeCreate() {
7070 @ Test
7171 public void get () {
7272 Meal actual = service .get (ADMIN_MEAL_ID , ADMIN_ID );
73- assertMatch (actual , adminMeal1 );
73+ MEAL_MATCHER . assertMatch (actual , adminMeal1 );
7474 }
7575
7676 @ Test
@@ -87,30 +87,30 @@ public void getNotOwn() {
8787 public void update () {
8888 Meal updated = getUpdated ();
8989 service .update (updated , USER_ID );
90- assertMatch (service .get (MEAL1_ID , USER_ID ), getUpdated ());
90+ MEAL_MATCHER . assertMatch (service .get (MEAL1_ID , USER_ID ), getUpdated ());
9191 }
9292
9393 @ Test
9494 public void updateNotOwn () {
9595 assertThrows (NotFoundException .class , () -> service .update (meal1 , ADMIN_ID ));
96- assertMatch (service .get (MEAL1_ID , USER_ID ), meal1 );
96+ MEAL_MATCHER . assertMatch (service .get (MEAL1_ID , USER_ID ), meal1 );
9797 }
9898
9999 @ Test
100100 public void getAll () {
101- assertMatch (service .getAll (USER_ID ), meals );
101+ MEAL_MATCHER . assertMatch (service .getAll (USER_ID ), meals );
102102 }
103103
104104 @ Test
105105 public void getBetweenInclusive () {
106- assertMatch (service .getBetweenInclusive (
107- LocalDate .of (2020 , Month .JANUARY , 30 ),
108- LocalDate .of (2020 , Month .JANUARY , 30 ), USER_ID ),
106+ MEAL_MATCHER . assertMatch (service .getBetweenInclusive (
107+ LocalDate .of (2020 , Month .JANUARY , 30 ),
108+ LocalDate .of (2020 , Month .JANUARY , 30 ), USER_ID ),
109109 meal3 , meal2 , meal1 );
110110 }
111111
112112 @ Test
113113 public void getBetweenWithNullDates () {
114- assertMatch (service .getBetweenInclusive (null , null , USER_ID ), meals );
114+ MEAL_MATCHER . assertMatch (service .getBetweenInclusive (null , null , USER_ID ), meals );
115115 }
116116}
0 commit comments