diff --git a/test-utils/src/main/java/io/littlehorse/test/LHTest.java b/test-utils/src/main/java/io/littlehorse/test/LHTest.java index f6bbd75b7..5ef9c58fa 100644 --- a/test-utils/src/main/java/io/littlehorse/test/LHTest.java +++ b/test-utils/src/main/java/io/littlehorse/test/LHTest.java @@ -6,6 +6,21 @@ import java.lang.annotation.Target; import org.junit.jupiter.api.extension.ExtendWith; +/** + * {@code @LHTest} identifies test classes and methods that run a Littlehorse workflow. + * This annotation will spin up a Littlehorse cluster using the "bootstrapper.class" configuration. + * It can be used at test class level or method level: + *
+ *  {@code @LHTest}
+ *  class MyTest {
+ *      {@code @LHTest}
+ *      void myTestMethod() {
+ *      }
+ *  }
+ * 
+ * + * + */ @Target({ElementType.TYPE, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @ExtendWith(LHExtension.class)