PageRenderTime 28ms CodeModel.GetById 2ms app.highlight 19ms RepoModel.GetById 1ms app.codeStats 1ms

/documentation/html/class_o_j_moq.html

http://github.com/hammerdr/OJTest
HTML | 566 lines | 534 code | 31 blank | 1 comment | 0 complexity | 9a5833427888a97b8d958f247563b8a4 MD5 | raw file
  1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2<html xmlns="http://www.w3.org/1999/xhtml">
  3<head>
  4<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5<title>Objective-J Test API: OJMoq Class Reference</title>
  6<link href="tabs.css" rel="stylesheet" type="text/css"/>
  7<link href="doxygen.css" rel="stylesheet" type="text/css"/>
  8</head>
  9<body>
 10<!-- Generated by Doxygen 1.6.1 -->
 11<div class="navigation" id="top">
 12  <div class="tabs">
 13    <ul>
 14      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
 15      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
 16      <li><a href="files.html"><span>Files</span></a></li>
 17    </ul>
 18  </div>
 19  <div class="tabs">
 20    <ul>
 21      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
 22      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
 23      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
 24    </ul>
 25  </div>
 26</div>
 27<div class="contents">
 28<h1>OJMoq Class Reference</h1><!-- doxytag: class="OJMoq" -->
 29<p><a href="class_o_j_moq-members.html">List of all members.</a></p>
 30<table border="0" cellpadding="0" cellspacing="0">
 31<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
 32<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_o_j_moq.html">OJMoq</a>)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_o_j_moq.html#acfe3d8bad49575471b1ca40f8a25f93b">expectSelector:times:</a><code> [implementation]</code></td></tr>
 33<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_o_j_moq.html">OJMoq</a>)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_o_j_moq.html#a6db8505cb8bb85c6f416b9fbd1e10651">expectSelector:times:arguments:</a><code> [implementation]</code></td></tr>
 34<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_o_j_moq.html#a4e13948a5112d74fe003c367106f5378">forwardInvocation:</a><code> [implementation]</code></td></tr>
 35<tr><td class="memItemLeft" align="right" valign="top">(id)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_o_j_moq.html#a04cc319894a12d884b97d55097d0365e">initWithBaseObject:</a><code> [implementation]</code></td></tr>
 36<tr><td class="memItemLeft" align="right" valign="top">(CPMethodSignature)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_o_j_moq.html#ace5c320b695a5ed1ac4a4e8c7b351a18">methodSignatureForSelector:</a><code> [implementation]</code></td></tr>
 37<tr><td class="memItemLeft" align="right" valign="top">(BOOL)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_o_j_moq.html#abf987dadcab0586c40d22333c4b2d158">respondsToSelector:</a><code> [implementation]</code></td></tr>
 38<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_o_j_moq.html">OJMoq</a>)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_o_j_moq.html#a690c39b13400d804e6107805bdb25e93">selector:callback:</a><code> [implementation]</code></td></tr>
 39<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_o_j_moq.html">OJMoq</a>)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_o_j_moq.html#aa12d890fd430f2dd7fbff3982ef5059c">selector:callback:arguments:</a><code> [implementation]</code></td></tr>
 40<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_o_j_moq.html">OJMoq</a>)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_o_j_moq.html#a2a2f956d2c1aeed04f34eb5c3857cd4f">selector:returns:</a><code> [implementation]</code></td></tr>
 41<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_o_j_moq.html">OJMoq</a>)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_o_j_moq.html#ad436552f4c3de2b9d5be50aafec60573">selector:returns:arguments:</a><code> [implementation]</code></td></tr>
 42<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_o_j_moq.html">OJMoq</a>)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_o_j_moq.html#a28d02ec1f56bccf3abe3fb68085020cb">selector:times:</a><code> [implementation]</code></td></tr>
 43<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_o_j_moq.html">OJMoq</a>)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_o_j_moq.html#a61733b62a1ff75c9bcc95c2d23ca9ee4">selector:times:arguments:</a><code> [implementation]</code></td></tr>
 44<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_o_j_moq.html">OJMoq</a>)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_o_j_moq.html#a1c412af39e9b5fd661b3b6ba45199380">selector:withArguments:returns:</a><code> [implementation]</code></td></tr>
 45<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_o_j_moq.html">OJMoq</a>)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_o_j_moq.html#a6227242aefb31e2bd3d4055eade5d9e5">verifyThatAllExpectationsHaveBeenMet</a><code> [implementation]</code></td></tr>
 46<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
 47<tr><td class="memItemLeft" align="right" valign="top">(id)&nbsp;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="class_o_j_moq.html#ae5202f9e3e50ccd36e6daaaee03d0315">mockBaseObject:</a><code> [implementation]</code></td></tr>
 48</table>
 49<hr/><a name="_details"></a><h2>Detailed Description</h2>
 50<p>A mocking library for Cappuccino applications </p>
 51
 52<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00022">22</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
 53<hr/><h2>Member Function Documentation</h2>
 54<a class="anchor" id="acfe3d8bad49575471b1ca40f8a25f93b"></a><!-- doxytag: member="OJMoq::expectSelector:times:" ref="acfe3d8bad49575471b1ca40f8a25f93b" args="(SEL selector,[times] int times)" -->
 55<div class="memitem">
 56<div class="memproto">
 57      <table class="memname">
 58        <tr>
 59          <td class="memname">- (<a class="el" href="class_o_j_moq.html">OJMoq</a>) expectSelector: </td>
 60          <td></td>
 61          <td class="paramtype">(SEL)&nbsp;</td>
 62          <td class="paramname"> <em>selector</em></td>
 63        </tr>
 64        <tr>
 65          <td class="paramkey">times:</td>
 66          <td></td>
 67          <td class="paramtype">(int)&nbsp;</td>
 68          <td class="paramname"> <em>times</em></td><td>&nbsp;</td>
 69        </tr>
 70        <tr>
 71          <td></td>
 72          <td></td>
 73          <td></td><td></td><td><code> [implementation]</code></td>
 74        </tr>
 75      </table>
 76</div>
 77<div class="memdoc">
 78<p>DEPRECATED** </p>
 79<dl><dt><b>Parameters:</b></dt><dd>
 80  <table border="0" cellspacing="2" cellpadding="0">
 81    <tr><td valign="top"></td><td valign="top"><em>selector</em>&nbsp;</td><td>The selector which should be called </td></tr>
 82    <tr><td valign="top"></td><td valign="top"><em>times</em>&nbsp;</td><td>The number of times that selector should be called </td></tr>
 83  </table>
 84  </dd>
 85</dl>
 86
 87<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00067">67</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
 88
 89</div>
 90</div>
 91<a class="anchor" id="a6db8505cb8bb85c6f416b9fbd1e10651"></a><!-- doxytag: member="OJMoq::expectSelector:times:arguments:" ref="a6db8505cb8bb85c6f416b9fbd1e10651" args="(SEL selector,[times] int times,[arguments] CPArray arguments)" -->
 92<div class="memitem">
 93<div class="memproto">
 94      <table class="memname">
 95        <tr>
 96          <td class="memname">- (<a class="el" href="class_o_j_moq.html">OJMoq</a>) expectSelector: </td>
 97          <td></td>
 98          <td class="paramtype">(SEL)&nbsp;</td>
 99          <td class="paramname"> <em>selector</em></td>
