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

tech.msop.core.test.MsBootTest Maven / Gradle / Ivy

The newest version!
package tech.msop.core.test;

import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * 简化测试
 *
 * @author ruozhuliufeng
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@SpringBootTest
public @interface MsBootTest {
    /**
     * 服务名:appName
     *
     * @return appName
     */
    @AliasFor("appName")
    String value() default "ms-test";

    /**
     * 服务名:appName
     *
     * @return appName
     */
    @AliasFor("value")
    String appName() default "ms-test";

    /**
     * profile
     *
     * @return profile
     */
    @AliasFor("profile")
    String profile() default "dev";

    /**
     * 启用 ServiceLoader 加载 launcherService
     *
     * @return 是否启用
     */
    boolean enableLoader() default false;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy