[Mondrian] ParallelTest

Pappyn Bart Bart.Pappyn at vandewiele.com
Tue Jan 23 04:44:38 EST 2007


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
fails,
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 {
                runSafe();
            } 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 ?
 
Thanks,
Bart
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pentaho.org/pipermail/mondrian/attachments/20070123/634e8807/attachment.html 


More information about the Mondrian mailing list