Implement household domain with outside-in TDD (15 tests)
Controller (5 tests): create household, get mine, get members, create invite, accept invite. Service (10 tests): household creation with planner role + seed data (categories, tags, staple ingredients), conflict when already in household, invite code generation with 48h expiry, accept invite with expired/used/conflict validation. Also includes: - Household, HouseholdMember, HouseholdInvite JPA entities - HouseholdInvite repository with findByInviteCode - Ingredient, IngredientCategory, Tag entities + repositories (created early for seed data, will be extended in recipe domain) - Fixed BackendApplicationTests to use AbstractIntegrationTest Total: 38 tests passing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package com.recipeapp.household;
|
||||
|
||||
import com.recipeapp.household.dto.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface HouseholdService {
|
||||
HouseholdResponse createHousehold(String userEmail, CreateHouseholdRequest request);
|
||||
HouseholdResponse getMyHousehold(String userEmail);
|
||||
List<MemberResponse> getMembers(String userEmail);
|
||||
InviteResponse createInvite(String userEmail);
|
||||
AcceptInviteResponse acceptInvite(String userEmail, String code);
|
||||
}
|
||||
Reference in New Issue
Block a user