Package org.jvnet.hudson.test
Class MockQueueItemAuthenticator
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<jenkins.security.QueueItemAuthenticator>
-
- jenkins.security.QueueItemAuthenticator
-
- org.jvnet.hudson.test.MockQueueItemAuthenticator
-
- All Implemented Interfaces:
hudson.ExtensionPoint,hudson.model.Describable<jenkins.security.QueueItemAuthenticator>
public final class MockQueueItemAuthenticator extends jenkins.security.QueueItemAuthenticatorAllows testing of anything related toQueueItemAuthenticator. To use, callQueueItemAuthenticatorConfiguration.get()(orInjectit), then callQueueItemAuthenticatorConfiguration.getAuthenticators()and add an instance of this.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMockQueueItemAuthenticator.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description MockQueueItemAuthenticator(Map<String,org.acegisecurity.Authentication> jobsToUsers)Creates a new authenticator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.acegisecurity.Authenticationauthenticate(hudson.model.Queue.Item item)
-