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();
}
Aggregations