Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Valeriy Svydenko <[email protected]>
  • Loading branch information
svor committed Nov 24, 2023
1 parent 12b077d commit 0250164
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class FoodResource {

@GET
public List<Food> list() {
return Food.listAll(Sort.by("id"));
return Food.listAll(Sort.by("name"));
}

@GET
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ public void testListAll() {
.then().statusCode(200)
.extract().as(Food[].class);
assertEquals(5, foods.length);
assertEquals("Orange", foods[0].name);
assertEquals("Apple pie", foods[1].name);
assertEquals("Strawberry cake", foods[2].name);
assertEquals("Sandwich", foods[3].name);
assertEquals("Soup", foods[4].name);
assertEquals("Apple pie", foods[0].name);
assertEquals("Orange", foods[1].name);
assertEquals("Sandwich", foods[2].name);
assertEquals("Soup", foods[3].name);
assertEquals("Strawberry cake", foods[4].name);
}

@Test
Expand Down

0 comments on commit 0250164

Please sign in to comment.