Hi,
        I'm writing a test where I need to test that a method *isn't* called 
(testing scheduled outages).  Is there an EasyMock way of doing that?  I've 
looked, but no methods jump out at me.

Any suggestions?


<Aside>:
I've tried creating my own custom implementation of the interface in question 
(rather than having EasyMock create a proxy for me), with a "fail" in the 
method I don't want called, but simply adding that causes an odd EasyMock error 
at a seemingly unrelated line of code:
(1 matchers expected, 2 recorded)
which I can't figure out.  I'm replacing m_collector in CollectdTest, and it 
gives the above error on the call to m_ipIfdao.findByserviceType("SNMP") in 
setupInterface, if that helps anyone figure it out.  I'd prefer to find another 
way though, as it looks like I'm messing with things I don't understand.

Craig Miskell,
Technical Support,
AgResearch Invermay
03 489-9279
 "So, you'll put down your suit, and I'll put down my tie, and we'll sell
each other hardware like civilised people." --Roger Burton West (November 2000)
=======================================================================
Attention: The information contained in this message and/or attachments
from AgResearch Limited is intended only for the persons or entities
to which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipients is prohibited by AgResearch
Limited. If you have received this message in error, please notify the
sender immediately.
=======================================================================

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to