Re: [Dev] Custom authentication error message in APIM

2017-10-04 Thread Tharika Madurapperuma
Hi Vivek, You could try this [1] out to customize your error message. Alter the sample based on your requirement. [1] http://sanjeewamalalgoda.blogspot.com/2015/06/how-to-send-specific-status-code-and.html Thanks, Tharika. On Mon, Oct 2, 2017 at 6:46 PM, vivekkumar wrote: > Any clue from a

Re: [Dev] How to mock the CarbonContext?

2017-10-04 Thread KasunG Gajasinghe
CarbonContext is a thread-local variable. That means the carbon context can be accessible from anywhere within a given thread. So, you may not need to mock it! Since the test class and the testing class runs in the same thread, we can try to populate the CarbonContext in the @Test method before ac

Re: [Dev] How to mock the CarbonContext?

2017-10-04 Thread Dharshana Warusavitharana
Hi Sivaramya, You dont have to mock the whole carbon context here. You can send a mock payload when the particular method is called. Are you using powerMock + mockito if so do as the document sample in [1]. [1]. https://github.com/searls/mockito-testng-example/blob/master/presentation/Mockito.pd

Re: [Dev] How to mock the CarbonContext?

2017-10-04 Thread Malaka Silva
+Dharshana On Wed, Oct 4, 2017 at 8:26 PM, Sivaramya Sivanathan wrote: > Hi all, > > Currently I am working on the unit testing for the esb-connector-jms > extension. For that I need to mock the CarbonContext for the method > CarbonContext.getThreadLocalCarbonContext().getTenantId(). But, I'm >

[Dev] How to mock the CarbonContext?

2017-10-04 Thread Sivaramya Sivanathan
Hi all, Currently I am working on the unit testing for the esb-connector-jms extension. For that I need to mock the CarbonContext for the method CarbonContext.getThreadLocalCarbonContext().getTenantId(). But, I'm unable mock the CarbonContext. Can any one suggest me how can we mock the CarbonConte

[Dev] WSO2 Stream Processor 4.0.0-M13 Released !

2017-10-04 Thread Chathurika Amarathunga
Hi All, The WSO2 Analytics team is pleased to announce the release of *WSO2 Stream Processor Version 4.0.0 Milestone 13*. WSO2 Smart Analytics let digital business creating real-time, intelligent, actionable business insights, and data products which are achieved by WSO2 Stream Processor's real-t

[Dev] WSO2 Enterprise Integrator 6.1.1-update6 Released!

2017-10-04 Thread Sasikala Kottegoda
Hi all, The WSO2 Integration team is pleased to announce the release of Enterprise Integrator 6.1.1-update6. It is available for download from here . *Tasks/Bug Fixes and Improvements* https://wso2.org

Re: [Dev] Endpoint Template Dynamic Endpoint Format

2017-10-04 Thread Júnior
Hi Sudharma, Thanks for your reply. 2017-10-04 8:28 GMT-03:00 Sudharma Subasinghe : > Hi Junior, > > You can observe that there is no option to set format with parameter from > UI as there are per-defined list for format. AFAIU setting format in > Endpoint Template is not possible with paramet

Re: [Dev] Endpoint Template Dynamic Endpoint Format

2017-10-04 Thread Sudharma Subasinghe
Hi Junior, You can observe that there is no option to set format with parameter from UI as there are per-defined list for format. AFAIU setting format in Endpoint Template is not possible with parameterized value. Thanks Sudharma On Wed, Oct 4, 2017 at 2:31 AM, Júnior wrote: > Hi, > > Is it po