assertAreAssignableTo

Asserts that all class declarations extend or implement any of the specified supertypes.

Example:

classes.assertAreAssignableTo("BaseRepository", "com.example.Identifiable")

Parameters

superTypes

The allowed supertype names. At least one must match.

Throws

if any class is not assignable to any of the specified supertypes.


fun KontureScope.assertAreAssignableTo(vararg superTypes: String)

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.