org.springframework.test.annotation.TestAnnotationUtils Java Examples
The following examples show how to use
org.springframework.test.annotation.TestAnnotationUtils.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SpringJUnit4ClassRunner.java From spring-analysis-note with MIT License | 2 votes |
/** * Retrieve the configured Spring-specific {@code timeout} from the * {@link org.springframework.test.annotation.Timed @Timed} annotation * on the supplied {@linkplain FrameworkMethod test method}. * @return the timeout, or {@code 0} if none was specified * @see TestAnnotationUtils#getTimeout(Method) */ protected long getSpringTimeout(FrameworkMethod frameworkMethod) { return TestAnnotationUtils.getTimeout(frameworkMethod.getMethod()); }
Example #2
Source File: SpringRepeat.java From spring-analysis-note with MIT License | 2 votes |
/** * Construct a new {@code SpringRepeat} statement for the supplied * {@code testMethod}, retrieving the configured repeat count from the * {@code @Repeat} annotation on the supplied method. * @param next the next {@code Statement} in the execution chain * @param testMethod the current test method * @see TestAnnotationUtils#getRepeatCount(Method) */ public SpringRepeat(Statement next, Method testMethod) { this(next, testMethod, TestAnnotationUtils.getRepeatCount(testMethod)); }
Example #3
Source File: SpringFailOnTimeout.java From spring-analysis-note with MIT License | 2 votes |
/** * Construct a new {@code SpringFailOnTimeout} statement for the supplied * {@code testMethod}, retrieving the configured timeout from the * {@code @Timed} annotation on the supplied method. * @param next the next {@code Statement} in the execution chain * @param testMethod the current test method * @see TestAnnotationUtils#getTimeout(Method) */ public SpringFailOnTimeout(Statement next, Method testMethod) { this(next, TestAnnotationUtils.getTimeout(testMethod)); }
Example #4
Source File: SpringJUnit4ClassRunner.java From java-technology-stack with MIT License | 2 votes |
/** * Retrieve the configured Spring-specific {@code timeout} from the * {@link org.springframework.test.annotation.Timed @Timed} annotation * on the supplied {@linkplain FrameworkMethod test method}. * @return the timeout, or {@code 0} if none was specified * @see TestAnnotationUtils#getTimeout(Method) */ protected long getSpringTimeout(FrameworkMethod frameworkMethod) { return TestAnnotationUtils.getTimeout(frameworkMethod.getMethod()); }
Example #5
Source File: SpringRepeat.java From java-technology-stack with MIT License | 2 votes |
/** * Construct a new {@code SpringRepeat} statement for the supplied * {@code testMethod}, retrieving the configured repeat count from the * {@code @Repeat} annotation on the supplied method. * @param next the next {@code Statement} in the execution chain * @param testMethod the current test method * @see TestAnnotationUtils#getRepeatCount(Method) */ public SpringRepeat(Statement next, Method testMethod) { this(next, testMethod, TestAnnotationUtils.getRepeatCount(testMethod)); }
Example #6
Source File: SpringFailOnTimeout.java From java-technology-stack with MIT License | 2 votes |
/** * Construct a new {@code SpringFailOnTimeout} statement for the supplied * {@code testMethod}, retrieving the configured timeout from the * {@code @Timed} annotation on the supplied method. * @param next the next {@code Statement} in the execution chain * @param testMethod the current test method * @see TestAnnotationUtils#getTimeout(Method) */ public SpringFailOnTimeout(Statement next, Method testMethod) { this(next, TestAnnotationUtils.getTimeout(testMethod)); }
Example #7
Source File: SpringJUnit4ClassRunner.java From spring4-understanding with Apache License 2.0 | 2 votes |
/** * Retrieve the configured Spring-specific {@code timeout} from the * {@link org.springframework.test.annotation.Timed @Timed} annotation * on the supplied {@linkplain FrameworkMethod test method}. * @return the timeout, or {@code 0} if none was specified * @see TestAnnotationUtils#getTimeout(Method) */ protected long getSpringTimeout(FrameworkMethod frameworkMethod) { return TestAnnotationUtils.getTimeout(frameworkMethod.getMethod()); }
Example #8
Source File: SpringRepeat.java From spring4-understanding with Apache License 2.0 | 2 votes |
/** * Construct a new {@code SpringRepeat} statement for the supplied * {@code testMethod}, retrieving the configured repeat count from the * {@code @Repeat} annotation on the supplied method. * @param next the next {@code Statement} in the execution chain * @param testMethod the current test method * @see TestAnnotationUtils#getRepeatCount(Method) */ public SpringRepeat(Statement next, Method testMethod) { this(next, testMethod, TestAnnotationUtils.getRepeatCount(testMethod)); }
Example #9
Source File: SpringFailOnTimeout.java From spring4-understanding with Apache License 2.0 | 2 votes |
/** * Construct a new {@code SpringFailOnTimeout} statement for the supplied * {@code testMethod}, retrieving the configured timeout from the * {@code @Timed} annotation on the supplied method. * @param next the next {@code Statement} in the execution chain * @param testMethod the current test method * @see TestAnnotationUtils#getTimeout(Method) */ public SpringFailOnTimeout(Statement next, Method testMethod) { this(next, TestAnnotationUtils.getTimeout(testMethod)); }