Hi Akila, There is a ThriftTestServer we've written for tests in carbon-analytics-common. You can find an example here [1]. Also you can find other examples in the databridge-agent test cases. Can you go through them and see if that fits your purpose?
[1] https://github.com/wso2/carbon-analytics-common/blob/master/components/data-bridge/org.wso2.carbon.databridge.agent/src/test/java/org/wso2/carbon/databridge/agent/test/thrift/ThriftTestServer.java Thanks, Lasantha On 30 August 2015 at 12:59, Akila Ravihansa Perera <[email protected]> wrote: > Hi, > > I'm looking for a way to mock the Thrift receiver in CEP. My requirement > is to write an integration test to assert stat publishing functionality (to > CEP via Thrift) in my Python app. I'm developing the automation test cases > using TestNG framework so I can use any Java based library. Is this > possible by using regular Java sockets? > > I'd rather prefer to start an embedded CEP Thrift receiver in my test > method and verify the functionality. Appreciate any help regarding this. > > Thanks. > -- > Akila Ravihansa Perera > WSO2 Inc.; http://wso2.com/ > > Blog: http://ravihansa3000.blogspot.com > -- *Lasantha Fernando* Senior Software Engineer - Data Technologies Team WSO2 Inc. http://wso2.com email: [email protected] mobile: (+94) 71 5247551
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
