All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.alidg.errors.annotation.AutoConfigureErrors Maven / Gradle / Ivy

package me.alidg.errors.annotation;

import org.springframework.boot.autoconfigure.ImportAutoConfiguration;

import java.lang.annotation.*;

/**
 * {@link ImportAutoConfiguration Auto-configuration imports} to enable web error handlers
 * support for Spring MVC and Web Flux tests. Suppose you're going to test a controller named {@code UserController}:
 * 
 * {@code
 *
 *     @AutoConfigureErrors
 *     @RunWith(SpringRunner.class)
 *     @WebMvcTest(UserController.class)
 *     public class UserControllerIT {
 *         // test stuff
 *     }
 * }
 * 
* * @author Ali Dehghani */ @Inherited @Documented @ImportAutoConfiguration @Target(ElementType.TYPE) @Retention(RetentionPolicy.RUNTIME) public @interface AutoConfigureErrors { }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy