File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/test/java/org/apache/commons/lang3/reflect Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 4343import org .apache .commons .lang3 .compare .ObjectToStringComparator ;
4444import org .apache .commons .lang3 .reflect .testbed .Ambig ;
4545import org .apache .commons .lang3 .reflect .testbed .Annotated ;
46+ import org .apache .commons .lang3 .reflect .testbed .AnotherParent ;
4647import org .apache .commons .lang3 .reflect .testbed .Foo ;
4748import org .apache .commons .lang3 .reflect .testbed .PrivatelyShadowedChild ;
4849import org .apache .commons .lang3 .reflect .testbed .PublicChild ;
@@ -451,6 +452,7 @@ public void testReadDeclaredNamedFieldForceAccess() throws Exception {
451452
452453 @ Test
453454 public void testReadDeclaredNamedStaticField () throws Exception {
455+ assertThrows (NullPointerException .class , () -> FieldUtils .readDeclaredStaticField (AnotherParent .class , "doesNotExist" ));
454456 assertEquals (Foo .VALUE , FieldUtils .readDeclaredStaticField (Foo .class , "VALUE" ));
455457 assertThrows (
456458 NullPointerException .class , () ->
You can’t perform that action at this time.
0 commit comments