Compiler Error in Test Code of CXF Transport NMR

View: New views
2 Messages — Rating Filter:   Alert me  

Compiler Error in Test Code of CXF Transport NMR

by Michael Roepke, Filekeys :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

when I try to compile inside or outside Eclipse following test code

    @Test
    public void testSendOut() throws Exception {
.......
        EasyMock.expect(method.getDeclaringClass()).andStubReturn(

(Class<?>)org.apache.servicemix.cxf.transport.nmr.Greeter.class);
.......

I get following compiler Error.....

[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
D:\projects\filekeys\tools\apache\apache-servicemix-4.1.0.2-fuse\src\cxf\cxf-transport-nmr\src\test\java\org\apache\servicemix\cxf\transport\nmr\NMRConduitTest.java:[74,51]
andStubReturn(jav
a.lang.Class<capture#993 of ?>) in
org.easymock.IExpectationSetters<java.lang.Class<capture#993 of ?>>
cannot be applied to (java.lang.Class<capture#696 of ?>)

It is the only compiler error I get! I was sittng for hours trying to
figure out what happens here, but couldnt.

Any help is highly appreciated!!

Good night
Michael

--
Filekeys Ltd.
Michael Roepke
Praça da Alegria 18, 4D
1250-004 Lisboa, Portugal
www.filekeys.com
+351 96 75 93 528
+49 178 391 38 38

Re: Compiler Error in Test Code of CXF Transport NMR

by Freeman Fang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I believe this already get fixed by SMX4-385[1].

You need ensure you are using the latest code base

[1]http://svn.apache.org/viewvc?revision=818903&view=revision

Freeman
On 2009-11-6, at 上午7:35, Michael Roepke, Filekeys wrote:

> Hi all,
>
> when I try to compile inside or outside Eclipse following test code
>
>    @Test
>    public void testSendOut() throws Exception {
> .......
>        EasyMock.expect(method.getDeclaringClass()).andStubReturn(
>
> (Class<?>)org.apache.servicemix.cxf.transport.nmr.Greeter.class);
> .......
>
> I get following compiler Error.....
>
> [INFO]  
> ------------------------------------------------------------------------
> [INFO] Compilation failure
> D:\projects\filekeys\tools\apache\apache-servicemix-4.1.0.2-fuse\src
> \cxf\cxf-transport-nmr\src\test\java\org\apache\servicemix\cxf
> \transport\nmr\NMRConduitTest.java:[74,51]
> andStubReturn(jav
> a.lang.Class<capture#993 of ?>) in
> org.easymock.IExpectationSetters<java.lang.Class<capture#993 of ?>>
> cannot be applied to (java.lang.Class<capture#696 of ?>)
>
> It is the only compiler error I get! I was sittng for hours trying to
> figure out what happens here, but couldnt.
>
> Any help is highly appreciated!!
>
> Good night
> Michael
>
> --
> Filekeys Ltd.
> Michael Roepke
> Praça da Alegria 18, 4D
> 1250-004 Lisboa, Portugal
> www.filekeys.com
> +351 96 75 93 528
> +49 178 391 38 38


--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com