Skip to content

test(naming): adopt the _NN_Should<Outcome>_When<Condition> test naming convention - #11

Merged
EdgarEldy merged 17 commits into
developfrom
feature/reactive-endpoints
Sep 20, 2026
Merged

EdgarEldy merged 17 commits into
developfrom
feature/reactive-endpoints

Conversation

@EdgarEldy

Copy link
Copy Markdown
Owner

Branch

feature/reactive-endpoints (the last branch of the dependency order; every earlier branch was renamed and merged forward, no intermediate PR)

Task checklist

  • Document the test naming convention in the README (Code conventions)
  • Rename every test method to _NN_Should<Outcome>_When<Condition>, branch by branch in the README order of work
  • Final pass: all 187 test methods follow the convention, numbering sequential in each class

Commit summary

  • docs(readme): the convention rule, added on feature/core-architecture and inherited by every later branch
  • test(naming): one rename commit per branch (core-architecture, auth, rbac, categories, products, customers, orders, reactive-endpoints); native-build has no tests of its own

Test checklist

  • Unit tests pass
  • Integration tests pass (where the branch's checklist calls for them)
  • mvn verify is green on the whole project (188 tests)

Code review checklist

  • No business logic in JAX-RS resources (untouched)
  • Success responses are wrapped in ApiResponse<T>, errors are RFC 9457 Problem Details (untouched)
  • Permission checks are declarative (untouched)
  • Every @CacheResult has its matching @CacheInvalidate (untouched)
  • Every RBAC mutation calls AuditLogger (untouched)
  • The database schema only changes through a Flyway migration (untouched)
  • No manual Testcontainers setup (Dev Services only)
  • Commits are atomic, follow Conventional Commits, no em dash, no Claude/Anthropic mention

Test methods are named _NN_Should<Outcome>_When<Condition>, with a
two-digit sequence number restarting at _01_ in each test class.

The rule sits in the Code conventions section so every branch inherits
it as the changes merge forward.
…re/core-architecture

Only test method names change, no test logic or behavior. Numbering
restarts at _01_ in each test class, following source order.

The convention is documented in the README Code conventions section.
…re/auth

Only test method names change, no test logic or behavior. Numbering
restarts at _01_ in each test class, following source order.

The convention is documented in the README Code conventions section.
…re/rbac

Only test method names change, no test logic or behavior. Numbering
restarts at _01_ in each test class, following source order.

The convention is documented in the README Code conventions section.
…re/categories

Only test method names change, no test logic or behavior. Numbering
restarts at _01_ in each test class, following source order.

The convention is documented in the README Code conventions section.
…re/products

Only test method names change, no test logic or behavior. Numbering
restarts at _01_ in each test class, following source order.

The convention is documented in the README Code conventions section.
…re/customers

Only test method names change, no test logic or behavior. Numbering
restarts at _01_ in each test class, following source order.

The convention is documented in the README Code conventions section.
# Conflicts:
#	src/test/java/com/edgareldy/quarkustutorial/service/impl/CustomerServiceImplTest.java
…re/orders

Only test method names change, no test logic or behavior. Numbering
restarts at _01_ in each test class, following source order.

The convention is documented in the README Code conventions section.
…re/reactive-endpoints

Only test method names change, no test logic or behavior. Numbering
restarts at _01_ in each test class, following source order.

The convention is documented in the README Code conventions section.
@EdgarEldy
EdgarEldy merged commit 58bcef0 into develop Sep 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant