org.kuali.rice.kew.test
Class FakeServiceImpl

java.lang.Object
  extended by org.kuali.rice.kew.test.FakeServiceImpl
All Implemented Interfaces:
FakeService

public class FakeServiceImpl
extends Object
implements FakeService

A generic, reusable fake service that records invocations, for testing purposes TODO: consider merging with TestServiceInterface/GenericTestService in KSB module

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
FakeService, GenericTestService

Nested Class Summary
static class FakeServiceImpl.Invocation
          Record of a method invocation
 
Constructor Summary
FakeServiceImpl()
           
 
Method Summary
 List<FakeServiceImpl.Invocation> getInvocations()
           
 void method1(Object arg1, Object arg2)
          An arbitrary method
 Object method2(Object arg1)
          An arbitrary method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeServiceImpl

public FakeServiceImpl()
Method Detail

getInvocations

public List<FakeServiceImpl.Invocation> getInvocations()
Specified by:
getInvocations in interface FakeService
Returns:
the invocations made up to this point

method1

public void method1(Object arg1,
                    Object arg2)
An arbitrary method

Specified by:
method1 in interface FakeService
Parameters:
arg1 - doesn't matter
arg2 - doesn't matter

method2

public Object method2(Object arg1)
An arbitrary method

Specified by:
method2 in interface FakeService
Parameters:
arg1 - doesn't matter
Returns:
a Date instance


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.