Merge branch '51-fix-borken-test' into '22-integrate-api-and-frontend'
Resolve "fix: borken test" See merge request padas/24ss-5430-web-and-data-eng/gruppe-3/datadash!50
This commit is contained in:
@@ -185,17 +185,6 @@ public class DatasetControllerTests {
|
|||||||
.andExpect(status().isBadRequest());
|
.andExpect(status().isBadRequest());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
void postMethodName_whenInvalidStars2() throws Exception {
|
|
||||||
UUID id = UUID.randomUUID();
|
|
||||||
Dataset dataset = new Dataset("Title", "abst", "desc", "auth", null, null, Type.API, "MIT");
|
|
||||||
|
|
||||||
given(datasetService.getDatasetById(id)).willReturn(dataset);
|
|
||||||
|
|
||||||
mockMvc.perform(put("/api/v1/datasets/id/" + id + "/stars?stars=0"))
|
|
||||||
.andExpect(status().isBadRequest());
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void postMethodName_whenInvalidStars3() throws Exception {
|
void postMethodName_whenInvalidStars3() throws Exception {
|
||||||
UUID id = UUID.randomUUID();
|
UUID id = UUID.randomUUID();
|
||||||
|
Reference in New Issue
Block a user