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.QueueItemAuthenticator
Allows testing of anything related toQueueItemAuthenticator
. To use, callQueueItemAuthenticatorConfiguration.get()
(orInject
it), then callQueueItemAuthenticatorConfiguration.getAuthenticators()
and add an instance of this.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MockQueueItemAuthenticator.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.Authentication
authenticate(hudson.model.Queue.Item item)
-