Examples of ConfigurationHandler


Examples of com.nijiko.General.ConfigurationHandler

  if(!(new File(getDataFolder(), "config.yml").exists())) {
      DefaultConfiguration("config.yml");
  }

  // Gogo
  this.config = new ConfigurationHandler(getConfiguration());
  getConfiguration().load();
  this.config.load();

  // Register
        registerEvents();
View Full Code Here

Examples of com.nijiko.configuration.ConfigurationHandler

        Configuration configure = new Configuration(new File(getDataFolder(), DefaultWorld + ".yml"));
        configure.load();

        // Gogo
        this.config = new ConfigurationHandler(configure);

        // Setup Permission
        setupPermissions();

        // Enabled
View Full Code Here

Examples of com.pahimar.letsmodreboot.handler.ConfigurationHandler

    @Mod.EventHandler
    public void preInit(FMLPreInitializationEvent event)
    {
        ConfigurationHandler.init(event.getSuggestedConfigurationFile());
        FMLCommonHandler.instance().bus().register(new ConfigurationHandler());

        proxy.registerKeyBindings();

        ModItems.init();
View Full Code Here

Examples of net.citizensnpcs.properties.ConfigurationHandler

    private final ConfigurationHandler profile;

    private QuestProgress progress;

    private PlayerProfile(String name) {
        profile = new ConfigurationHandler("plugins/Citizens/profiles/" + name + ".yml");
        this.name = name;
        this.load();
    }
View Full Code Here

Examples of org.apache.ace.agent.ConfigurationHandler

    }

    @SuppressWarnings("deprecation")
    @Test
    public void testExcludeEvent() throws Exception {
        ConfigurationHandler configurationHandler = m_agentContext.getHandler(ConfigurationHandler.class);
        configureAgent(configurationHandler, AgentConstants.CONFIG_LOGGING_EXCLUDE_EVENTS, "1001,1002");

        FrameworkEvent event = new FrameworkEvent(32, new Object());

        FeedbackHandler feedbackHandler = m_agentContext.getHandler(FeedbackHandler.class);
View Full Code Here

Examples of org.apache.ace.agent.ConfigurationHandler

        assertFeedbackChannelsNotPresent(feedbackHandler, NON_EXISTING_CHANNEL);
    }

    @Test
    public void testSingleFeedbackChannelConfig() throws Exception {
        ConfigurationHandler configurationHandler = m_agentContextImpl.getHandler(ConfigurationHandler.class);

        configureAgent(configurationHandler, CONFIG_FEEDBACK_CHANNELS, AUDITLOG);

        FeedbackHandler feedbackHandler = m_agentContextImpl.getHandler(FeedbackHandler.class);
View Full Code Here

Examples of org.apache.ace.agent.ConfigurationHandler

        assertFeedbackChannelsPresent(feedbackHandler, AUDITLOG);
    }

    @Test
    public void testUpdateConfigAddFeedbackChannel() throws Exception {
        ConfigurationHandler configurationHandler = m_agentContextImpl.getHandler(ConfigurationHandler.class);

        configureAgent(configurationHandler, CONFIG_FEEDBACK_CHANNELS, AUDITLOG);

        FeedbackHandler feedbackHandler = m_agentContextImpl.getHandler(FeedbackHandler.class);
View Full Code Here

Examples of org.apache.ace.agent.ConfigurationHandler

        assertFeedbackChannelsPresent(feedbackHandler, AUDITLOG, CUSTOMCHANNEL);
    }

    @Test
    public void testUpdateConfigRemoveFeedbackChannel() throws Exception {
        ConfigurationHandler configurationHandler = m_agentContextImpl.getHandler(ConfigurationHandler.class);

        configureAgent(configurationHandler, CONFIG_FEEDBACK_CHANNELS, AUDITLOG_AND_CUSTOMCHANNEL);

        FeedbackHandler feedbackHandler = m_agentContextImpl.getHandler(FeedbackHandler.class);
View Full Code Here

Examples of org.apache.ace.agent.ConfigurationHandler

        verifyTestMocks();
    }

    @Test
    public void testAvailableIdentification() throws Exception {
        ConfigurationHandler configurationHandler = m_agentContext.getHandler(ConfigurationHandler.class);
        reset(configurationHandler);
        expect(configurationHandler.get(eq(AgentConstants.CONFIG_IDENTIFICATION_AGENTID), anyObject(String.class)))
            .andReturn("qqq").once();
        replay(configurationHandler);
        IdentificationHandler identificationHandler = m_agentContext.getHandler(IdentificationHandler.class);
        assertEquals(identificationHandler.getAgentId(), "qqq");
    }
View Full Code Here

Examples of org.apache.ace.agent.ConfigurationHandler

        assertEquals(identificationHandler.getAgentId(), "qqq");
    }

    @Test
    public void testUpdatedIdentification() throws Exception {
        ConfigurationHandler configurationHandler = m_agentContext.getHandler(ConfigurationHandler.class);
        reset(configurationHandler);
        expect(configurationHandler.get(eq(AgentConstants.CONFIG_IDENTIFICATION_AGENTID), anyObject(String.class)))
            .andReturn("qqq").once();
        expect(configurationHandler.get(eq(AgentConstants.CONFIG_IDENTIFICATION_AGENTID), anyObject(String.class)))
            .andReturn("yyy").once();
        replay(configurationHandler);
        IdentificationHandler identificationHandler = m_agentContext.getHandler(IdentificationHandler.class);
        assertEquals(identificationHandler.getAgentId(), "qqq");
        assertEquals(identificationHandler.getAgentId(), "yyy");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.