The following doesn't pass ...

public class RenderKitTestCase extends AbstractJsfTestCase{

    public RenderKitTestCase(String name){
        super(name);
    }

    public void testRenderKits(){
        assertTrue(facesContext.getRenderKit() == renderKit);
    }

}

This is because MockRenderKitFactory creates a new MockRenderKit in it's 
constructor and holds on to it for all tests of the suite.  Although the new 
MockRenderKit in AbstractJsfTestCase is added to the MockRenderKitFactory, 
MockRenderKitFactory throws an exception that is swallowed by the TestCase.

If I comment out the MockRenderKit construction in MockRenderKitFactory, all is 
well.  I wish the try/catch wasn't there also.

BTW, I really do like this is a great tool.

Dennis Byrne



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to