Uses of Interface
Modifier and TypeInterfaceDescription
interfaceDefines common methods for building a
MockMvc.Modifier and TypeClassDescription
classAbstract implementation of
MockMvcBuilderwith common methods for configuring filters, default request properties, global expectations and global result actions.
@Controllerregistrations thus allowing full control over the instantiation and initialization of controllers and their dependencies similar to plain unit tests, and also making it possible to test one controller at a time.