[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