assertHaveVisibility

Asserts that all class declarations have the specified visibility.

Example:

classes.assertHaveVisibility(Visibility.PUBLIC)

Parameters

visibility

The required visibility level.

Throws

if any class does not have the specified visibility.


Asserts that all class declarations in the scope have the specified visibility.

Parameters

visibility

The required visibility level.

Throws

if any class does not have the specified visibility.