@Test public void testAccessAction() throws Exception { AccessibleObjectSpy accessibleObjectSpy = new AccessibleObjectSpy(Foo.class.getDeclaredField(BAR)); assertThat(new SetAccessibleAction<AccessibleObjectSpy>(accessibleObjectSpy).run(), is(accessibleObjectSpy)); assertThat(accessibleObjectSpy.accessible, is(true)); }
public T run() { accessibleObject.setAccessible(true); return accessibleObject; }
SetAccessibleAction implements PrivilegedAction<T> { public T run() { accessibleObject.setAccessible(true); return accessibleObject; } }
SetAccessibleAction implements PrivilegedAction<T> { public T run() { accessibleObject.setAccessible(true); return accessibleObject; } SetAccessibleAction(T accessibleObject); }
SetAccessibleAction implements PrivilegedAction<T> { public T run() { accessibleObject.setAccessible(true); return accessibleObject; } SetAccessibleAction(T accessibleObject); T run(); }
SetAccessibleAction implements PrivilegedAction<T> { public T run() { accessibleObject.setAccessible(true); return accessibleObject; } SetAccessibleAction(T accessibleObject); T run();  }