Arrange-Act-Assert (AAA) minangka pola kanggo nyusun tès kanthi jelas dadi telung fase: Arrange (nyiapake), Act (nindakake sawijining aksyon), Assert (verifikasi asil). Iku nggawe tès luwih gampang dibaca, terorganisir, lan gampang dimangerteni.
Telung fase kasebut
ARRANGE → set up the test: create objects, prepare inputs, configure mocks, set state
ACT → perform the ACTION being tested (call the function/method under test)
ASSERT → verify the OUTCOME: check the result/behavior matches what's expected
→ A clear three-part structure for every test.