100        </tr>
101        <tr>
102          <td class="paramkey">times:</td>
103          <td></td>
104          <td class="paramtype">(int)&nbsp;</td>
105          <td class="paramname"> <em>times</em></td>
106        </tr>
107        <tr>
108          <td class="paramkey">arguments:</td>
109          <td></td>
110          <td class="paramtype">(<a class="el" href="class_c_p_array.html">CPArray</a>)&nbsp;</td>
111          <td class="paramname"> <em>arguments</em></td><td>&nbsp;</td>
112        </tr>
113        <tr>
114          <td></td>
115          <td></td>
116          <td></td><td></td><td><code> [implementation]</code></td>
117        </tr>
118      </table>
119</div>
120<div class="memdoc">
121<p>DEPRECATED** </p>
122<dl><dt><b>Parameters:</b></dt><dd>
123  <table border="0" cellspacing="2" cellpadding="0">
124    <tr><td valign="top"></td><td valign="top"><em>selector</em>&nbsp;</td><td>The selector which should be called </td></tr>
125    <tr><td valign="top"></td><td valign="top"><em>times</em>&nbsp;</td><td>The number of times that selector should be called </td></tr>
126    <tr><td valign="top"></td><td valign="top"><em>arguments</em>&nbsp;</td><td>Arguments for the selector. If an empty array of arguments is passed in, then the selector matches all arguments. </td></tr>
127  </table>
128  </dd>
129</dl>
130
131<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00080">80</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
132
133</div>
134</div>
135<a class="anchor" id="a4e13948a5112d74fe003c367106f5378"></a><!-- doxytag: member="OJMoq::forwardInvocation:" ref="a4e13948a5112d74fe003c367106f5378" args="(CPInvocation anInvocation)" -->
136<div class="memitem">
137<div class="memproto">
138      <table class="memname">
139        <tr>
140          <td class="memname">- (void) forwardInvocation: </td>
141          <td></td>
142          <td class="paramtype">(<a class="el" href="class_c_p_invocation.html">CPInvocation</a>)&nbsp;</td>
143          <td class="paramname"> <em>anInvocation</em></td>
144          <td>&nbsp;</td>
145          <td><code> [implementation]</code></td>
146        </tr>
147      </table>
148</div>
149<div class="memdoc">
150
151<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00234">234</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
152
153</div>
154</div>
155<a class="anchor" id="a04cc319894a12d884b97d55097d0365e"></a><!-- doxytag: member="OJMoq::initWithBaseObject:" ref="a04cc319894a12d884b97d55097d0365e" args="(CPObject aBaseObject)" -->
156<div class="memitem">
157<div class="memproto">
158      <table class="memname">
159        <tr>
160          <td class="memname">- (id) initWithBaseObject: </td>
161          <td></td>
162          <td class="paramtype">(CPObject)&nbsp;</td>
163          <td class="paramname"> <em>aBaseObject</em></td>
164          <td>&nbsp;</td>
165          <td><code> [implementation]</code></td>
166        </tr>
167      </table>
168</div>
169<div class="memdoc">
170<p>Creates an <a class="el" href="class_o_j_moq.html">OJMoq</a> object based on the base object. If the base object is nil, then a benign stub is created. If the base object is non-nil, it creates a spy mock that allows all of the messages to go through to the base object.</p>
171<dl><dt><b>Parameters:</b></dt><dd>
172  <table border="0" cellspacing="2" cellpadding="0">
173    <tr><td valign="top"></td><td valign="top"><em>aBaseObject</em>&nbsp;</td><td>A nil or non-nil base object that will be wrapped by <a class="el" href="class_o_j_moq.html">OJMoq</a> </td></tr>
174  </table>
175  </dd>
176</dl>
177<dl class="return"><dt><b>Returns:</b></dt><dd>An instance of <a class="el" href="class_o_j_moq.html">OJMoq</a> that wraps the given base object </dd></dl>
178
179<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00051">51</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
180
181</div>
182</div>
183<a class="anchor" id="ace5c320b695a5ed1ac4a4e8c7b351a18"></a><!-- doxytag: member="OJMoq::methodSignatureForSelector:" ref="ace5c320b695a5ed1ac4a4e8c7b351a18" args="(SEL aSelector)" -->
184<div class="memitem">
185<div class="memproto">
186      <table class="memname">
187        <tr>
188          <td class="memname">- (CPMethodSignature) methodSignatureForSelector: </td>
189          <td></td>
190          <td class="paramtype">(SEL)&nbsp;</td>
191          <td class="paramname"> <em>aSelector</em></td>
192          <td>&nbsp;</td>
193          <td><code> [implementation]</code></td>
194        </tr>
195      </table>
196</div>
197<div class="memdoc">
198
199<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00228">228</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
200
201</div>
202</div>
203<a class="anchor" id="ae5202f9e3e50ccd36e6daaaee03d0315"></a><!-- doxytag: member="OJMoq::mockBaseObject:" ref="ae5202f9e3e50ccd36e6daaaee03d0315" args="(CPObject aBaseObject)" -->
204<div class="memitem">
205<div class="memproto">
206      <table class="memname">
207        <tr>
208          <td class="memname">+ (id) mockBaseObject: </td>
209          <td></td>
210          <td class="paramtype">(CPObject)&nbsp;</td>
211          <td class="paramname"> <em>aBaseObject</em></td>
212          <td>&nbsp;</td>
213          <td><code> [implementation]</code></td>
214        </tr>
215      </table>
216</div>
217<div class="memdoc">
218<p>Creates an <a class="el" href="class_o_j_moq.html">OJMoq</a> object based on the base object. If the base object is nil, then a benign stub is created. If the base object is non-nil, it creates a spy mock that allows all of the messages to go through to the base object.</p>
219<dl><dt><b>Parameters:</b></dt><dd>
220  <table border="0" cellspacing="2" cellpadding="0">
221    <tr><td valign="top"></td><td valign="top"><em>aBaseObject</em>&nbsp;</td><td>A nil or non-nil base object that will be wrapped by <a class="el" href="class_o_j_moq.html">OJMoq</a> </td></tr>
222  </table>
223  </dd>
224</dl>
225<dl class="return"><dt><b>Returns:</b></dt><dd>An instance of <a class="el" href="class_o_j_moq.html">OJMoq</a> that wraps the given base object </dd></dl>
226
227<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00037">37</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
228
229</div>
230</div>
231<a class="anchor" id="abf987dadcab0586c40d22333c4b2d158"></a><!-- doxytag: member="OJMoq::respondsToSelector:" ref="abf987dadcab0586c40d22333c4b2d158" args="(SEL aSelector)" -->
232<div class="memitem">
233<div class="memproto">
234      <table class="memname">
235        <tr>
236          <td class="memname">- (BOOL) respondsToSelector: </td>
237          <td></td>
238          <td class="paramtype">(SEL)&nbsp;</td>
239          <td class="paramname"> <em>aSelector</em></td>
240          <td>&nbsp;</td>
241          <td><code> [implementation]</code></td>
242        </tr>
243      </table>
244</div>
245<div class="memdoc">
246
247<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00252">252</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
248
249</div>
250</div>
251<a class="anchor" id="a690c39b13400d804e6107805bdb25e93"></a><!-- doxytag: member="OJMoq::selector:callback:" ref="a690c39b13400d804e6107805bdb25e93" args="(SEL aSelector,[callback] Function aCallback)" -->
252<div class="memitem">
253<div class="memproto">
254      <table class="memname">
255        <tr>
256          <td class="memname">- (<a class="el" href="class_o_j_moq.html">OJMoq</a>) selector: </td>
257          <td></td>
258          <td class="paramtype">(SEL)&nbsp;</td>
259          <td class="paramname"> <em>aSelector</em></td>
260        </tr>
261        <tr>
262          <td class="paramkey">callback:</td>
263          <td></td>
264          <td class="paramtype">(Function)&nbsp;</td>
265          <td class="paramname"> <em>aCallback</em></td><td>&nbsp;</td>
266        </tr>
267        <tr>
268          <td></td>
269          <td></td>
270          <td></td><td></td><td><code> [implementation]</code></td>
271        </tr>
272      </table>
273</div>
274<div class="memdoc">
275<p>Provides a callback with the parameters that were passed in to the specified selector</p>
276<dl><dt><b>Parameters:</b></dt><dd>
277  <table border="0" cellspacing="2" cellpadding="0">
278    <tr><td valign="top"></td><td valign="top"><em>aSelector</em>&nbsp;</td><td>The selector on the base object that will be called </td></tr>
279    <tr><td valign="top"></td><td valign="top"><em>aCallback</em>&nbsp;</td><td>A single-argument function that is passed the array of arguments </td></tr>
280  </table>
281  </dd>
282</dl>
283
284<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00178">178</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
285
286</div>
287</div>
288<a class="anchor" id="aa12d890fd430f2dd7fbff3982ef5059c"></a><!-- doxytag: member="OJMoq::selector:callback:arguments:" ref="aa12d890fd430f2dd7fbff3982ef5059c" args="(SEL aSelector,[callback] Function aCallback,[arguments] CPArray arguments)" -->
289<div class="memitem">
290<div class="memproto">
291      <table class="memname">
292        <tr>
293          <td class="memname">- (<a class="el" href="class_o_j_moq.html">OJMoq</a>) selector: </td>
294          <td></td>
295          <td class="paramtype">(SEL)&nbsp;</td>
296          <td class="paramname"> <em>aSelector</em></td>
297        </tr>
298        <tr>
299          <td class="paramkey">callback:</td>
300          <td></td>
301          <td class="paramtype">(Function)&nbsp;</td>
302          <td class="paramname"> <em>aCallback</em></td>
303        </tr>
304        <tr>
305          <td class="paramkey">arguments:</td>
306          <td></td>
307          <td class="paramtype">(<a class="el" href="class_c_p_array.html">CPArray</a>)&nbsp;</td>
308          <td class="paramname"> <em>arguments</em></td><td>&nbsp;</td>
309        </tr>
310        <tr>
311          <td></td>
312          <td></td>
313          <td></td><td></td><td><code> [implementation]</code></td>
314        </tr>
315      </table>
316</div>
317<div class="memdoc">
318<p>Provides a callback with the parameters that were passed in to the specified selector and match the given arguments</p>
319<dl><dt><b>Parameters:</b></dt><dd>
320  <table border="0" cellspacing="2" cellpadding="0">
321    <tr><td valign="top"></td><td valign="top"><em>aSelector</em>&nbsp;</td><td>The selector on the base object that will be called </td></tr>
322    <tr><td valign="top"></td><td valign="top"><em>aCallback</em>&nbsp;</td><td>A single-argument function that is passed the array of arguments </td></tr>
323    <tr><td valign="top"></td><td valign="top"><em>arguments</em>&nbsp;</td><td>The arguments that the selector must match </td></tr>
324  </table>
325  </dd>
326</dl>
327
328<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00191">191</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
329
330</div>
331</div>
332<a class="anchor" id="a2a2f956d2c1aeed04f34eb5c3857cd4f"></a><!-- doxytag: member="OJMoq::selector:returns:" ref="a2a2f956d2c1aeed04f34eb5c3857cd4f" args="(SEL aSelector,[returns] CPObject value)" -->
333<div class="memitem">
334<div class="memproto">
335      <table class="memname">
336        <tr>
337          <td class="memname">- (<a class="el" href="class_o_j_moq.html">OJMoq</a>) selector: </td>
338          <td></td>
339          <td class="paramtype">(SEL)&nbsp;</td>
340          <td class="paramname"> <em>aSelector</em></td>
341        </tr>
342        <tr>
343          <td class="paramkey">returns:</td>
344          <td></td>
345          <td class="paramtype">(CPObject)&nbsp;</td>
346          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
347        </tr>
348        <tr>
349          <td></td>
350          <td></td>
351          <td></td><td></td><td><code> [implementation]</code></td>
352        </tr>
353      </table>
354</div>
355<div class="memdoc">
356<p>Ensure that selector returns value when selector is called. Selector will match all arguments. </p>
357<dl><dt><b>Parameters:</b></dt><dd>
358  <table border="0" cellspacing="2" cellpadding="0">
359    <tr><td valign="top"></td><td valign="top"><em>aSelector</em>&nbsp;</td><td>The selector on the base object that will be called </td></tr>
360    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The value that the selector should return </td></tr>
361  </table>
362  </dd>
363</dl>
364
365<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00130">130</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
366
367</div>
368</div>
369<a class="anchor" id="ad436552f4c3de2b9d5be50aafec60573"></a><!-- doxytag: member="OJMoq::selector:returns:arguments:" ref="ad436552f4c3de2b9d5be50aafec60573" args="(SEL aSelector,[returns] CPObject value,[arguments] CPArray arguments)" -->
370<div class="memitem">
371<div class="memproto">
372      <table class="memname">
373        <tr>
374          <td class="memname">- (<a class="el" href="class_o_j_moq.html">OJMoq</a>) selector: </td>
375          <td></td>
376          <td class="paramtype">(SEL)&nbsp;</td>
377          <td class="paramname"> <em>aSelector</em></td>
378        </tr>
379        <tr>
380          <td class="paramkey">returns:</td>
381          <td></td>
382          <td class="paramtype">(CPObject)&nbsp;</td>
383          <td class="paramname"> <em>value</em></td>
384        </tr>
385        <tr>
386          <td class="paramkey">arguments:</td>
387          <td></td>
388          <td class="paramtype">(<a class="el" href="class_c_p_array.html">CPArray</a>)&nbsp;</td>
389          <td class="paramname"> <em>arguments</em></td><td>&nbsp;</td>
390        </tr>
391        <tr>
392          <td></td>
393          <td></td>
394          <td></td><td></td><td><code> [implementation]</code></td>
395        </tr>
396      </table>
397</div>
398<div class="memdoc">
399<p>Ensure that the selector, when called with the specified arguments, will return the given value. If you pass an empty array of arguments, then the selector will match all calls.</p>
400<dl><dt><b>Parameters:</b></dt><dd>
401  <table border="0" cellspacing="2" cellpadding="0">
402    <tr><td valign="top"></td><td valign="top"><em>aSelector</em>&nbsp;</td><td>The selector on the base object that will be called </td></tr>
403    <tr><td valign="top"></td><td valign="top"><em>arguments</em>&nbsp;</td><td>The arguments that must be passed to selector for this to work </td></tr>
404    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The value that the selector should return </td></tr>
405  </table>
406  </dd>
407</dl>
408
409<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00155">155</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
410
411</div>
412</div>
413<a class="anchor" id="a28d02ec1f56bccf3abe3fb68085020cb"></a><!-- doxytag: member="OJMoq::selector:times:" ref="a28d02ec1f56bccf3abe3fb68085020cb" args="(SEL selector,[times] CPNumber times)" -->
414<div class="memitem">
415<div class="memproto">
416      <table class="memname">
417        <tr>
418          <td class="memname">- (<a class="el" href="class_o_j_moq.html">OJMoq</a>) selector: </td>
419          <td></td>
420          <td class="paramtype">(SEL)&nbsp;</td>
421          <td class="paramname"> <em>selector</em></td>
422        </tr>
423        <tr>
424          <td class="paramkey">times:</td>
425          <td></td>
426          <td class="paramtype">(CPNumber)&nbsp;</td>
427          <td class="paramname"> <em>times</em></td><td>&nbsp;</td>
428        </tr>
429        <tr>
430          <td></td>
431          <td></td>
432          <td></td><td></td><td><code> [implementation]</code></td>
433        </tr>
434      </table>
435</div>
436<div class="memdoc">
437<p>Expect that selector is called times on the base object. The selector here will match all arguments. </p>
438<dl><dt><b>Parameters:</b></dt><dd>
439  <table border="0" cellspacing="2" cellpadding="0">
440    <tr><td valign="top"></td><td valign="top"><em>selector</em>&nbsp;</td><td>The selector which should be called </td></tr>
441    <tr><td valign="top"></td><td valign="top"><em>times</em>&nbsp;</td><td>The number of times that selector should be called </td></tr>
442  </table>
443  </dd>
444</dl>
445
446<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00092">92</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
447
448</div>
449</div>
450<a class="anchor" id="a61733b62a1ff75c9bcc95c2d23ca9ee4"></a><!-- doxytag: member="OJMoq::selector:times:arguments:" ref="a61733b62a1ff75c9bcc95c2d23ca9ee4" args="(SEL selector,[times] CPNumber times,[arguments] CPArray arguments)" -->
451<div class="memitem">
452<div class="memproto">
453      <table class="memname">
454        <tr>
455          <td class="memname">- (<a class="el" href="class_o_j_moq.html">OJMoq</a>) selector: </td>
456          <td></td>
457          <td class="paramtype">(SEL)&nbsp;</td>
458          <td class="paramname"> <em>selector</em></td>
459        </tr>
460        <tr>
461          <td class="paramkey">times:</td>
462          <td></td>
463          <td class="paramtype">(CPNumber)&nbsp;</td>
464          <td class="paramname"> <em>times</em></td>
465        </tr>
466        <tr>
467          <td class="paramkey">arguments:</td>
468          <td></td>
469          <td class="paramtype">(<a class="el" href="class_c_p_array.html">CPArray</a>)&nbsp;</td>
470          <td class="paramname"> <em>arguments</em></td><td>&nbsp;</td>
471        </tr>
472        <tr>
473          <td></td>
474          <td></td>
475          <td></td><td></td><td><code> [implementation]</code></td>
476        </tr>
477      </table>
478</div>
479<div class="memdoc">
480<p>Expect that selector is called times with arguments on the base object. The selector here will match the arguments that you pass it. If an empty array is passed then the selector will match all arguments!</p>
481<dl><dt><b>Parameters:</b></dt><dd>
482  <table border="0" cellspacing="2" cellpadding="0">
483    <tr><td valign="top"></td><td valign="top"><em>selector</em>&nbsp;</td><td>The selector which should be called </td></tr>
484    <tr><td valign="top"></td><td valign="top"><em>times</em>&nbsp;</td><td>The number of times that selector should be called </td></tr>
485    <tr><td valign="top"></td><td valign="top"><em>arguments</em>&nbsp;</td><td>Arguments for the selector. If an empty array of arguments is passed in, then the selector matches all arguments. </td></tr>
486  </table>
487  </dd>
488</dl>
489
490<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00107">107</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
491
492</div>
493</div>
494<a class="anchor" id="a1c412af39e9b5fd661b3b6ba45199380"></a><!-- doxytag: member="OJMoq::selector:withArguments:returns:" ref="a1c412af39e9b5fd661b3b6ba45199380" args="(SEL aSelector,[withArguments] CPArray arguments,[returns] CPObject value)" -->
495<div class="memitem">
496<div class="memproto">
497      <table class="memname">
498        <tr>
499          <td class="memname">- (<a class="el" href="class_o_j_moq.html">OJMoq</a>) selector: </td>
500          <td></td>
501          <td class="paramtype">(SEL)&nbsp;</td>
502          <td class="paramname"> <em>aSelector</em></td>
503        </tr>
504        <tr>
505          <td class="paramkey">withArguments:</td>
506          <td></td>
507          <td class="paramtype">(<a class="el" href="class_c_p_array.html">CPArray</a>)&nbsp;</td>
508          <td class="paramname"> <em>arguments</em></td>
509        </tr>
510        <tr>
511          <td class="paramkey">returns:</td>
512          <td></td>
513          <td class="paramtype">(CPObject)&nbsp;</td>
514          <td class="paramname"> <em>value</em></td><td>&nbsp;</td>
515        </tr>
516        <tr>
517          <td></td>
518          <td></td>
519          <td></td><td></td><td><code> [implementation]</code></td>
520        </tr>
521      </table>
522</div>
523<div class="memdoc">
524<p>DEPRECATED </p>
525<dl><dt><b>Parameters:</b></dt><dd>
526  <table border="0" cellspacing="2" cellpadding="0">
527    <tr><td valign="top"></td><td valign="top"><em>aSelector</em>&nbsp;</td><td>The selector on the base object that will be called </td></tr>
528    <tr><td valign="top"></td><td valign="top"><em>arguments</em>&nbsp;</td><td>The arguments that must be passed to selector for this to work </td></tr>
529    <tr><td valign="top"></td><td valign="top"><em>value</em>&nbsp;</td><td>The value that the selector should return </td></tr>
530  </table>
531  </dd>
532</dl>
533
534<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00141">141</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
535
536</div>
537</div>
538<a class="anchor" id="a6227242aefb31e2bd3d4055eade5d9e5"></a><!-- doxytag: member="OJMoq::verifyThatAllExpectationsHaveBeenMet" ref="a6227242aefb31e2bd3d4055eade5d9e5" args="()" -->
539<div class="memitem">
540<div class="memproto">
541      <table class="memname">
542        <tr>
543          <td class="memname">- (<a class="el" href="class_o_j_moq.html">OJMoq</a>) verifyThatAllExpectationsHaveBeenMet </td>
544          <td></td>
545          <td class="paramname"></td>
546          <td>&nbsp;</td>
547          <td><code> [implementation]</code></td>
548        </tr>
549      </table>
550</div>
551<div class="memdoc">
552<p>Verifies all of the expectations that were set on the <a class="el" href="class_o_j_moq.html">OJMoq</a> and fails the test if any of the expectations fail. </p>
553
554<p>Definition at line <a class="el" href="_o_j_moq_8j_source.html#l00211">211</a> of file <a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a>.</p>
555
556</div>
557</div>
558<hr/>The documentation for this class was generated from the following file:<ul>
559<li>Frameworks/OJMoq/<a class="el" href="_o_j_moq_8j_source.html">OJMoq.j</a></li>
560</ul>
561</div>
562<hr size="1"/><address style="text-align: right;"><small>Generated on Sat Feb 20 02:20:16 2010 for Objective-J Test API by&nbsp;
563<a href="http://www.doxygen.org/index.html">
564<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
565</body>
566</html>