feat: Remove invalid stars validation in DatasetControllerTests becaurse giving 0 stars sould be an option
This commit is contained in:
parent
6dbe795456
commit
e84ecd18bd
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user