powermock.examples.finalmocking
Class StateFormatter
java.lang.Object
powermock.examples.finalmocking.StateFormatter
public class StateFormatter
- extends Object
Simple class that uses a collaborator (the StateHolder class) which is final
and have final methods. The purpose is to show that PowerMock has the ability
to create a mock of the collaborator even though it's final and to expect the
method calls even though they're also final.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateFormatter
public StateFormatter(StateHolder stateHolder)
getFormattedState
public String getFormattedState()
Copyright © 2007-2012. All Rights Reserved.