|
|
|
|
@ -16,14 +16,6 @@
@@ -16,14 +16,6 @@
|
|
|
|
|
|
|
|
|
|
package org.springframework.boot.bind; |
|
|
|
|
|
|
|
|
|
import static org.hamcrest.Matchers.equalTo; |
|
|
|
|
import static org.hamcrest.Matchers.nullValue; |
|
|
|
|
import static org.junit.Assert.assertEquals; |
|
|
|
|
import static org.junit.Assert.assertFalse; |
|
|
|
|
import static org.junit.Assert.assertNotNull; |
|
|
|
|
import static org.junit.Assert.assertNull; |
|
|
|
|
import static org.junit.Assert.assertThat; |
|
|
|
|
|
|
|
|
|
import java.lang.annotation.Documented; |
|
|
|
|
import java.lang.annotation.ElementType; |
|
|
|
|
import java.lang.annotation.Retention; |
|
|
|
|
@ -48,6 +40,7 @@ import javax.validation.constraints.NotNull;
@@ -48,6 +40,7 @@ import javax.validation.constraints.NotNull;
|
|
|
|
|
import org.junit.Rule; |
|
|
|
|
import org.junit.Test; |
|
|
|
|
import org.junit.rules.ExpectedException; |
|
|
|
|
|
|
|
|
|
import org.springframework.beans.MutablePropertyValues; |
|
|
|
|
import org.springframework.beans.NotWritablePropertyException; |
|
|
|
|
import org.springframework.context.support.StaticMessageSource; |
|
|
|
|
@ -60,6 +53,14 @@ import org.springframework.validation.DataBinder;
@@ -60,6 +53,14 @@ import org.springframework.validation.DataBinder;
|
|
|
|
|
import org.springframework.validation.FieldError; |
|
|
|
|
import org.springframework.validation.beanvalidation.LocalValidatorFactoryBean; |
|
|
|
|
|
|
|
|
|
import static org.hamcrest.Matchers.equalTo; |
|
|
|
|
import static org.hamcrest.Matchers.nullValue; |
|
|
|
|
import static org.junit.Assert.assertEquals; |
|
|
|
|
import static org.junit.Assert.assertFalse; |
|
|
|
|
import static org.junit.Assert.assertNotNull; |
|
|
|
|
import static org.junit.Assert.assertNull; |
|
|
|
|
import static org.junit.Assert.assertThat; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Tests for {@link RelaxedDataBinder}. |
|
|
|
|
* |
|
|
|
|
|