Package org.jboss.arquillian.spring.deployer.dependency

Examples of org.jboss.arquillian.spring.deployer.dependency.MavenDependencyBuilder


        Instance<SpringDeployerConfiguration> mockExtensionConfigurationInstance = mock(Instance.class);
        when(mockExtensionConfigurationInstance.get()).thenReturn(deployerConfiguration);
        TestReflectionHelper.setFieldValue(instance, "configuration", mockExtensionConfigurationInstance);

        MavenDependencyBuilder mavenDependencyBuilder = new MavenDependencyBuilder();
        mavenDependencyBuilder.addDependency("org.springframework:spring-context", "3.1.1.RELEASE");
        mavenDependencyBuilder.addDependency("org.springframework:spring-web", "3.1.1.RELEASE");
        mavenDependencyBuilder.addDependency("cglib:cglib", "2.2.2");
        File[] dependencies = mavenDependencyBuilder.getDependencies();

        AbstractDependencyResolver abstractDependencyResolver = mock(AbstractDependencyResolver.class);
        when(abstractDependencyResolver.resolveDependencies()).thenReturn(dependencies);

        Instance<AbstractDependencyResolver> mockDependencyResolverInstance = mock(Instance.class);
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.spring.deployer.dependency.MavenDependencyBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.