Project

General

Profile

1 3132 perry
<?xml version="1.0" encoding="iso-8859-1"?>
2
<!DOCTYPE html
3
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
6
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
<head>
8
  <title>Class: MetacatTest</title>
9
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
  <script type="text/javascript">
13
  // <![CDATA[
14
15
  function popupCode( url ) {
16
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
  }
18
19
  function toggleCode( id ) {
20
    if ( document.getElementById )
21
      elem = document.getElementById( id );
22
    else if ( document.all )
23
      elem = eval( "document.all." + id );
24
    else
25
      return false;
26
27
    elemStyle = elem.style;
28
29
    if ( elemStyle.display != "block" ) {
30
      elemStyle.display = "block"
31
    } else {
32
      elemStyle.display = "none"
33
    }
34
35
    return true;
36
  }
37
38
  // Make codeblocks hidden by default
39
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
41
  // ]]>
42
  </script>
43
44
</head>
45
<body>
46
47
48
49
    <div id="classHeader">
50
        <table class="header-table">
51
        <tr class="top-aligned-row">
52
          <td><strong>Class</strong></td>
53
          <td class="class-name-in-header">MetacatTest</td>
54
        </tr>
55
        <tr class="top-aligned-row">
56
            <td><strong>In:</strong></td>
57
            <td>
58
                <a href="../files/test/metacat_test_rb.html">
59
                test/metacat_test.rb
60
                </a>
61
        <br />
62
            </td>
63
        </tr>
64
65
        <tr class="top-aligned-row">
66
            <td><strong>Parent:</strong></td>
67
            <td>
68
                Test::Unit::TestCase
69
            </td>
70
        </tr>
71
        </table>
72
    </div>
73
  <!-- banner header -->
74
75
  <div id="bodyContent">
76
77
78
79
  <div id="contextContent">
80
81
82
83
   </div>
84
85
    <div id="method-list">
86
      <h3 class="section-bar">Methods</h3>
87
88
      <div class="name-list">
89
      <a href="#M000051">setup</a>&nbsp;&nbsp;
90
      <a href="#M000052">teardown</a>&nbsp;&nbsp;
91
      <a href="#M000056">test_error_if_docid_and_squery_set?</a>&nbsp;&nbsp;
92
      <a href="#M000064">test_failed_login</a>&nbsp;&nbsp;
93
      <a href="#M000054">test_initial_login</a>&nbsp;&nbsp;
94
      <a href="#M000062">test_login</a>&nbsp;&nbsp;
95
      <a href="#M000055">test_login_and_yield</a>&nbsp;&nbsp;
96
      <a href="#M000063">test_logout</a>&nbsp;&nbsp;
97
      <a href="#M000053">test_new</a>&nbsp;&nbsp;
98
      <a href="#M000057">test_nil_if_document_does_not_exist?</a>&nbsp;&nbsp;
99
      <a href="#M000058">test_permission_denied</a>&nbsp;&nbsp;
100
      <a href="#M000067">test_read_data_table</a>&nbsp;&nbsp;
101
      <a href="#M000065">test_read_eml</a>&nbsp;&nbsp;
102
      <a href="#M000066">test_read_xml</a>&nbsp;&nbsp;
103
      <a href="#M000061">test_returns_array_of_eml_objects?</a>&nbsp;&nbsp;
104
      <a href="#M000059">test_returns_eml?</a>&nbsp;&nbsp;
105
      <a href="#M000068">test_returns_xml</a>&nbsp;&nbsp;
106
      <a href="#M000069">test_string_formatting</a>&nbsp;&nbsp;
107
      <a href="#M000060">test_will_not_return_data_table</a>&nbsp;&nbsp;
108
      </div>
109
    </div>
110
111
  </div>
112
113
114
    <!-- if includes -->
115
116
    <div id="section">
117
118
119
120
121
122
123
124
125
    <!-- if method_list -->
126
    <div id="methods">
127
      <h3 class="section-bar">Public Instance methods</h3>
128
129
      <div id="method-M000051" class="method-detail">
130
        <a name="M000051"></a>
131
132
        <div class="method-heading">
133
          <a href="MetacatTest.src/M000051.html" target="Code" class="method-signature"
134
            onclick="popupCode('MetacatTest.src/M000051.html');return false;">
135
          <span class="method-name">setup</span><span class="method-args">()</span>
136
          </a>
137
        </div>
138
139
        <div class="method-description">
140
        </div>
141
      </div>
142
143
      <div id="method-M000052" class="method-detail">
144
        <a name="M000052"></a>
145
146
        <div class="method-heading">
147
          <a href="MetacatTest.src/M000052.html" target="Code" class="method-signature"
