Hi,
As per my experience during my GSoC project, the assertion errors thrown by
worker threads in the unit test callbacks do not interrupt the compiling
process.
I discussed with Suho during a code review and come up with a solution by
storing the assertion errors in a java.util.List and throw them later in
the main thread. I have sent a PR containing the prototype of my
implementation and a sample application of it [1]. Could you please check
the design, class name and the location.
I am thinking about adding overloaded methods with Predicates as shown
below but it can be used only in combined with Assert.assertTrue. WDYT?
public static TestCallBack addQueryCallback(SiddhiAppRuntime
siddhiAppRuntime, String queryName, Predicate<Event>... predicates) {
// ...
}
[1] https://github.com/wso2/siddhi/pull/510
PS: @Suho & @Nirmal please ignore my previous mail which has an incorrect
dev mail address.
Thanks & Regards,
Gobinath
--
*Gobinath** Loganathan*
Graduate Student,
Electrical and Computer Engineering,
Western University.
Email : [email protected]
Blog : javahelps.com <http://www.javahelps.com/>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev