assertAreAssignableTo
Asserts that all class declarations extend or implement any of the specified supertypes.
Example:
classes.assertAreAssignableTo("BaseRepository", "com.example.Identifiable")Content copied to clipboard
Parameters
superTypes
The allowed supertype names. At least one must match.
Throws
if any class is not assignable to any of the specified supertypes.
Asserts that all class declarations in the scope extend or implement any of the specified supertypes.
Parameters
superTypes
The allowed supertype names. At least one must match.
Throws
if any class is not assignable to any of the specified supertypes.