Package org.candlepin.common.config

Examples of org.candlepin.common.config.MapConfiguration


    private CandlepinCommonTestConfig config;
    private File tempDir;

    @Before
    public void init() throws URISyntaxException, IOException {
        mapper = SyncUtils.getObjectMapper(new MapConfiguration(
                new HashMap<String, String>() {

                    {
                        put(ConfigProperties.FAIL_ON_UNKNOWN_IMPORT_PROPERTIES,
                                "false");
View Full Code Here


    public static class StatusConfig extends JukitoModule {
        @Override
        protected void configureTest() {
            bindScope(RequestScoped.class, TestScope.EAGER_SINGLETON);

            Configuration c = new MapConfiguration();
            c.setProperty("gutterball.version", "X.Y.Z");
            bind(Configuration.class).toInstance(c);
            bind(I18n.class).toProvider(I18nProvider.class);
            bind(Status.class);
        }
View Full Code Here

    public void init() {
        listener = new GutterballContextListener() {
            protected Configuration readConfiguration(ServletContext context)
                throws ConfigurationException {

                return new MapConfiguration(
                    new HashMap<String, String>() {

                        private static final long serialVersionUID = 1L;
                        {
                            put(ConfigProperties.AMQP_KEYSTORE, "value");
View Full Code Here

            systemConfig.load(configFile);
            log.debug("System configuration: " + systemConfig);
        }

        // load the defaults
        MapConfiguration defaults = new MapConfiguration(
            ConfigProperties.DEFAULT_PROPERTIES);

        log.debug("Loading default configuration values");

        log.debug("Default config: " + defaults);
View Full Code Here

            systemConfig.load(configFile);
            log.debug("System configuration: " + systemConfig);
        }

        // load the defaults
        MapConfiguration defaults = new MapConfiguration(
            ConfigProperties.DEFAULT_PROPERTIES);

        log.debug("Loading default configuration values");

        // merge the defaults with the system configuration. ORDER MATTERS.
View Full Code Here

    protected ComplianceSnapshotCurator complianceSnapshotCurator;
    protected ConsumerStateCurator consumerStateCurator;

    @Before
    public void init() {
        MapConfiguration config = new MapConfiguration();
        GutterballTestingModule testingModule = new GutterballTestingModule(config);
        injector = Guice.createInjector(testingModule);

        injector.getInstance(EntityManagerFactory.class);
        emf = injector.getProvider(EntityManagerFactory.class).get();
View Full Code Here

TOP

Related Classes of org.candlepin.common.config.MapConfiguration

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.