powermock.examples.finalmocking
Class StateFormatter

java.lang.Object
  extended by 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.


Constructor Summary
StateFormatter(StateHolder stateHolder)
           
 
Method Summary
 String getFormattedState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateFormatter

public StateFormatter(StateHolder stateHolder)
Method Detail

getFormattedState

public String getFormattedState()


Copyright © 2007-2012. All Rights Reserved.