« Return to Thread: grabbing value from mutator on mockobject?

grabbing value from mutator on mockobject?

by nino martinez wael :: Rate this Message:

Reply to Author | View in Thread

Hi

I might be headed down a wrong path.. But I have something like this:

                                KeySetup keySetupCpr=mockery.mock(KeySetup.class);
                                one(readOnlyAllInOneService).getKeySetup(KeySetupIdentification.class,
"1010", "CustomCustomerIdent");
                                will(returnValue(keySetupCpr));
                                one(keySetupCpr).setTerminators(with(any(List.class)));

Now my keysetup are being called with a list and the next thing that
happens are a call to get keySetup.getTerminators , are there any way
I can get the list that has just been set and return that?

regards Nino

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: grabbing value from mutator on mockobject?