Skip to content

Commit

Permalink
One Thousand One Hundred Sixty Four Commit: Implement
Browse files Browse the repository at this point in the history
testFindByCustomerAndProduct() method
  • Loading branch information
AAdewunmi committed Mar 5, 2025
1 parent 7577b73 commit c99afc6
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,17 @@ public void testFindByCustomer() {

assertThat(listItems.size()).isEqualTo(2);
}

@Test
public void testFindByCustomerAndProduct() {
Integer customerId = 1;
Integer productId = 1;

CartItem item = repo.findByCustomerAndProduct(new Customer(customerId), new Product(productId));

assertThat(item).isNotNull();

System.out.println(item);
}

}

0 comments on commit c99afc6

Please sign in to comment.