Skip to main content
All CollectionsRule documentationNaming conventions
Naming conventions on Apex test inner classes
Naming conventions on Apex test inner classes

Keep your test inner class names consistent and easy to read and maintain

Gabriele Gallo Stampino avatar
Written by Gabriele Gallo Stampino
Updated over 2 years ago

Naming conventions test inner classes help drive consistency across the codebase, which makes it easier to read and understand source code.

Scope

  • Apex test inner classes

Configurations

  • Pattern. Use a regular expression to define the validation pattern for your class names.

  • Hint. Add a hint to be displayed when a detection is flagged, in order to give developers a tangible example of a name that suits naming convention. (Warning: the hint is not validated, make sure it matches your validation pattern before adding it).

See also

Did this answer your question?