Skip to content

Commit

Permalink
Updated - Created wallet before wallet transactions tests
Browse files Browse the repository at this point in the history
  • Loading branch information
marsafy1 committed May 2, 2024
1 parent 54b401e commit d65fa6d
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ void testCreatePaymentRequest() {

@Test
void testCreateValidWalletTransactionRequest() {
Wallet wallet = Wallet.builder()
.withBalance(1000)
.withFreelancerId("1")
.build();
walletRepository.save(wallet);
CreateWalletTransactionRequest createWalletTransactionRequest =
CreateWalletTransactionRequest.builder()
.withAmount(1000)
Expand Down Expand Up @@ -198,6 +203,12 @@ void testCreateNotFoundWalletTransactionRequest() {
}
@Test
void testCreateDuplicatedWalletTransactionRequest() {
Wallet wallet = Wallet.builder()
.withBalance(1000)
.withFreelancerId("1")
.build();
walletRepository.save(wallet);

CreateWalletTransactionRequest createWalletTransactionRequest =
CreateWalletTransactionRequest.builder()
.withAmount(1000)
Expand Down Expand Up @@ -410,6 +421,7 @@ void testInvalidNegativeAmountWithdrawFromWalletRequest(){


}
@Test
void testCreateWalletCommand() {

CreateWalletRequest createWalletRequest = CreateWalletRequest.builder()
Expand Down

0 comments on commit d65fa6d

Please sign in to comment.