feat: Implement add employee to project route (SCRUM-2) #32

Merged
jank merged 8 commits from feature/add-employee-to-project into main 2024-10-23 08:39:26 +00:00
Showing only changes of commit 09d2b9a3fb - Show all commits

Fix tests
Some checks failed
Build PR / Build and analyze (pull_request) Failing after 1m4s
Quality Check / Tests (pull_request) Failing after 1m4s
Quality Check / Checkstyle Main (pull_request) Successful in 23s

Phan Huy Tran 2024-10-23 10:13:03 +02:00

View file

@ -2,6 +2,7 @@ package de.szut.lf8_starter.integration.project;
import de.szut.lf8_starter.project.ProjectEntity;
import de.szut.lf8_starter.project.ProjectRepository;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
@ -24,6 +25,11 @@ class GetProjectActionTest {
@Autowired
private ProjectRepository projectRepository;
@BeforeEach
void setUp() {
this.projectRepository.deleteAll();
}
@Test
void getProjectTest() throws Exception {
var project = new ProjectEntity();