Search in sources :

Example 11 with ModuleConfig

use of org.apache.dubbo.config.ModuleConfig in project dubbo by alibaba.

the class ConfigManagerTest method testModuleConfig.

// Test MonitorConfig correlative methods
@Test
public void testModuleConfig() {
    ModuleConfig config = new ModuleConfig();
    configManager.setModule(config);
    assertTrue(configManager.getModule().isPresent());
    assertEquals(config, configManager.getModule().get());
}
Also used : ModuleConfig(org.apache.dubbo.config.ModuleConfig) Test(org.junit.jupiter.api.Test)

Aggregations

ModuleConfig (org.apache.dubbo.config.ModuleConfig)11 Test (org.junit.jupiter.api.Test)7 RegistryConfig (org.apache.dubbo.config.RegistryConfig)4 ApplicationConfig (org.apache.dubbo.config.ApplicationConfig)3 MonitorConfig (org.apache.dubbo.config.MonitorConfig)3 ProtocolConfig (org.apache.dubbo.config.ProtocolConfig)2 AbstractInterfaceConfig (org.apache.dubbo.config.AbstractInterfaceConfig)1 ConfigCenterConfig (org.apache.dubbo.config.ConfigCenterConfig)1 ConsumerConfig (org.apache.dubbo.config.ConsumerConfig)1 MetadataReportConfig (org.apache.dubbo.config.MetadataReportConfig)1 ProviderConfig (org.apache.dubbo.config.ProviderConfig)1 ConfigTest (org.apache.dubbo.config.spring.ConfigTest)1 AnnotationConfigApplicationContext (org.springframework.context.annotation.AnnotationConfigApplicationContext)1 ClassPathXmlApplicationContext (org.springframework.context.support.ClassPathXmlApplicationContext)1