mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 13:05:49 +00:00
Add a flaky test
This commit is contained in:
parent
10921af880
commit
dc26f05ad9
1 changed files with 8 additions and 0 deletions
|
@ -4,6 +4,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
|
||||
import java.util.Locale;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ThreadLocalRandom;
|
||||
|
||||
import javax.validation.ConstraintViolation;
|
||||
import javax.validation.Validator;
|
||||
|
@ -12,6 +13,7 @@ import org.junit.Test;
|
|||
import org.springframework.context.i18n.LocaleContextHolder;
|
||||
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean;
|
||||
|
||||
|
||||
/**
|
||||
* @author Michael Isvy
|
||||
* Simple test to make sure that Bean Validation is working
|
||||
|
@ -42,4 +44,10 @@ public class ValidatorTests {
|
|||
assertThat(violation.getMessage()).isEqualTo("may not be empty");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void iAmFlaky() {
|
||||
Boolean randomResult = ThreadLocalRandom.current().nextBoolean();
|
||||
assertThat(randomResult).isTrue();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue