Server/src/test/java/de/towerdefence/server/IntegrationTest.java
Snoweuph fef2ac97cd
Some checks failed
Build Application / build-docker (push) Blocked by required conditions
Build Application / release (push) Blocked by required conditions
Build Application / build (push) Has been cancelled
Quality Check / Testing (push) Has been cancelled
Quality Check / Static Analysis (push) Has been cancelled
Quality Check / Linting (push) Has been cancelled
Quality Check / Validate OAS (push) Has been cancelled
chore: setup
2025-02-01 14:47:05 +01:00

35 lines
925 B
Java

package de.towerdefence.server;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.web.servlet.MockMvc;
@SpringBootTest
@AutoConfigureMockMvc(addFilters = false)
@ActiveProfiles("test")
public abstract class IntegrationTest {
protected final static String baseUri = "/api/v1";
@Autowired
protected MockMvc mvc;
@Autowired
protected ObjectMapper objectMapper;
@BeforeEach
void setUp() {
//repository.deleteAll();
}
@AfterEach
void cleanUp() {
//repository.deleteAll();
}
}