I’m a little surprised you didn’t mention the Triple A acronym. Though I’m not sure if I’ve ever heard my teacher or any of the mentors say “Triple A.”

It stands for “Arrange, Act, Assert.”

For example: all new user records should be initialized with certain properties set to default values. First you arrange what you need to create a new user record. Then you act to create the new user record. And then you assert that the specified properties are indeed set to default values.

Of course that test would probably get split up into smaller tests, for the sake of granularity. They would then each show the AAA pattern.

is a composer and photographer from Detroit, Michigan. He has been working on a Java program to display certain mathematical diagrams.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store