-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
mjsca
committed
Oct 10, 2024
1 parent
29af800
commit 2ad98ac
Showing
3 changed files
with
11 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,12 +29,17 @@ public class BaseMarket extends BaseAll { | |
|
||
// attributes that can be filtered during comparisons of assertions | ||
private static final String[] FILTERED_ATTRS = {"password", "dateCreated","number"}; | ||
|
||
// empty cart of an user | ||
public static String queryCartByUser = "tds CartDTO where user='[email protected]'"; | ||
// carts with items (products added) of an user, products must be available | ||
public static String queryCartByUserProductQuantity = "tds CartDTO,CartItemDTORes,ProductDTORes where CartDTO.user='[email protected]' and CartItemDTORes.productId=1 and CartItemDTORes.quantity=5 and ProductDTORes.available=1"; | ||
// order of an user | ||
public static String queryOrderByUser = "tds OrderDTO where userAccount='[email protected]' "; | ||
// products by age | ||
public static String queryProductByAge = "tds ProductDTORes where age=10"; | ||
// users by name | ||
public static String queryUserByName = "tds UserDTORes where name='Pepe'"; | ||
// user by email | ||
public static String queryUserByEmail = "tds UserDTORes where email ='[email protected]'"; | ||
|
||
@Override | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters