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:
commit
1adf56b08e
@ -185,17 +185,6 @@ public class DatasetControllerTests {
|
||||
.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
|
||||
void postMethodName_whenInvalidStars3() throws Exception {
|
||||
UUID id = UUID.randomUUID();
|
||||
|
Loading…
Reference in New Issue
Block a user