Javadoc fixes plus additional polishing
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user