Skip to content

Commit

Permalink
Cambios menores
Browse files Browse the repository at this point in the history
  • Loading branch information
nmarulo committed Oct 22, 2024
1 parent 2d31856 commit 5ec3f86
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Collections;
import java.util.List;

@Getter
public class ShoppingListServiceTestUtil {
Expand Down Expand Up @@ -44,7 +43,7 @@ private User initUser() {
}

private ShoppingList initShoppingList(User user) {
ShoppingList shoppingList = new ShoppingList();
final var shoppingList = new ShoppingList();

shoppingList.setId(FakeTestUtil.randomInteger());
shoppingList.setName(FakeTestUtil.randomSentence());
Expand All @@ -60,7 +59,7 @@ private ShoppingList initShoppingList(User user) {
}

private Page<ShoppingList> initShoppingListPage(ShoppingList shoppingList) {
List<ShoppingList> content = Collections.singletonList(shoppingList);
final var content = Collections.singletonList(shoppingList);
final var pageable = PageRequest.of(FakeTestUtil.randomInteger(), FakeTestUtil.randomInteger());

return new PageImpl<>(content, pageable, FakeTestUtil.randomInteger());
Expand Down

0 comments on commit 5ec3f86

Please sign in to comment.