Javadoc fixes plus additional polishing

This commit is contained in:
Juergen Hoeller
2015-07-15 02:19:46 +02:00
parent ef781b6353
commit ea2a1d33d9
3 changed files with 47 additions and 65 deletions

View File

@@ -42,6 +42,7 @@ public class ReflectionTestUtilsTests {
private static final Float PI = new Float((float) 22 / 7);
private final Person person = new Person();
private final Component component = new Component();
@Rule
@@ -53,6 +54,7 @@ public class ReflectionTestUtilsTests {
StaticFields.reset();
}
@Test
public void setFieldWithNullTargetObject() throws Exception {
exception.expect(IllegalArgumentException.class);
@@ -91,7 +93,7 @@ public class ReflectionTestUtilsTests {
@Test
public void setFieldWithBogusName() throws Exception {
exception.expect(IllegalArgumentException.class);
exception.expectMessage(startsWith("Could not find field [bogus]"));
exception.expectMessage(startsWith("Could not find field 'bogus'"));
setField(person, "bogus", new Long(99), long.class);
}