148
            onclick="popupCode('MetacatTest.src/M000052.html');return false;">
149
          <span class="method-name">teardown</span><span class="method-args">()</span>
150
          </a>
151
        </div>
152
153
        <div class="method-description">
154
        </div>
155
      </div>
156
157
      <div id="method-M000056" class="method-detail">
158
        <a name="M000056"></a>
159
160
        <div class="method-heading">
161
          <a href="MetacatTest.src/M000056.html" target="Code" class="method-signature"
162
            onclick="popupCode('MetacatTest.src/M000056.html');return false;">
163
          <span class="method-name">test_error_if_docid_and_squery_set?</span><span class="method-args">()</span>
164
          </a>
165
        </div>
166
167
        <div class="method-description">
168
          <p>
169
<a href="Metacat.html#M000072">Metacat.find</a>()
170
</p>
171
        </div>
172
      </div>
173
174
      <div id="method-M000064" class="method-detail">
175
        <a name="M000064"></a>
176
177
        <div class="method-heading">
178
          <a href="MetacatTest.src/M000064.html" target="Code" class="method-signature"
179
            onclick="popupCode('MetacatTest.src/M000064.html');return false;">
180
          <span class="method-name">test_failed_login</span><span class="method-args">()</span>
181
          </a>
182
        </div>
183
184
        <div class="method-description">
185
        </div>
186
      </div>
187
188
      <div id="method-M000054" class="method-detail">
189
        <a name="M000054"></a>
190
191
        <div class="method-heading">
192
          <a href="MetacatTest.src/M000054.html" target="Code" class="method-signature"
193
            onclick="popupCode('MetacatTest.src/M000054.html');return false;">
194
          <span class="method-name">test_initial_login</span><span class="method-args">()</span>
195
          </a>
196
        </div>
197
198
        <div class="method-description">
199
        </div>
200
      </div>
201
202
      <div id="method-M000062" class="method-detail">
203
        <a name="M000062"></a>
204
205
        <div class="method-heading">
206
          <a href="MetacatTest.src/M000062.html" target="Code" class="method-signature"
207
            onclick="popupCode('MetacatTest.src/M000062.html');return false;">
208
          <span class="method-name">test_login</span><span class="method-args">()</span>
209
          </a>
210
        </div>
211
212
        <div class="method-description">
213
          <p>
214
<a href="Metacat.html#M000073">Metacat.login</a>/logout
215
</p>
216
        </div>
217
      </div>
218
219
      <div id="method-M000055" class="method-detail">
220
        <a name="M000055"></a>
221
222
        <div class="method-heading">
223
          <a href="MetacatTest.src/M000055.html" target="Code" class="method-signature"
224
            onclick="popupCode('MetacatTest.src/M000055.html');return false;">
225
          <span class="method-name">test_login_and_yield</span><span class="method-args">()</span>
226
          </a>
227
        </div>
228
229
        <div class="method-description">
230
        </div>
231
      </div>
232
233
      <div id="method-M000063" class="method-detail">
234
        <a name="M000063"></a>
235
236
        <div class="method-heading">
237
          <a href="MetacatTest.src/M000063.html" target="Code" class="method-signature"
238
            onclick="popupCode('MetacatTest.src/M000063.html');return false;">
239
          <span class="method-name">test_logout</span><span class="method-args">()</span>
240
          </a>
241
        </div>
242
243
        <div class="method-description">
244
        </div>
245
      </div>
246
247
      <div id="method-M000053" class="method-detail">
248
        <a name="M000053"></a>
249
250
        <div class="method-heading">
251
          <a href="MetacatTest.src/M000053.html" target="Code" class="method-signature"
252
            onclick="popupCode('MetacatTest.src/M000053.html');return false;">
253
          <span class="method-name">test_new</span><span class="method-args">()</span>
254
          </a>
255
        </div>
256
257
        <div class="method-description">
258
          <p>
259
<a href="Metacat.html#M000070">Metacat.new</a>
260
</p>
261
        </div>
262
      </div>
263
264
      <div id="method-M000057" class="method-detail">
265
        <a name="M000057"></a>
266
267
        <div class="method-heading">
268
          <a href="MetacatTest.src/M000057.html" target="Code" class="method-signature"
269
            onclick="popupCode('MetacatTest.src/M000057.html');return false;">
270
          <span class="method-name">test_nil_if_document_does_not_exist?</span><span class="method-args">()</span>
271
          </a>
272
        </div>
273
274
        <div class="method-description">
275
        </div>
276
      </div>
277
278
      <div id="method-M000058" class="method-detail">
279
        <a name="M000058"></a>
280
281
        <div class="method-heading">
