| java.lang.Object net.sf.mockcreator.MockCore
MockCore | public class MockCore (Code) | | |
Method Summary | |
public static void | endBlock() | public static void | injectMock(Object to, String fieldName, Object mock) Injects a mock into private/protected field of an object. | public static void | reset() | public static void | setTimeTolerance(long milliseconds) Set level of tolerance when comparing java.util.Date objects
Parameters: milliseconds - Maximum difference two dates are allowed to mismatch to be considered the same. | public static void | startBlock() | public static void | verify() |
endBlock | public static void endBlock()(Code) | | |
injectMock | public static void injectMock(Object to, String fieldName, Object mock) throws Exception(Code) | | Injects a mock into private/protected field of an object.
Parameters: to - Object to store the mock. Parameters: fieldName - Name of the field. Parameters: mock - Mock object. |
reset | public static void reset()(Code) | | |
setTimeTolerance | public static void setTimeTolerance(long milliseconds)(Code) | | Set level of tolerance when comparing java.util.Date objects
Parameters: milliseconds - Maximum difference two dates are allowed to mismatch to be considered the same. |
startBlock | public static void startBlock()(Code) | | |
verify | public static void verify()(Code) | | |
|
|