Compare commits
No commits in common. "137095814f2c8cdb1d67ae369634a7a844e990aa" and "b31685b79df0dabf55c98622b75f2808f77050f1" have entirely different histories.
137095814f
...
b31685b79d
3 changed files with 1 additions and 14 deletions
|
@ -110,7 +110,6 @@ tasks {
|
|||
}
|
||||
withType<Test> {
|
||||
useJUnitPlatform()
|
||||
maxParallelForks = 1
|
||||
}
|
||||
named("compileJava").configure {
|
||||
dependsOn(swaggerSources.getByName("pmt").code)
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"invokerPackage": "de.hmmh.pmt",
|
||||
"java8": false,
|
||||
"java11": true,
|
||||
"dateLibrary": "java8-localdatetime",
|
||||
"dateLibrary": "java11",
|
||||
"library": "spring-boot3",
|
||||
"defaultInterfaces": false,
|
||||
"serializableModel": true
|
||||
|
|
|
@ -1,17 +1,12 @@
|
|||
package de.hmmh.pmt;
|
||||
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import de.hmmh.pmt.db.Project;
|
||||
import de.hmmh.pmt.db.ProjectRepository;
|
||||
import de.hmmh.pmt.employee.ApiClientFactory;
|
||||
import de.hmmh.pmt.employee.api.EmployeeControllerApi;
|
||||
import de.hmmh.pmt.employee.api.QualificationControllerApi;
|
||||
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.boot.test.mock.mockito.MockBean;
|
||||
import org.springframework.test.context.ActiveProfiles;
|
||||
import org.springframework.test.web.servlet.MockMvc;
|
||||
|
||||
|
@ -28,15 +23,8 @@ public abstract class IntegrationTest {
|
|||
@Autowired
|
||||
protected MockMvc mvc;
|
||||
@Autowired
|
||||
protected ObjectMapper objectMapper;
|
||||
@Autowired
|
||||
protected ProjectRepository projectRepository;
|
||||
|
||||
@MockBean
|
||||
protected EmployeeControllerApi mockEmployeeApi;
|
||||
@MockBean
|
||||
protected QualificationControllerApi mockQualificationApi;
|
||||
|
||||
@BeforeEach
|
||||
void setUp() {
|
||||
projectRepository.deleteAll();
|
||||
|
|
Loading…
Reference in a new issue