The Spring Framework

org.springframework.test.annotation
Annotation Type Timed


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Inherited
@Documented
public @interface Timed

Test-specific annotation to indicate that a test method has to finish execution in a specified time period.

If the text execution time takes longer than the specified time period, then the test is to be considered failed.

Since:
2.0
Author:
Rod Johnson
See Also:
AbstractAnnotationAwareTransactionalTests

Required Element Summary
 long millis
          The maximum amount of time (in milliseconds) that a test execution can take without being marked as failed due to taking too long.
 

Element Detail

millis

public abstract long millis
The maximum amount of time (in milliseconds) that a test execution can take without being marked as failed due to taking too long.

Returns:
said maximum time

The Spring Framework

Copyright © 2002-2007 The Spring Framework.