Polishing

Issue: SPR-14888
This commit is contained in:
Juergen Hoeller
2016-11-08 17:26:59 +01:00
parent 55afb59c7a
commit dc8cd4e4c0

View File

@@ -38,8 +38,8 @@ import java.util.TreeSet;
import org.junit.Rule; import org.junit.Rule;
import org.junit.Test; import org.junit.Test;
import org.junit.rules.ExpectedException; import org.junit.rules.ExpectedException;
import org.springframework.beans.InvalidPropertyException; import org.springframework.beans.InvalidPropertyException;
import org.springframework.beans.MutablePropertyValues; import org.springframework.beans.MutablePropertyValues;
import org.springframework.beans.NotWritablePropertyException; import org.springframework.beans.NotWritablePropertyException;
@@ -78,6 +78,7 @@ public class DataBinderTests {
@Rule @Rule
public ExpectedException expectedException = ExpectedException.none(); public ExpectedException expectedException = ExpectedException.none();
@Test @Test
public void testBindingNoErrors() throws Exception { public void testBindingNoErrors() throws Exception {
TestBean rod = new TestBean(); TestBean rod = new TestBean();
@@ -2004,7 +2005,6 @@ public class DataBinderTests {
@Test // SPR-14888 @Test // SPR-14888
public void testSetAutoGrowCollectionLimitAfterInitialization() { public void testSetAutoGrowCollectionLimitAfterInitialization() {
expectedException.expect(IllegalStateException.class); expectedException.expect(IllegalStateException.class);
expectedException.expectMessage("DataBinder is already initialized - call setAutoGrowCollectionLimit before other configuration methods"); expectedException.expectMessage("DataBinder is already initialized - call setAutoGrowCollectionLimit before other configuration methods");
@@ -2013,6 +2013,7 @@ public class DataBinderTests {
binder.setAutoGrowCollectionLimit(257); binder.setAutoGrowCollectionLimit(257);
} }
@SuppressWarnings("unused") @SuppressWarnings("unused")
private static class BeanWithIntegerList { private static class BeanWithIntegerList {