Re: Weird ClassCastException

2006-02-19 Thread Sean Schofield
One other thing. I believe we should change the suite() method in AbstractJsfTestCase to return new TestSuite(). I had an abstract test class of my own that extended AbstractJsfTestCase but I didn't have the suite method thinking - hey this is abstract anyways so what is there to test. Well

Re: Weird ClassCastException

2006-02-19 Thread Craig McClanahan
On 2/19/06, Sean Schofield [EMAIL PROTECTED] wrote: One other thing. I believe we should change the suite() method in AbstractJsfTestCase to return new TestSuite(). I had an abstract test class of my own that extended AbstractJsfTestCase but I didn't have the suite method thinking - hey

Re: Weird ClassCastException

2006-02-18 Thread Sean Schofield
I believe the problem I was not running the entire test suite of myfaces tests in my IDE. When I ran them in Maven, I believe an earlier test was calling the get method for the RenderKitFactory and therefore loading the default one into memory. Apparently you are not allowed to set a new one (as

Re: Weird ClassCastException

2006-02-18 Thread Craig McClanahan
On 2/18/06, Sean Schofield [EMAIL PROTECTED] wrote: I believe the problem I was not running the entire test suite of myfaces tests in my IDE. When I ran them in Maven, I believe an earlier test was calling the get method for the RenderKitFactory and therefore loading the default one into

[shale][mock] Weird ClassCastException

2006-02-17 Thread Sean Schofield
I am trying to use the mock stuff in my app. The test works fine in my IDE (1.4.2_04-b05) but does not run in maven (1.4.2_08-b03.) Specifically, the class cast exception is on line 131: renderKit = (MockRenderKit) renderKitFactory.getRenderKit(null,

Re: [shale][mock] Weird ClassCastException

2006-02-17 Thread Sean Schofield
I'm attaching my test case. Its a test for the latest MyFaces trunk code. /* * Copyright 2006 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. * You may obtain a copy of the

Re: [shale][mock] Weird ClassCastException

2006-02-17 Thread Craig McClanahan
On 2/17/06, Sean Schofield [EMAIL PROTECTED] wrote: I'm attaching my test case. Its a test for the latest MyFaces trunk code. Are you sure this is the failing test? It doesn't seem to have the line you quotes earlier. Craig

Re: [shale][mock] Weird ClassCastException

2006-02-17 Thread Sean Schofield
Yeah this is the test. --- Battery: org.apache.myfaces.custom.tree2.HtmlTreeRendererTest --- Tests run: 2, Failures: 0, Errors: 2, Time elapsed:

Re: [shale][mock] Weird ClassCastException

2006-02-17 Thread Craig McClanahan
On 2/17/06, Sean Schofield [EMAIL PROTECTED] wrote: Yeah this is the test. Ah, you meant line 131 of AbstractJsfTestCase :-) The only thing I can think of is maybe somehow the real API classes might be getting injected into the classpath somehow. Maybe you could try temporarily changing the

Re: Weird ClassCastException

2006-02-17 Thread Sean Schofield
Yeah I was thinking that maven is relying on the jars and since there is a config file in there the myfaces render kit is getting loaded instead. I will check into it. Thanks. Sean On 2/17/06, Craig McClanahan [EMAIL PROTECTED] wrote: On 2/17/06, Sean Schofield [EMAIL PROTECTED] wrote: