Package org.jboss.arquillian.spring.configuration

Examples of org.jboss.arquillian.spring.configuration.SpringExtensionConfiguration


     * @param beforeSuiteEvent the event fired before execution of the test suite
     */
    public void initConfiguration(@Observes(precedence = SpringExtensionConstants.INIT_PRECEDENCE)
                                  BeforeSuite beforeSuiteEvent) {

        SpringExtensionConfiguration config = getConfiguration(descriptor);

        extensionConfiguration.set(config);
    }
View Full Code Here


     */
    private SpringExtensionConfiguration getConfiguration(Instance<ArquillianDescriptor> descriptor) {

        Map<String, String> properties = getExtensionProperties(descriptor.get());

        SpringExtensionConfiguration result = new SpringExtensionConfiguration();
        result.setAutoPackaging(getBooleanProperty(properties,
                SpringExtensionConstants.CONFIGURATION_AUTO_PACKAGE, true));
        result.setSpringVersion(getStringProperty(properties,
                SpringExtensionConstants.CONFIGURATION_SPRING_VERSION, null));
        result.setCglibVersion(getStringProperty(properties,
                SpringExtensionConstants.CONFIGURATION_CGLIB_VERSION, null));
        result.setIncludeSnowdrop(getBooleanProperty(properties,
                SpringExtensionConstants.CONFIGURATION_INCLUDE_SNOWDROP, false));
        result.setSnowdropVersion(getStringProperty(properties,
                SpringExtensionConstants.CONFIGURATION_SNOWDROP_VERSION, null));

        result.setCustomContextClass(getStringProperty(properties,
                SpringExtensionConstants.CONFIGURATION_CUSTOM_CONTEXT_CLASS, null));
        result.setCustomAnnotationContextClass(getStringProperty(properties,
                SpringExtensionConstants.CONFIGURATION_CUSTOM_ANNOTATION_CONTEXT_CLASS, null));

        return result;
    }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.spring.configuration.SpringExtensionConfiguration

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.