This class should be used if you do not require run-as authentication replacement functionality. @author Ben Alex
3233343536373839
public final void setUp() throws Exception { super.setUp(); } public void testAlwaysReturnsNull() { NullRunAsManager runAs = new NullRunAsManager(); assertNull(runAs.buildRunAs(null, null, null)); }
3738394041424344
NullRunAsManager runAs = new NullRunAsManager(); assertNull(runAs.buildRunAs(null, null, null)); } public void testAlwaysSupportsClass() { NullRunAsManager runAs = new NullRunAsManager(); assertTrue(runAs.supports(String.class)); }
4243444546474849
NullRunAsManager runAs = new NullRunAsManager(); assertTrue(runAs.supports(String.class)); } public void testNeverSupportsAttribute() { NullRunAsManager runAs = new NullRunAsManager(); assertFalse(runAs.supports(new SecurityConfig("X"))); }