Skip to content

Commit dc8cd4e

Browse files
committed
Polishing
Issue: SPR-14888
1 parent 55afb59 commit dc8cd4e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

spring-context/src/test/java/org/springframework/validation/DataBinderTests.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838

3939
import org.junit.Rule;
4040
import org.junit.Test;
41-
4241
import org.junit.rules.ExpectedException;
42+
4343
import org.springframework.beans.InvalidPropertyException;
4444
import org.springframework.beans.MutablePropertyValues;
4545
import 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

Comments
 (0)