ai-assisted-todolist

Backend#

cd backend
./mvnw verify          # tests, JaCoCo coverage, and Checkstyle
./mvnw test            # tests only
./mvnw checkstyle:check

Dev Services starts PostgreSQL and Keycloak automatically, so a container engine has to be running. Fifty-two tests across ten classes:

The real sign-in test#

KeycloakLoginFlowTest, with its helper support/KeycloakLoginFlow, is the one that exercises the path production uses: it follows the redirect to Keycloak, scrapes the login form's action URL, posts credentials, follows the callback, and then uses the API with the session cookie that results. It also signs both local accounts in and proves neither sees the other's tasks.

Two details in the helper exist because of real failures, and should not be "tidied away":

TaskResourceIT#

Runs against the packaged artifact rather than in-JVM, and is skipped by default — pom.xml sets skipITs, and the native profile turns it back on. It is thin on purpose: @TestSecurity does not work outside @QuarkusTest, so it can only make security-agnostic checks.