> Hi everyone,
> I am using EasyMock in my junit testcases.But it
[quoted text clipped - 47 lines]
> thanks,
> vysh
As far as I can see your problem is here:
> EasyMock.expect(currCntxt.getMessage().getSOAPHeader()).andReturn(sphead).once();
should be
EasyMock.expect(currCntxt.getMessage().getSOAPHeader()).andReturn(sphead.class).once();
if you are checking for type, or you should currCntxt message
SOAPHeader to sphead ifyou are expecting the value...
Lew - 26 Sep 2007 21:46 GMT
> As far as I can see your problem is here:
>> EasyMock.expect(currCntxt.getMessage().getSOAPHeader()).andReturn(sphead).once();
> should be
> EasyMock.expect(currCntxt.getMessage().getSOAPHeader()).andReturn(sphead.class).once();
> if you are checking for type, or you should currCntxt message
> SOAPHeader to sphead ifyou are expecting the value...
If 'sphead' is a class, it should be spelled with an initial upper-case
letter, by convention. Likewise, the 'H' of 'Head' should be upper case, by
convention.
If 'sphead' is a variable, the 'H' should still be upper case (by convention),
and the class should be obtained through the instance method 'getClass()'
instead of the class variable 'class'.

Signature
Lew
Roedy Green - 26 Sep 2007 23:39 GMT
>If 'sphead' is a class, it should be spelled with an initial upper-case
>letter, by convention. Likewise, the 'H' of 'Head' should be upper case, by
>convention.
>If 'sphead' is a variable, the 'H' should still be upper case (by convention),
>and the class should be obtained through the instance method 'getClass()'
>instead of the class variable 'class'.
see http://mindprod.com/jgloss/codingconventions.html

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com