[Mondrian] ParallelTest

Julian Hyde julianhyde at speakeasy.net
Tue Jan 23 05:43:34 EST 2007

I think I intended to check each Worker's 'throwable' member after the join,
to make sure that each worker terminated without error. If any worker has
failed, then the test is a failure.


From: mondrian-bounces at pentaho.org [mailto:mondrian-bounces at pentaho.org] On
Behalf Of Pappyn Bart
Sent: Tuesday, January 23, 2007 1:45 AM
To: Julian Hyde
Cc: Mondrian developer mailing list
Subject: [Mondrian] ParallelTest

Hi Julian,
I am busy writing junit tests and derived a test from ParallelTest.
I noticed that ParallelTest will not throw any errors even if the test
so the test is kind of useless now.
It is easy to test if you set s = null before assertNotNull(s);
I notice a Worker class that catches the errors :
private static abstract class Worker implements Runnable {
        Throwable throwable;
        public void run() {
            try {
            } catch (Throwable e) {
                throwable = e;
        public abstract void runSafe();
But nothing is done with this afterwards.
Not sure why it is programmed this way, but I guess you forgot to write
some code...
Can you take a look ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20070123/d9a610c2/attachment.html 

More information about the Mondrian mailing list