/** * @param testClass * The Test case {@link Class} * * @throws IllegalArgumentException * if testCase is null */ public ClassEvent(TestClass testClass) { Validate.notNull(testClass, "TestClass must be specified"); this.testClass = testClass; }
/** * Create a new ClassLifecycleEvent for a specific Class. <br/> * * @param testClass * The source for this ClassEvent * @param executor * A call back when the LifecycleMethod represented by this event should be invoked */ public ClassLifecycleEvent(Class<?> testClass, LifecycleMethodExecutor executor) { super(testClass); Validate.notNull(executor, "LifecycleMethodExecutor must be specified"); this.executor = executor; }
/** * Create a new ClassLifecycleEvent for a specific Class. <br/> * * @param testClass * The source for this ClassEvent * @param executor * A call back when the LifecycleMethod represented by this event should be invoked */ public ClassLifecycleEvent(TestClass testClass, LifecycleMethodExecutor executor) { super(testClass); Validate.notNull(executor, "LifecycleMethodExecutor must be specified"); this.executor = executor; }
/** * Create a new TestLifecycleEvent for a specific testInstance executing a specific testMethod. <br/> * * @param testInstance * The Test instance * @param testMethod * The Test Method being executed * @param executor * A call back when the LifecycleMethod represented by this event should be invoked */ public TestLifecycleEvent(Object testInstance, Method testMethod, LifecycleMethodExecutor executor) { super(testInstance, testMethod); Validate.notNull(executor, "LifecycleMethodExecutor must be specified"); this.executor = executor; }
/** * @param testClass * The Test case {@link Class} * * @throws IllegalArgumentException * if testCase is null */ public ClassEvent(TestClass testClass) { Validate.notNull(testClass, "TestClass must be specified"); this.testClass = testClass; }
/** * Create a new ClassLifecycleEvent for a specific Class. <br/> * * @param testClass * The source for this ClassEvent * @param executor * A call back when the LifecycleMethod represented by this event should be invoked */ public ClassLifecycleEvent(Class<?> testClass, LifecycleMethodExecutor executor) { super(testClass); Validate.notNull(executor, "LifecycleMethodExecutor must be specified"); this.executor = executor; }
/** * Create a new ClassLifecycleEvent for a specific Class. <br/> * * @param testClass * The source for this ClassEvent * @param executor * A call back when the LifecycleMethod represented by this event should be invoked */ public ClassLifecycleEvent(TestClass testClass, LifecycleMethodExecutor executor) { super(testClass); Validate.notNull(executor, "LifecycleMethodExecutor must be specified"); this.executor = executor; }
/** * Create a new TestLifecycleEvent for a specific testInstance executing a specific testMethod. <br/> * * @param testInstance * The Test instance * @param testMethod * The Test Method being executed * @param executor * A call back when the LifecycleMethod represented by this event should be invoked */ public TestLifecycleEvent(Object testInstance, Method testMethod, LifecycleMethodExecutor executor) { super(testInstance, testMethod); Validate.notNull(executor, "LifecycleMethodExecutor must be specified"); this.executor = executor; }