PMT-37-added uncompleted Test cases
This commit is contained in:
parent
8ea7bf798f
commit
089b777ea8
1 changed files with 31 additions and 0 deletions
31
src/test/java/de/hmmh/pmt/project/GetProjectInfoTest.java
Normal file
31
src/test/java/de/hmmh/pmt/project/GetProjectInfoTest.java
Normal file
|
@ -0,0 +1,31 @@
|
|||
package de.hmmh.pmt.project;
|
||||
|
||||
import static org.hamcrest.Matchers.empty;
|
||||
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
|
||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
|
||||
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.test.web.servlet.RequestBuilder;
|
||||
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
|
||||
|
||||
import de.hmmh.pmt.IntegrationTest;
|
||||
|
||||
public class GetProjectInfoTest extends IntegrationTest {
|
||||
|
||||
@Test
|
||||
void noProject() throws Exception {
|
||||
mvc
|
||||
.perform(get(baseUri + "/project/1"))
|
||||
.andExpect(status().isNotFound());
|
||||
}
|
||||
|
||||
@Test
|
||||
public RequestBuilder getProjectInfo(Long projectId) throws Exception {
|
||||
return MockMvcRequestBuilders
|
||||
.get("/project/" + projectId)
|
||||
.contentType(MediaType.APPLICATION_JSON);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue