Java Code Examples for com.alibaba.dubbo.common.utils.LogUtil#checkNoError()
The following examples show how to use
com.alibaba.dubbo.common.utils.LogUtil#checkNoError() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ReferenceCountExchangeClientTest.java From dubbo-2.6.5 with Apache License 2.0 | 5 votes |
/** * test counter won't count down incorrectly when invoker is destroyed for multiple times */ @Test public void test_multi_destory() { init(0); DubboAppender.doStart(); DubboAppender.clear(); demoServiceInvoker.destroy(); demoServiceInvoker.destroy(); Assert.assertEquals("hello", helloService.hello()); Assert.assertEquals("should not warning message", 0, LogUtil.findMessage(errorMsg)); LogUtil.checkNoError(); DubboAppender.doStop(); destoy(); }
Example 2
Source File: ReferenceCountExchangeClientTest.java From dubbox with Apache License 2.0 | 5 votes |
/** * 测试invoker多次destory不会导致计数器多次减少 */ @Test public void test_multi_destory(){ init(0); DubboAppender.doStart(); DubboAppender.clear(); demoServiceInvoker.destroy(); demoServiceInvoker.destroy(); Assert.assertEquals("hello", helloService.hello()); Assert.assertEquals("should not warning message", 0, LogUtil.findMessage(errorMsg)); LogUtil.checkNoError(); DubboAppender.doStop(); destoy(); }
Example 3
Source File: ReferenceCountExchangeClientTest.java From dubbox-hystrix with Apache License 2.0 | 5 votes |
/** * 测试invoker多次destory不会导致计数器多次减少 */ @Test public void test_multi_destory(){ init(0); DubboAppender.doStart(); DubboAppender.clear(); demoServiceInvoker.destroy(); demoServiceInvoker.destroy(); Assert.assertEquals("hello", helloService.hello()); Assert.assertEquals("should not warning message", 0, LogUtil.findMessage(errorMsg)); LogUtil.checkNoError(); DubboAppender.doStop(); destoy(); }
Example 4
Source File: ReferenceCountExchangeClientTest.java From dubbo3 with Apache License 2.0 | 5 votes |
/** * 测试invoker多次destory不会导致计数器多次减少 */ @Test public void test_multi_destory(){ init(0); DubboAppender.doStart(); DubboAppender.clear(); demoServiceInvoker.destroy(); demoServiceInvoker.destroy(); Assert.assertEquals("hello", helloService.hello()); Assert.assertEquals("should not warning message", 0, LogUtil.findMessage(errorMsg)); LogUtil.checkNoError(); DubboAppender.doStop(); destoy(); }
Example 5
Source File: ReferenceCountExchangeClientTest.java From dubbox with Apache License 2.0 | 5 votes |
/** * 测试invoker多次destory不会导致计数器多次减少 */ @Test public void test_multi_destory(){ init(0); DubboAppender.doStart(); DubboAppender.clear(); demoServiceInvoker.destroy(); demoServiceInvoker.destroy(); Assert.assertEquals("hello", helloService.hello()); Assert.assertEquals("should not warning message", 0, LogUtil.findMessage(errorMsg)); LogUtil.checkNoError(); DubboAppender.doStop(); destoy(); }
Example 6
Source File: ReferenceCountExchangeClientTest.java From dubbox with Apache License 2.0 | 5 votes |
/** * 测试invoker多次destory不会导致计数器多次减少 */ @Test public void test_multi_destory(){ init(0); DubboAppender.doStart(); DubboAppender.clear(); demoServiceInvoker.destroy(); demoServiceInvoker.destroy(); Assert.assertEquals("hello", helloService.hello()); Assert.assertEquals("should not warning message", 0, LogUtil.findMessage(errorMsg)); LogUtil.checkNoError(); DubboAppender.doStop(); destoy(); }