Search in sources :

Example 1 with SecDispatcher

use of org.sonatype.plexus.components.sec.dispatcher.SecDispatcher in project docker-maven-plugin by fabric8io.

the class AuthConfigFactoryTest method containerSetup.

@Before
public void containerSetup() throws ComponentLookupException {
    final SecDispatcher secDispatcher = new MockSecDispatcher();
    new Expectations() {

        {
            container.lookup(SecDispatcher.ROLE, "maven");
            minTimes = 0;
            result = secDispatcher;
        }
    };
    factory = new AuthConfigFactory(container);
    factory.setLog(log);
    gsonBuilder = new GsonBuilder();
}
Also used : Expectations(mockit.Expectations) GsonBuilder(com.google.gson.GsonBuilder) SecDispatcher(org.sonatype.plexus.components.sec.dispatcher.SecDispatcher) AwsSdkAuthConfigFactory(io.fabric8.maven.docker.util.aws.AwsSdkAuthConfigFactory) Before(org.junit.Before)

Aggregations

GsonBuilder (com.google.gson.GsonBuilder)1 AwsSdkAuthConfigFactory (io.fabric8.maven.docker.util.aws.AwsSdkAuthConfigFactory)1 Expectations (mockit.Expectations)1 Before (org.junit.Before)1 SecDispatcher (org.sonatype.plexus.components.sec.dispatcher.SecDispatcher)1