feat(recipes): image upload, fix save 500, HelloFresh seed data #53
@@ -205,6 +205,28 @@ class SuggestionsTest {
|
|||||||
.isInstanceOf(ResourceNotFoundException.class);
|
.isInstanceOf(ResourceNotFoundException.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void topNZeroShouldReturnEmptyList() {
|
||||||
|
var plan = createPlan();
|
||||||
|
stubPlan(plan);
|
||||||
|
|
||||||
|
SuggestionResponse result = planningService.getSuggestions(
|
||||||
|
HOUSEHOLD_ID, plan.getId(), MONDAY, List.of(), 0);
|
||||||
|
|
||||||
|
assertThat(result.suggestions()).isEmpty();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void topNNegativeShouldReturnEmptyList() {
|
||||||
|
var plan = createPlan();
|
||||||
|
stubPlan(plan);
|
||||||
|
|
||||||
|
SuggestionResponse result = planningService.getSuggestions(
|
||||||
|
HOUSEHOLD_ID, plan.getId(), MONDAY, List.of(), -1);
|
||||||
|
|
||||||
|
assertThat(result.suggestions()).isEmpty();
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void singleCandidateShouldReturnOne() {
|
void singleCandidateShouldReturnOne() {
|
||||||
var plan = createPlan();
|
var plan = createPlan();
|
||||||
|
|||||||
Reference in New Issue
Block a user