-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTemplateBase.java
More file actions
32 lines (27 loc) · 801 Bytes
/
Copy pathTemplateBase.java
File metadata and controls
32 lines (27 loc) · 801 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
* Copyright (c) 2025 happy
* This file can be used by MIT License.
* See details at [LICENSE](/LICENSE)
*/
package love.you.babe.contracts;
import io.restassured.module.mockmvc.RestAssuredMockMvc;
import openapi.api.TemplateApi;
import org.junit.jupiter.api.BeforeEach;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.annotation.Import;
import org.springframework.test.context.ActiveProfiles;
/**
* Contract Base.
*/
@SpringBootTest
@Import(TestcontainersConfiguration.class)
@ActiveProfiles("test")
public abstract class TemplateBase {
@Autowired
private TemplateApi templateApi;
@BeforeEach
void setUp() {
RestAssuredMockMvc.standaloneSetup(templateApi);
}
}