Navigation Menu

Skip to content

Commit

Permalink
新增 NoIntegrationTest 注解用于集成测试
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin committed Jul 11, 2019
1 parent c1a24e0 commit d8be663
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/kotlin/io/zhudy/kitty/annotation/NoIntegrationTest.kt
@@ -0,0 +1,17 @@
package io.zhudy.kitty.annotation

import org.springframework.context.annotation.Profile

/**
* [Spring Annotation Programming Model](https://github.com/spring-projects/spring-framework/wiki/spring-annotation-programming-model)
* 添加注解可在集群测试环境 `integration-test` 中禁用某些功能,作用范围与 [Profile] 一致。
*
* @see Profile
* @author Kevin Zou (kevinz@weghst.com)
*/
@Target(AnnotationTarget.CLASS, AnnotationTarget.FUNCTION)
@Retention
@MustBeDocumented
@Profile("!integration-test")
annotation class NoIntegrationTest

0 comments on commit d8be663

Please sign in to comment.