classes

@AliasFor(value = "value")
abstract fun classes(): Array<Class<out Any>>

The classes to mock. Each class specified here will result in a mock being created and registered with the application context. Classes can be omitted when the annotation is used on a field.

When @MockBean also defines a name this attribute can only contain a single value.

If this is the only specified attribute consider using the value alias instead.

Return

the classes to mock