-
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.
fix(user): turn update agreement api into writable trasaction
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 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
32 changes: 32 additions & 0 deletions
32
src/test/java/com/goolbitg/api/integration/BuyOrNotIntegrationTest.java
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package com.goolbitg.api.integration; | ||
|
||
import jakarta.transaction.Transactional; | ||
|
||
import org.junit.jupiter.api.Test; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.security.test.context.support.WithMockUser; | ||
import org.springframework.test.web.servlet.MockMvc; | ||
|
||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
|
||
/** | ||
* BuyOrNotIntegrationTest | ||
*/ | ||
@CustomIntegrationTest | ||
public class BuyOrNotIntegrationTest { | ||
|
||
@Autowired | ||
private MockMvc mockMvc; | ||
@Autowired | ||
private ObjectMapper mapper; | ||
|
||
private final String ROOT_USER_ID = "id0001"; | ||
private final String NORMAL_USER_ID = "id0002"; | ||
|
||
@Test | ||
@Transactional | ||
@WithMockUser(ROOT_USER_ID) | ||
void get_buyOrNots() throws Exception { | ||
|
||
} | ||
} |