You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Repeat.java 989B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (C) 2016, Matthias Sohn <matthias.sohn@sap.com> and others
  3. *
  4. * This program and the accompanying materials are made available under the
  5. * terms of the Eclipse Distribution License v. 1.0 which is available at
  6. * https://www.eclipse.org/org/documents/edl-v10.php.
  7. *
  8. * SPDX-License-Identifier: BSD-3-Clause
  9. */
  10. package org.eclipse.jgit.junit;
  11. import java.lang.annotation.Retention;
  12. import java.lang.annotation.RetentionPolicy;
  13. import java.lang.annotation.Target;
  14. /**
  15. * Annotation enabling to run tests repeatedly
  16. */
  17. @Retention(RetentionPolicy.RUNTIME)
  18. @Target({ java.lang.annotation.ElementType.METHOD })
  19. public @interface Repeat {
  20. /**
  21. * Number of repetitions
  22. */
  23. public abstract int n();
  24. /**
  25. * Whether to abort execution on first test failure
  26. *
  27. * @return {@code true} if execution should be aborted on the first failure,
  28. * otherwise count failures and continue execution
  29. * @since 5.1.9
  30. */
  31. public boolean abortOnFailure() default true;
  32. }