powermock.examples.finalmocking
Class StateHolder
java.lang.Object
powermock.examples.finalmocking.StateHolder
public final class StateHolder
- extends Object
A dummy class created to demonstrated how PowerMock can deal with final
classes and methods.
Method Summary |
String |
getState()
Dummy method that is used to demonstrate how PowerMock can deal with
final methods. |
void |
setState(String state)
Dummy method that is used to demonstrate how PowerMock can deal with
final methods. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StateHolder
public StateHolder()
getState
public final String getState()
- Dummy method that is used to demonstrate how PowerMock can deal with
final methods.
- Returns:
- The current state.
setState
public final void setState(String state)
- Dummy method that is used to demonstrate how PowerMock can deal with
final methods.
Copyright © 2007-2012. All Rights Reserved.