Skip to content
Ameen Abozaid
Planned lessonJNR-036-L08

Demo: testing the access matrix

  • Lesson 8 of 8
  • Junior
On This Lesson 3 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

prove the rules with a test for every endpoint and role. Prepares JNR-036-LAB1.

Draft outline details

Step by step

  1. Write a table: endpoint × anonymous/customer/admin → expected status.
  2. Turn it into a parameterized test with MockMvc.
  3. Run it and see all green.
  4. Planned mistake: put a broad permitAll rule before a hasRole("ADMIN") rule; the admin-only test fails because the first match wins. Fix: reorder.
  5. Commit the matrix test as the safety net for later changes.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Type to search levels, phases, modules and lessons.