mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 13:05:49 +00:00
Merge 43be122a82
into eddc72cfa8
This commit is contained in:
commit
d759d48ef9
2 changed files with 9 additions and 1 deletions
2
pom.xml
2
pom.xml
|
@ -12,7 +12,7 @@
|
|||
<properties>
|
||||
|
||||
<!-- Generic properties -->
|
||||
<java.version>1.7</java.version>
|
||||
<java.version>1.8</java.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
|
||||
|
|
|
@ -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