| OLD | NEW |
| 1 Chronological listing of changes. More detail is usually found in the Git commit
messages | 1 Listing of notable changes by release. More detail is usually found in the Git |
| 2 and/or the pull requests. | 2 commit messages and/or the pull requests. |
| 3 | 3 |
| 4 | 4 OCMock 3.1.4 / 3.1.5 (2015-08-26) |
| 5 2012-01-23 | 5 |
| 6 | 6 * Fixed deployment target in podspec |
| 7 * Avoiding deprecated method to convert to a C string (thanks to Kushal Pisavadi
a) | 7 |
| 8 | 8 |
| 9 | 9 OCMock 3.1.3 (2015-08-12) |
| 10 2011-11-03 | 10 |
| 11 | 11 * Now throwing exception when trying to create mocks for nil (Nick Gravelyn) |
| 12 * Recreated project from scratch with new conventions in Xcode 4.2 (thanks to Ma
tt Di Pasquale) | 12 * Fixed ARC related bug when boxing macro args (Richard Ross) |
| 13 | 13 * Added target for dynamic iOS framework, which makes OCMock compatible with |
| 14 | 14 Carthage (Piet Brauer) |
| 15 2011-09-26 | 15 * Memory management and other small bug fixes |
| 16 | 16 |
| 17 |
| 18 OCMock 3.1.2 (2015-01-08) |
| 19 |
| 20 * Fixed bugs around reject and expectation orders (Mason Glidden, Ben Asher) |
| 21 * Small adjustments to build file and dependencies |
| 22 |
| 23 |
| 24 OCMock 3.1.1 (2014-08-23) |
| 25 |
| 26 * Fixed a recently introduced bug that resulted in class arguments and return |
| 27 values not to be considered objects (Patrick Hartling, Max Shcheglov) |
| 28 » |
| 29 |
| 30 OCMock 3.1 (2014-08-22) |
| 31 |
| 32 * Converting number types to make andReturn more intuitive (Carl Lindberg) |
| 33 * Macros now silence warnings about unused return values (Gordon Fontenot) |
| 34 * Added isKindOfClass constraint (Ash Furrow) |
| 35 * Performance and stability improvements. As a result it is no longer possible |
| 36 use verify-after-running to verify certain methods: |
| 37 - All methods implemented by NSObject and categories on it |
| 38 - Private methods in core Apple classes, ie. the class name has an NS or UI |
| 39 prefix and the method has an underscore prefix and/or suffix. |
| 40 |
| 41 |
| 42 OCMock 3.0.2 (2014-07-07) |
| 43 |
| 44 * Fixed podspec |
| 45 |
| 46 |
| 47 OCMock 3.0.1 (2014-07-06) |
| 48 |
| 49 * Fixed bug that prevented stubs from returning nil |
| 50 * Fixed bug related to handling of weak references |
| 51 * Improved error message when trying to mock undefined method |
| 52 * Added support for matching of char* arguments |
| 53 |
| 54 |
| 55 OCMock 3.0 (2014-06-12) |
| 56 |
| 57 * Added macro for verify with delay |
| 58 * Fixed several critical bugs |
| 59 * Allowing nil as block in stub action. With partial mocks this makes it |
| 60 possible to overwrite a method to do nothing (Sam Stigler) |
| 61 * More descriptive messages when trying to verify unknown method |
| 62 |
| 63 |
| 64 OCMock 3.0.M3 (2014-05-31) |
| 65 |
| 66 * Changed license to Apache 2 license |
| 67 * Added support for verify-after-run for class methods and for methods sent |
| 68 directly to the real object covered by a partial mock. |
| 69 * Using a temporary meta class subclass for mocking class methods, enabling |
| 70 full clean-up. As a consequence class methods mocked on a given class are no |
| 71 longer mocked in all subclasses. |
| 72 * Throwing descriptive exception when attempting to create partial mock on |
| 73 toll-free bridged classes and tagged pointers (Mark Larsen)» |
| 74 |
| 75 |
| 76 OCMock 3.0.M2 (2014-05-07) |
| 77 |
| 78 * Added support from verify-after-run. Only works for methods that are sent |
| 79 to a mock object. Does not work for classes and methods sent directly to |
| 80 the real object covered by a partial mock. |
| 81 * Failures without location are now thrown as OCMockTestFailure exception, |
| 82 not as NSInternalInconsistencyException |
| 83 |
| 84 |
| 85 OCMock 3.0.M1 (2014-04-26) |
| 86 |
| 87 * Added macros for modern syntax |
| 88 * Automatic deregistration of observer mocks |
| 89 |
| 90 |
| 91 |
| 92 |
| 93 OCMock 2.2.4 (2014-04-04) |
| 94 |
| 95 2014-04-05 |
| 96 |
| 97 * Switched unit test for OCMock itself to XCTest. |
| 98 * Added andForwardToRealObject support for class methods (Carl Lindberg) |
| 99 * Extended OCMockObject with verifyWithDelay (Charles Harley, Daniel |
| 100 Doubrovkine) |
| 101 |
| 102 |
| 103 OCMock 2.2.2 (2013-12-19) |
| 104 |
| 105 * Added implementation for Apple-interal NSIsKind informal protocol (Brian |
| 106 Gerstle) |
| 107 * Various fixes for method with structure returns (Carl Lindberg) |
| 108 * Added a specially typed method for object references to OCMArg. |
| 109 * Fixed bug that caused matching to be aborted on first ignored non-object arg. |
| 110 * Fixed a bug where partial mocks wouldn't clean up mocked class methods. |
| 111 (we7teck) |
| 112 * Improved value macro so it can take constant arguments and expressions. (Carl |
| 113 Lindberg) |
| 114 * Fixed a bug that caused crashes when methods that require "special" struct |
| 115 returns were mocked in partial mocks. (Carl Lindberg) |
| 116 |
| 117 |
| 118 OCMock 2.2.1 (2013-07-24) |
| 119 |
| 120 * Fixed several bugs regarding class method mocking in class hierarchies. |
| 121 * Fixed bug preventing the same class method to be expected more than once. |
| 122 |
| 123 |
| 124 OCMock 2.2 (2013-07-02) |
| 125 |
| 126 * Can ignore non-object arguments on a per-invocation basis. |
| 127 * Added constraint for any selector. |
| 128 |
| 129 |
| 130 OCMock 2.1.2 (2013-06-19) |
| 131 |
| 132 * Constraints implement NSCopying for OS X 10.9 SDK compatibility. |
| 133 |
| 134 |
| 135 OCMock 2.1 (2013-03-15) |
| 136 |
| 137 * Stubbing an object creation method now handles retain count correctly. |
| 138 * Added support for forwardingTagetForSelector: (thanks to Jeff Watkins) |
| 139 * Added class method mocking capability to class mock objects |
| 140 * Added implementation of isKindOfClass: to class mock objects |
| 141 * Allowing to set non-object pass-by-ref args (thanks to Glenn L. Austin) |
| 142 * Calling a previously expected method on a partial mock is no longer an error. |
| 143 |
| 144 |
| 145 OCMock 2.0 (2012-03-02) |
| 146 |
| 147 * Avoiding deprecated method to convert to a C string (thanks to Kushal |
| 148 Pisavadia) |
| 149 * Recreated project from scratch with new conventions in Xcode 4.2 (thanks to |
| 150 Matt Di Pasquale) |
| 17 * Arguments only need to be equal, don't have to have same class | 151 * Arguments only need to be equal, don't have to have same class |
| 18 | 152 |
| 19 | 153 |
| 20 | 154 |
| 21 Chronological listing of changes in the original Subversion code repository. If
a particular | |
| 22 SVN revision has no entry, that check-in did not involve any code or feature cha
nges. | |
| 23 | 155 |
| 24 2011-02-15 (r74) | 156 OCMock 1.77 (2011-02-15) |
| 25 | 157 |
| 26 * Added feature to explicitly disable a partial mock | 158 * Added feature to explicitly disable a partial mock |
| 27 | |
| 28 | |
| 29 2011-01-28 (r71) | |
| 30 | |
| 31 * Updated example to work with iOS 4.2. | 159 * Updated example to work with iOS 4.2. |
| 32 | 160 |
| 33 | 161 |
| 34 2010-08-21 (r69) | 162 OCMock 1.70 (2010-08-21) |
| 35 | 163 |
| 36 * Added feature to explicitly reject methods on nice mocks (thanks to Heath Bord
ers) | 164 * Added feature to explicitly reject methods on nice mocks (thanks to Heath |
| 37 | 165 Borders) |
| 38 | 166 * Added feature to forward method to real object from partial mock (thanks to |
| 39 2010-08-20 (r68) | 167 Marco Sandrini) |
| 40 | |
| 41 * Added feature to forward method to real object from partial mock (thanks to Ma
rco Sandrini) | |
| 42 | |
| 43 | |
| 44 2010-08-02 (r67) | |
| 45 | |
| 46 * Fix to allow block arguments (thanks to Justin DeWind) | 168 * Fix to allow block arguments (thanks to Justin DeWind) |
| 47 | |
| 48 | |
| 49 2010-07-28 (r62-r65) | |
| 50 | |
| 51 * Now building OCMock library for simulator (i386) and device (armv7) | 169 * Now building OCMock library for simulator (i386) and device (armv7) |
| 52 * Updated example to run tests on device | 170 * Updated example to run tests on device |
| 53 * Changed OCMOCK_VALUE macro to be iOS compatible (thanks to Derek Clarkson) | 171 * Changed OCMOCK_VALUE macro to be iOS compatible (thanks to Derek Clarkson) |
| 54 | |
| 55 | |
| 56 2010-07-21 (r61) | |
| 57 | |
| 58 * Added a new target to build a static library for iOS use | 172 * Added a new target to build a static library for iOS use |
| 59 * Created an example showing how to use OCMock in an iOS project | 173 * Created an example showing how to use OCMock in an iOS project |
| 60 | |
| 61 | |
| 62 2010-05-19 (r57) | |
| 63 | |
| 64 * Various small clean-ups; no change in functionality (thanks to Jonah Williams) | 174 * Various small clean-ups; no change in functionality (thanks to Jonah Williams) |
| 65 | |
| 66 | |
| 67 2010-04-18 (r56) | |
| 68 | |
| 69 * Added block constraints and invocation handler (thanks to Justin DeWind) | 175 * Added block constraints and invocation handler (thanks to Justin DeWind) |
| 70 | 176 |
| 71 | 177 |
| 72 2009-10-16 (r55) | 178 OCMock 1.55 (2009-10-16) |
| 73 | 179 |
| 74 * Fixed broken test for array argument descciptions (Craig Beck) | 180 * Fixed broken test for array argument descciptions (Craig Beck) |
| 75 * Disambiguated mock table method name to avoid compiler warning | 181 * Disambiguated mock table method name to avoid compiler warning |
| 76 * Renamed some variables to avoid warnings when using -Wshadow | 182 * Renamed some variables to avoid warnings when using -Wshadow |
| 77 * Partial mocks are now deallocated as they should | 183 * Partial mocks are now deallocated as they should |
| 78 * Fixed problems that occured when using mocks as arguments | 184 * Fixed problems that occured when using mocks as arguments |
| 79 | |
| 80 | |
| 81 2009-08-18 (r54) | |
| 82 | |
| 83 * OnCall methods now have same signature as replaced ones. | 185 * OnCall methods now have same signature as replaced ones. |
| 84 | |
| 85 | |
| 86 2009-08-14 (r53) | |
| 87 | |
| 88 * Fixed possible retain bug (Daniel Eggert) | 186 * Fixed possible retain bug (Daniel Eggert) |
| 89 | |
| 90 | |
| 91 2009-08-14 (r52) | |
| 92 | |
| 93 * Added feature that allows to verify expectations are called in sequence. | 187 * Added feature that allows to verify expectations are called in sequence. |
| 94 * Improved detection of unqualified method return type. | 188 * Improved detection of unqualified method return type. |
| 95 | |
| 96 | |
| 97 2009-08-13 (r51) | |
| 98 | |
| 99 * Fixed bug that caused crash when using method swizzling with void return type. | 189 * Fixed bug that caused crash when using method swizzling with void return type. |
| 100 | |
| 101 | |
| 102 2009-07-14 (r49) | |
| 103 | |
| 104 * Added support for calling arbitrary methods when stubbed methods are invoked. | 190 * Added support for calling arbitrary methods when stubbed methods are invoked. |
| 105 | 191 * Added support for posting notifications (based on Jean-Francois Dontigny's |
| 106 | 192 code) |
| 107 2009-07-14 (r48) | |
| 108 | |
| 109 * Added support for posting notifications (based on Jean-Francois Dontigny's cod
e) | |
| 110 | |
| 111 | |
| 112 2009-07-14 (r46) | |
| 113 | |
| 114 * Fixed bug around complex type encodings (Jean-Francois Dontigny) | 193 * Fixed bug around complex type encodings (Jean-Francois Dontigny) |
| 115 | |
| 116 | |
| 117 2009-05-26 (r45) | |
| 118 | |
| 119 * Partial mocks now work on object reference and self (thanks to Mike Mangino) | 194 * Partial mocks now work on object reference and self (thanks to Mike Mangino) |
| 120 | |
| 121 | |
| 122 2009-04-24 (r43) | |
| 123 | |
| 124 * Added partial mocks (calls to the original object reference cannot be mocked) | 195 * Added partial mocks (calls to the original object reference cannot be mocked) |
| 125 | 196 |
| 126 | 197 |
| 127 2009-04-17 (r42) | 198 OCMock 1.42 (2009-05-19) |
| 128 | 199 |
| 129 * Mock observers now handle user infos on notifications. | 200 * Mock observers now handle user infos on notifications. |
| 130 | |
| 131 | |
| 132 2009-04-09 (r39) | |
| 133 | |
| 134 * Added inital support for mock observers (loosely based on Dave Dribbin's idea) | 201 * Added inital support for mock observers (loosely based on Dave Dribbin's idea) |
| 135 | |
| 136 | |
| 137 2009-04-08 (r38) | |
| 138 | |
| 139 * Moved factory methods from OCMConstraint to OCMArg | 202 * Moved factory methods from OCMConstraint to OCMArg |
| 140 | |
| 141 | |
| 142 2009-03-13 (r37) | |
| 143 | |
| 144 * Added pass by ref argument setters | 203 * Added pass by ref argument setters |
| 145 | |
| 146 | |
| 147 2009-03-11 (r34) | |
| 148 | |
| 149 * Linked install name now uses @rpath (Dave Dribbin) | 204 * Linked install name now uses @rpath (Dave Dribbin) |
| 150 | |
| 151 | |
| 152 2009-02-22 (r32) | |
| 153 | |
| 154 * Added support for respondsToSelector (Dave Dribin) | 205 * Added support for respondsToSelector (Dave Dribin) |
| 155 * Added constraint for any pointer | 206 * Added constraint for any pointer |
| 156 * Now comparing selectors as strings (Dado Colussi) | 207 * Now comparing selectors as strings (Dado Colussi) |
| 157 | 208 |
| 158 | 209 |
| 159 2008-07-07 (r28) | 210 OCMock 1.29 (2008-07-07) |
| 160 | 211 |
| 161 * Resetting invocation target in recorder to avoid retain cycles. | 212 * Resetting invocation target in recorder to avoid retain cycles. |
| 162 | |
| 163 | |
| 164 2008-06-19 (r27) | |
| 165 | |
| 166 * Added optional integration with hamcrest for constraints | 213 * Added optional integration with hamcrest for constraints |
| 167 | |
| 168 | |
| 169 2008-05-08 (r24) | |
| 170 | |
| 171 * Now building quad-fat; the 64-bit versions are somewhat experimental though | 214 * Now building quad-fat; the 64-bit versions are somewhat experimental though |
| 172 | |
| 173 | |
| 174 2008-02-28 (r22) | |
| 175 | |
| 176 * Using new functions to deal with protocols (Evan Doll) | 215 * Using new functions to deal with protocols (Evan Doll) |
| 177 | |
| 178 | |
| 179 2007-11-22 (r20) | |
| 180 | |
| 181 * Added support for void* parameters (Tuukka Norri) | 216 * Added support for void* parameters (Tuukka Norri) |
| 182 * Fixed a bug that could caused crashes when non-char const pointers were descri
bed | 217 * Fixed a bug that could caused crashes when non-char const pointers were |
| 183 | 218 described |
| 184 | |
| 185 2007-11-22 (r19) | |
| 186 | |
| 187 * Fixed bug to allow mocking of methods with type qualifieres (Nikita Zhuk) | 219 * Fixed bug to allow mocking of methods with type qualifieres (Nikita Zhuk) |
| 188 | |
| 189 | |
| 190 2007-10-22 (r18) | |
| 191 | |
| 192 * Added a simple constraint implementation. | 220 * Added a simple constraint implementation. |
| 193 | 221 |
| 194 | 222 |
| 195 2007-06-04 (r15) | 223 OCMock 1.17 (2007-06-04) |
| 196 | 224 |
| 197 * Now re-throwing fail-fast exceptions, for unexpected invocations for example,
when | 225 * Now re-throwing fail-fast exceptions, for unexpected invocations for example, |
| 198 verify is called; in case the first throw is ignored by a framework. | 226 when verify is called; in case the first throw is ignored by a framework. |
| 199 | |
| 200 | |
| 201 2007-04-23 (r14) | |
| 202 | |
| 203 * Added nice mocks, i.e. mocks that don't raise on unknown methods (Mark Thomas) | 227 * Added nice mocks, i.e. mocks that don't raise on unknown methods (Mark Thomas) |
| 204 | |
| 205 * Fixed bug that prevented expectations after invocations (M. Scott Ford) | 228 * Fixed bug that prevented expectations after invocations (M. Scott Ford) |
| 206 | |
| 207 | |
| 208 2006-06-11 (r12) | |
| 209 | |
| 210 * Added possibility to throw an exception, based on code by Justin DeWind | 229 * Added possibility to throw an exception, based on code by Justin DeWind |
| 211 | 230 * Added Evan Doll's bugfix, which forwards conformsToProtocol: methods when |
| 212 * Added Evan Doll's bugfix, which forwards conformsToProtocol: methods when nece
ssary | 231 necessary |
| 213 | 232 * Added the ability to match struct arguments, based on code contributed by |
| 214 * Added the ability to match struct arguments, based on code contributed by Dani
el Eggert | 233 Daniel Eggert |
| 215 | |
| 216 * Better description of arguments, based on code contributed by Jeremy Higgs | 234 * Better description of arguments, based on code contributed by Jeremy Higgs |
| 217 | 235 * Added the ability to create multiple identical expectations on the mock |
| 218 * Added the ability to create multiple identical expectations on the mock object
(Jeremy Higgs) | 236 object (Jeremy Higgs) |
| 219 | |
| 220 * Added the ability to mock out nil arguments (Jeremy Higgs) | 237 * Added the ability to mock out nil arguments (Jeremy Higgs) |
| 221 | 238 * Added slightly modified version of Jon Reid's contribution, which adds the |
| 222 | 239 possibility to stub primitive return values. |
| 223 2005-12-11 (r11) | 240 * Added Jon Reid's bugfix that prevents a crash when trying to stub an unknown |
| 224 | 241 method on a protocol. |
| 225 * Added slightly modified version of Jon Reid's contribution, which adds the pos
sibility to stub | 242 |
| 226 primitive return values. | 243 |
| 227 | 244 OCMock 1.10 (2005-10-03) |
| 228 * Added Jon Reid's bugfix that prevents a crash when trying to stub an unknown m
ethod on a | |
| 229 protocol. | |
| 230 | |
| 231 | |
| 232 2005-10-03 (r10) | |
| 233 | 245 |
| 234 * Upgraded to build and run tests using the OCUnit that is now part of XCode. | 246 * Upgraded to build and run tests using the OCUnit that is now part of XCode. |
| 235 | 247 * Added XCode 2.1 project |
| 236 | 248 * Added Richard Clark's contribution, which provides support for scalar |
| 237 2005-10-03 (r9) | 249 arguments. |
| 238 | |
| 239 * Added XCdoe 2.1 project | |
| 240 | |
| 241 | |
| 242 2005-02-16 (r8) | |
| 243 | |
| 244 * Added Richard Clark's contribution, which provides support for scalar argument
s. | |
| 245 | |
| 246 | |
| 247 2005-02-13 (r7) | |
| 248 | |
| 249 * Added support for mocking formal protocols | 250 * Added support for mocking formal protocols |
| 250 | 251 |
| 251 | 252 |
| 252 2004-08-26 (r6) | 253 OCMock 1.6 (2004-08-30) |
| 253 | 254 |
| 254 * MockObject and Recorder now inherit from NSProxy. | 255 * MockObject and Recorder now inherit from NSProxy. |
| 255 | 256 |
| OLD | NEW |