1 package net.avcompris.base.testutil.processes; 2 3 import java.lang.annotation.Documented; 4 import java.lang.annotation.ElementType; 5 import java.lang.annotation.Retention; 6 import java.lang.annotation.RetentionPolicy; 7 import java.lang.annotation.Target; 8 9 /** 10 * Use this annotation on JUnit test methods in an extension of 11 * {@link TestsWithProcessesBefore} 12 * to declare by which processes the test method will be called for 13 * each step while the processes are running. 14 * The annotated JUnit test method may then 15 * call the {@link TestsWithProcessesBefore#getProcessCurrent(Class)} 16 * method to get the "current" object set by the running process. 17 * <p> 18 * You can use both <code>WhileProcessing</code> and 19 * {@link WillReportAfterProcesses} annotations on a same test method. 20 * 21 * @author David Andrianavalontsalama 22 */ 23 @Documented 24 @Retention(RetentionPolicy.RUNTIME) 25 @Target(ElementType.METHOD) 26 public @interface WhileProcessing { 27 28 Class<? extends AbstractProcess<?, ?>>[] value() default {}; 29 }