282
          <a href="MetacatTest.src/M000058.html" target="Code" class="method-signature"
283
            onclick="popupCode('MetacatTest.src/M000058.html');return false;">
284
          <span class="method-name">test_permission_denied</span><span class="method-args">()</span>
285
          </a>
286
        </div>
287
288
        <div class="method-description">
289
        </div>
290
      </div>
291
292
      <div id="method-M000067" class="method-detail">
293
        <a name="M000067"></a>
294
295
        <div class="method-heading">
296
          <a href="MetacatTest.src/M000067.html" target="Code" class="method-signature"
297
            onclick="popupCode('MetacatTest.src/M000067.html');return false;">
298
          <span class="method-name">test_read_data_table</span><span class="method-args">()</span>
299
          </a>
300
        </div>
301
302
        <div class="method-description">
303
        </div>
304
      </div>
305
306
      <div id="method-M000065" class="method-detail">
307
        <a name="M000065"></a>
308
309
        <div class="method-heading">
310
          <a href="MetacatTest.src/M000065.html" target="Code" class="method-signature"
311
            onclick="popupCode('MetacatTest.src/M000065.html');return false;">
312
          <span class="method-name">test_read_eml</span><span class="method-args">()</span>
313
          </a>
314
        </div>
315
316
        <div class="method-description">
317
          <p>
318
<a href="Metacat.html#M000075">Metacat.read</a>
319
</p>
320
        </div>
321
      </div>
322
323
      <div id="method-M000066" class="method-detail">
324
        <a name="M000066"></a>
325
326
        <div class="method-heading">
327
          <a href="MetacatTest.src/M000066.html" target="Code" class="method-signature"
328
            onclick="popupCode('MetacatTest.src/M000066.html');return false;">
329
          <span class="method-name">test_read_xml</span><span class="method-args">()</span>
330
          </a>
331
        </div>
332
333
        <div class="method-description">
334
        </div>
335
      </div>
336
337
      <div id="method-M000061" class="method-detail">
338
        <a name="M000061"></a>
339
340
        <div class="method-heading">
341
          <a href="MetacatTest.src/M000061.html" target="Code" class="method-signature"
342
            onclick="popupCode('MetacatTest.src/M000061.html');return false;">
343
          <span class="method-name">test_returns_array_of_eml_objects?</span><span class="method-args">()</span>
344
          </a>
345
        </div>
346
347
        <div class="method-description">
348
        </div>
349
      </div>
350
351
      <div id="method-M000059" class="method-detail">
352
        <a name="M000059"></a>
353
354
        <div class="method-heading">
355
          <a href="MetacatTest.src/M000059.html" target="Code" class="method-signature"
356
            onclick="popupCode('MetacatTest.src/M000059.html');return false;">
357
          <span class="method-name">test_returns_eml?</span><span class="method-args">()</span>
358
          </a>
359
        </div>
360
361
        <div class="method-description">
362
        </div>
363
      </div>
364
365
      <div id="method-M000068" class="method-detail">
366
        <a name="M000068"></a>
367
368
        <div class="method-heading">
369
          <a href="MetacatTest.src/M000068.html" target="Code" class="method-signature"
370
            onclick="popupCode('MetacatTest.src/M000068.html');return false;">
371
          <span class="method-name">test_returns_xml</span><span class="method-args">()</span>
372
          </a>
373
        </div>
374
375
        <div class="method-description">
376
          <p>
377
<a href="Metacat.html#M000076">Metacat.squery</a>
378
</p>
379
        </div>
380
      </div>
381
382
      <div id="method-M000069" class="method-detail">
383
        <a name="M000069"></a>
384
385
        <div class="method-heading">
386
          <a href="MetacatTest.src/M000069.html" target="Code" class="method-signature"
387
            onclick="popupCode('MetacatTest.src/M000069.html');return false;">
388
          <span class="method-name">test_string_formatting</span><span class="method-args">()</span>
389
          </a>
390
        </div>
391
392
        <div class="method-description">
393
          <p>
394
query_string
395
</p>
396
        </div>
397
      </div>
398
399
      <div id="method-M000060" class="method-detail">
400
        <a name="M000060"></a>
401
402
        <div class="method-heading">
403
          <a href="MetacatTest.src/M000060.html" target="Code" class="method-signature"
404
            onclick="popupCode('MetacatTest.src/M000060.html');return false;">
405
          <span class="method-name">test_will_not_return_data_table</span><span class="method-args">()</span>
406
          </a>
407
        </div>
408
409
        <div class="method-description">
410
        </div>
411
      </div>
412
413
414
    </div>
415
416
417
  </div>
418
419
420
<div id="validator-badges">
421
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
422
</div>
423
424
</body>
425
</html>