mockPullCoffee_.try_drinking_coffee(null, null);
controlPullCoffeeOperations_.setMatcher(new AbstractMatcher()
{
public boolean matches(Object[] expected, Object[] actual)
{
StringHolder name = (StringHolder) expected[0];
IntHolder minutes = (IntHolder) expected[1];
// need to set the out params
if (name != null)
{
name.value = "jacorb";
}
if (minutes != null)
{
minutes.value = 20;
}
return true;
}
});
controlPullCoffeeOperations_.setReturnValue(true);
mockPullCoffee_.try_cancel_coffee(null);
controlPullCoffeeOperations_.setMatcher(new AbstractMatcher()
{
public boolean matches(Object[] expected, Object[] actual)
{
StringHolder name = (StringHolder) expected[0];
if (name != null)
{
// need to set the out param
name.value = "";