3838
3939import org .junit .Rule ;
4040import org .junit .Test ;
41-
4241import org .junit .rules .ExpectedException ;
42+
4343import org .springframework .beans .InvalidPropertyException ;
4444import org .springframework .beans .MutablePropertyValues ;
4545import org .springframework .beans .NotWritablePropertyException ;
@@ -78,6 +78,7 @@ public class DataBinderTests {
7878 @ Rule
7979 public ExpectedException expectedException = ExpectedException .none ();
8080
81+
8182 @ Test
8283 public void testBindingNoErrors () throws Exception {
8384 TestBean rod = new TestBean ();
@@ -1988,7 +1989,7 @@ public void testFieldErrorAccessVariations() throws Exception {
19881989 assertEquals ("age" , binder .getBindingResult ().getFieldError ("age" ).getField ());
19891990 }
19901991
1991- @ Test // SPR-14888
1992+ @ Test // SPR-14888
19921993 public void testSetAutoGrowCollectionLimit () {
19931994 BeanWithIntegerList tb = new BeanWithIntegerList ();
19941995 DataBinder binder = new DataBinder (tb );
@@ -2002,9 +2003,8 @@ public void testSetAutoGrowCollectionLimit() {
20022003 assertEquals (Integer .valueOf (1 ), binder .getBindingResult ().getFieldValue ("integerList[256]" ));
20032004 }
20042005
2005- @ Test // SPR-14888
2006+ @ Test // SPR-14888
20062007 public void testSetAutoGrowCollectionLimitAfterInitialization () {
2007-
20082008 expectedException .expect (IllegalStateException .class );
20092009 expectedException .expectMessage ("DataBinder is already initialized - call setAutoGrowCollectionLimit before other configuration methods" );
20102010
@@ -2013,6 +2013,7 @@ public void testSetAutoGrowCollectionLimitAfterInitialization() {
20132013 binder .setAutoGrowCollectionLimit (257 );
20142014 }
20152015
2016+
20162017 @ SuppressWarnings ("unused" )
20172018 private static class BeanWithIntegerList {
20182019
0 commit comments