Search in sources :

Example 1 with ConsumerConfiguration

use of com.alibaba.dubbo.test.consumer.ConsumerConfiguration in project dubbo by alibaba.

the class Spring3CompatibilityTest method main.

public static void main(String[] args) {
    ConfigurableApplicationContext provider = startupProvider();
    ConfigurableApplicationContext consumer = startConsumer();
    ConsumerConfiguration consumerConfiguration = consumer.getBean(ConsumerConfiguration.class);
    DemoService demoService = consumerConfiguration.getDemoService();
    String value = demoService.sayHello("Mercy");
    Assert.isTrue("DefaultDemoService - sayHell() : Mercy".equals(value), "Test is failed!");
    System.out.println(value);
    provider.close();
    consumer.close();
}
Also used : ConfigurableApplicationContext(org.springframework.context.ConfigurableApplicationContext) ConsumerConfiguration(com.alibaba.dubbo.test.consumer.ConsumerConfiguration) DemoService(com.alibaba.dubbo.demo.DemoService)

Aggregations

DemoService (com.alibaba.dubbo.demo.DemoService)1 ConsumerConfiguration (com.alibaba.dubbo.test.consumer.ConsumerConfiguration)1 ConfigurableApplicationContext (org.springframework.context.ConfigurableApplicationContext)1