You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

468 lines
15 KiB

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!-- NewPage -->
  3. <html lang="en">
  4. <head>
  5. <!-- Generated by javadoc (1.8.0_131) on Mon Jun 05 21:49:33 MST 2017 -->
  6. <title>HandlerTest (LibrarySystem - BinHong Lee)</title>
  7. <meta name="date" content="2017-06-05">
  8. <link rel="stylesheet" type="text/css" href="../stylesheet.css" title="Style">
  9. <script type="text/javascript" src="../script.js"></script>
  10. </head>
  11. <body>
  12. <script type="text/javascript"><!--
  13. try {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="HandlerTest (LibrarySystem - BinHong Lee)";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":9,"i6":10,"i7":10};
  22. var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
  23. var altColor = "altColor";
  24. var rowColor = "rowColor";
  25. var tableTab = "tableTab";
  26. var activeTableTab = "activeTableTab";
  27. </script>
  28. <noscript>
  29. <div>JavaScript is disabled on your browser.</div>
  30. </noscript>
  31. <!-- ========= START OF TOP NAVBAR ======= -->
  32. <div class="topNav"><a name="navbar.top">
  33. <!-- -->
  34. </a>
  35. <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
  36. <a name="navbar.top.firstrow">
  37. <!-- -->
  38. </a>
  39. <ul class="navList" title="Navigation">
  40. <li><a href="../libsys/package-summary.html">Package</a></li>
  41. <li class="navBarCell1Rev">Class</li>
  42. <li><a href="package-tree.html">Tree</a></li>
  43. <li><a href="../index-files/index-1.html">Index</a></li>
  44. <li><a href="../help-doc.html">Help</a></li>
  45. </ul>
  46. </div>
  47. <div class="subNav">
  48. <ul class="navList">
  49. <li><a href="../libsys/Handler.html" title="class in libsys"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  50. <li><a href="../libsys/Main.html" title="class in libsys"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  51. </ul>
  52. <ul class="navList">
  53. <li><a href="../index.html?libsys/HandlerTest.html" target="_top">Frames</a></li>
  54. <li><a href="HandlerTest.html" target="_top">No&nbsp;Frames</a></li>
  55. </ul>
  56. <ul class="navList" id="allclasses_navbar_top">
  57. <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li>
  58. </ul>
  59. <div>
  60. <script type="text/javascript"><!--
  61. allClassesLink = document.getElementById("allclasses_navbar_top");
  62. if(window==top) {
  63. allClassesLink.style.display = "block";
  64. }
  65. else {
  66. allClassesLink.style.display = "none";
  67. }
  68. //-->
  69. </script>
  70. </div>
  71. <div>
  72. <ul class="subNavList">
  73. <li>Summary:&nbsp;</li>
  74. <li>Nested&nbsp;|&nbsp;</li>
  75. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  76. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  77. <li><a href="#method.summary">Method</a></li>
  78. </ul>
  79. <ul class="subNavList">
  80. <li>Detail:&nbsp;</li>
  81. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  82. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  83. <li><a href="#method.detail">Method</a></li>
  84. </ul>
  85. </div>
  86. <a name="skip.navbar.top">
  87. <!-- -->
  88. </a></div>
  89. <!-- ========= END OF TOP NAVBAR ========= -->
  90. <!-- ======== START OF CLASS DATA ======== -->
  91. <div class="header">
  92. <div class="subTitle">libsys</div>
  93. <h2 title="Class HandlerTest" class="title">Class HandlerTest</h2>
  94. </div>
  95. <div class="contentContainer">
  96. <ul class="inheritance">
  97. <li>java.lang.Object</li>
  98. <li>
  99. <ul class="inheritance">
  100. <li>junit.framework.Assert</li>
  101. <li>
  102. <ul class="inheritance">
  103. <li>junit.framework.TestCase</li>
  104. <li>
  105. <ul class="inheritance">
  106. <li>libsys.HandlerTest</li>
  107. </ul>
  108. </li>
  109. </ul>
  110. </li>
  111. </ul>
  112. </li>
  113. </ul>
  114. <div class="description">
  115. <ul class="blockList">
  116. <li class="blockList">
  117. <dl>
  118. <dt>All Implemented Interfaces:</dt>
  119. <dd>junit.framework.Test</dd>
  120. </dl>
  121. <hr>
  122. <br>
  123. <pre>public class <span class="typeNameLabel">HandlerTest</span>
  124. extends junit.framework.TestCase</pre>
  125. <div class="block">Test Handler related operations</div>
  126. </li>
  127. </ul>
  128. </div>
  129. <div class="summary">
  130. <ul class="blockList">
  131. <li class="blockList">
  132. <!-- =========== FIELD SUMMARY =========== -->
  133. <ul class="blockList">
  134. <li class="blockList"><a name="field.summary">
  135. <!-- -->
  136. </a>
  137. <h3>Field Summary</h3>
  138. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
  139. <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
  140. <tr>
  141. <th class="colFirst" scope="col">Modifier and Type</th>
  142. <th class="colLast" scope="col">Field and Description</th>
  143. </tr>
  144. <tr class="altColor">
  145. <td class="colFirst"><code>private <a href="../libsys/Handler.html" title="class in libsys">Handler</a></code></td>
  146. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/HandlerTest.html#handler">handler</a></span></code>&nbsp;</td>
  147. </tr>
  148. </table>
  149. </li>
  150. </ul>
  151. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  152. <ul class="blockList">
  153. <li class="blockList"><a name="constructor.summary">
  154. <!-- -->
  155. </a>
  156. <h3>Constructor Summary</h3>
  157. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  158. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  159. <tr>
  160. <th class="colOne" scope="col">Constructor and Description</th>
  161. </tr>
  162. <tr class="altColor">
  163. <td class="colOne"><code><span class="memberNameLink"><a href="../libsys/HandlerTest.html#HandlerTest-java.lang.String-">HandlerTest</a></span>(java.lang.String&nbsp;testName)</code>
  164. <div class="block">Test Handler related operations</div>
  165. </td>
  166. </tr>
  167. </table>
  168. </li>
  169. </ul>
  170. <!-- ========== METHOD SUMMARY =========== -->
  171. <ul class="blockList">
  172. <li class="blockList"><a name="method.summary">
  173. <!-- -->
  174. </a>
  175. <h3>Method Summary</h3>
  176. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  177. <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
  178. <tr>
  179. <th class="colFirst" scope="col">Modifier and Type</th>
  180. <th class="colLast" scope="col">Method and Description</th>
  181. </tr>
  182. <tr id="i0" class="altColor">
  183. <td class="colFirst"><code>private void</code></td>
  184. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/HandlerTest.html#bookIdsToTitlesStringTest--">bookIdsToTitlesStringTest</a></span>()</code>
  185. <div class="block">Test the bookIdsToTitlesString function</div>
  186. </td>
  187. </tr>
  188. <tr id="i1" class="rowColor">
  189. <td class="colFirst"><code>private void</code></td>
  190. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/HandlerTest.html#borrowBookTest--">borrowBookTest</a></span>()</code>
  191. <div class="block">Test the borrowBook function</div>
  192. </td>
  193. </tr>
  194. <tr id="i2" class="altColor">
  195. <td class="colFirst"><code>private void</code></td>
  196. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/HandlerTest.html#calDueDateTest--">calDueDateTest</a></span>()</code>
  197. <div class="block">Test the calDueDate function</div>
  198. </td>
  199. </tr>
  200. <tr id="i3" class="rowColor">
  201. <td class="colFirst"><code>private void</code></td>
  202. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/HandlerTest.html#returnBookTest--">returnBookTest</a></span>()</code>
  203. <div class="block">Test the returnBook function</div>
  204. </td>
  205. </tr>
  206. <tr id="i4" class="altColor">
  207. <td class="colFirst"><code>void</code></td>
  208. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/HandlerTest.html#setUp--">setUp</a></span>()</code>
  209. <div class="block">Set up before testing</div>
  210. </td>
  211. </tr>
  212. <tr id="i5" class="rowColor">
  213. <td class="colFirst"><code>static junit.framework.Test</code></td>
  214. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/HandlerTest.html#suite--">suite</a></span>()</code>&nbsp;</td>
  215. </tr>
  216. <tr id="i6" class="altColor">
  217. <td class="colFirst"><code>void</code></td>
  218. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/HandlerTest.html#tearDown--">tearDown</a></span>()</code>
  219. <div class="block">Delete files after testing</div>
  220. </td>
  221. </tr>
  222. <tr id="i7" class="rowColor">
  223. <td class="colFirst"><code>void</code></td>
  224. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/HandlerTest.html#testApp--">testApp</a></span>()</code>
  225. <div class="block">Run all tests</div>
  226. </td>
  227. </tr>
  228. </table>
  229. <ul class="blockList">
  230. <li class="blockList"><a name="methods.inherited.from.class.junit.framework.TestCase">
  231. <!-- -->
  232. </a>
  233. <h3>Methods inherited from class&nbsp;junit.framework.TestCase</h3>
  234. <code>countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString</code></li>
  235. </ul>
  236. <ul class="blockList">
  237. <li class="blockList"><a name="methods.inherited.from.class.junit.framework.Assert">
  238. <!-- -->
  239. </a>
  240. <h3>Methods inherited from class&nbsp;junit.framework.Assert</h3>
  241. <code>assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail</code></li>
  242. </ul>
  243. <ul class="blockList">
  244. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  245. <!-- -->
  246. </a>
  247. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  248. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
  249. </ul>
  250. </li>
  251. </ul>
  252. </li>
  253. </ul>
  254. </div>
  255. <div class="details">
  256. <ul class="blockList">
  257. <li class="blockList">
  258. <!-- ============ FIELD DETAIL =========== -->
  259. <ul class="blockList">
  260. <li class="blockList"><a name="field.detail">
  261. <!-- -->
  262. </a>
  263. <h3>Field Detail</h3>
  264. <a name="handler">
  265. <!-- -->
  266. </a>
  267. <ul class="blockListLast">
  268. <li class="blockList">
  269. <h4>handler</h4>
  270. <pre>private&nbsp;<a href="../libsys/Handler.html" title="class in libsys">Handler</a> handler</pre>
  271. </li>
  272. </ul>
  273. </li>
  274. </ul>
  275. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  276. <ul class="blockList">
  277. <li class="blockList"><a name="constructor.detail">
  278. <!-- -->
  279. </a>
  280. <h3>Constructor Detail</h3>
  281. <a name="HandlerTest-java.lang.String-">
  282. <!-- -->
  283. </a>
  284. <ul class="blockListLast">
  285. <li class="blockList">
  286. <h4>HandlerTest</h4>
  287. <pre>public&nbsp;HandlerTest(java.lang.String&nbsp;testName)</pre>
  288. <div class="block">Test Handler related operations</div>
  289. <dl>
  290. <dt><span class="paramLabel">Parameters:</span></dt>
  291. <dd><code>testName</code> - name of the test case</dd>
  292. </dl>
  293. </li>
  294. </ul>
  295. </li>
  296. </ul>
  297. <!-- ============ METHOD DETAIL ========== -->
  298. <ul class="blockList">
  299. <li class="blockList"><a name="method.detail">
  300. <!-- -->
  301. </a>
  302. <h3>Method Detail</h3>
  303. <a name="bookIdsToTitlesStringTest--">
  304. <!-- -->
  305. </a>
  306. <ul class="blockList">
  307. <li class="blockList">
  308. <h4>bookIdsToTitlesStringTest</h4>
  309. <pre>private&nbsp;void&nbsp;bookIdsToTitlesStringTest()</pre>
  310. <div class="block">Test the bookIdsToTitlesString function</div>
  311. </li>
  312. </ul>
  313. <a name="borrowBookTest--">
  314. <!-- -->
  315. </a>
  316. <ul class="blockList">
  317. <li class="blockList">
  318. <h4>borrowBookTest</h4>
  319. <pre>private&nbsp;void&nbsp;borrowBookTest()</pre>
  320. <div class="block">Test the borrowBook function</div>
  321. </li>
  322. </ul>
  323. <a name="calDueDateTest--">
  324. <!-- -->
  325. </a>
  326. <ul class="blockList">
  327. <li class="blockList">
  328. <h4>calDueDateTest</h4>
  329. <pre>private&nbsp;void&nbsp;calDueDateTest()</pre>
  330. <div class="block">Test the calDueDate function</div>
  331. </li>
  332. </ul>
  333. <a name="returnBookTest--">
  334. <!-- -->
  335. </a>
  336. <ul class="blockList">
  337. <li class="blockList">
  338. <h4>returnBookTest</h4>
  339. <pre>private&nbsp;void&nbsp;returnBookTest()</pre>
  340. <div class="block">Test the returnBook function</div>
  341. </li>
  342. </ul>
  343. <a name="setUp--">
  344. <!-- -->
  345. </a>
  346. <ul class="blockList">
  347. <li class="blockList">
  348. <h4>setUp</h4>
  349. <pre>public&nbsp;void&nbsp;setUp()
  350. throws java.lang.Exception</pre>
  351. <div class="block">Set up before testing</div>
  352. <dl>
  353. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  354. <dd><code>setUp</code>&nbsp;in class&nbsp;<code>junit.framework.TestCase</code></dd>
  355. <dt><span class="throwsLabel">Throws:</span></dt>
  356. <dd><code>java.lang.Exception</code> - Exception</dd>
  357. </dl>
  358. </li>
  359. </ul>
  360. <a name="suite--">
  361. <!-- -->
  362. </a>
  363. <ul class="blockList">
  364. <li class="blockList">
  365. <h4>suite</h4>
  366. <pre>public static&nbsp;junit.framework.Test&nbsp;suite()</pre>
  367. <dl>
  368. <dt><span class="returnLabel">Returns:</span></dt>
  369. <dd>suite of tests being tested</dd>
  370. </dl>
  371. </li>
  372. </ul>
  373. <a name="tearDown--">
  374. <!-- -->
  375. </a>
  376. <ul class="blockList">
  377. <li class="blockList">
  378. <h4>tearDown</h4>
  379. <pre>public&nbsp;void&nbsp;tearDown()
  380. throws java.lang.Exception</pre>
  381. <div class="block">Delete files after testing</div>
  382. <dl>
  383. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  384. <dd><code>tearDown</code>&nbsp;in class&nbsp;<code>junit.framework.TestCase</code></dd>
  385. <dt><span class="throwsLabel">Throws:</span></dt>
  386. <dd><code>java.lang.Exception</code> - Exception</dd>
  387. </dl>
  388. </li>
  389. </ul>
  390. <a name="testApp--">
  391. <!-- -->
  392. </a>
  393. <ul class="blockListLast">
  394. <li class="blockList">
  395. <h4>testApp</h4>
  396. <pre>public&nbsp;void&nbsp;testApp()</pre>
  397. <div class="block">Run all tests</div>
  398. </li>
  399. </ul>
  400. </li>
  401. </ul>
  402. </li>
  403. </ul>
  404. </div>
  405. </div>
  406. <!-- ========= END OF CLASS DATA ========= -->
  407. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  408. <div class="bottomNav"><a name="navbar.bottom">
  409. <!-- -->
  410. </a>
  411. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  412. <a name="navbar.bottom.firstrow">
  413. <!-- -->
  414. </a>
  415. <ul class="navList" title="Navigation">
  416. <li><a href="../libsys/package-summary.html">Package</a></li>
  417. <li class="navBarCell1Rev">Class</li>
  418. <li><a href="package-tree.html">Tree</a></li>
  419. <li><a href="../index-files/index-1.html">Index</a></li>
  420. <li><a href="../help-doc.html">Help</a></li>
  421. </ul>
  422. </div>
  423. <div class="subNav">
  424. <ul class="navList">
  425. <li><a href="../libsys/Handler.html" title="class in libsys"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  426. <li><a href="../libsys/Main.html" title="class in libsys"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  427. </ul>
  428. <ul class="navList">
  429. <li><a href="../index.html?libsys/HandlerTest.html" target="_top">Frames</a></li>
  430. <li><a href="HandlerTest.html" target="_top">No&nbsp;Frames</a></li>
  431. </ul>
  432. <ul class="navList" id="allclasses_navbar_bottom">
  433. <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li>
  434. </ul>
  435. <div>
  436. <script type="text/javascript"><!--
  437. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  438. if(window==top) {
  439. allClassesLink.style.display = "block";
  440. }
  441. else {
  442. allClassesLink.style.display = "none";
  443. }
  444. //-->
  445. </script>
  446. </div>
  447. <div>
  448. <ul class="subNavList">
  449. <li>Summary:&nbsp;</li>
  450. <li>Nested&nbsp;|&nbsp;</li>
  451. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  452. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  453. <li><a href="#method.summary">Method</a></li>
  454. </ul>
  455. <ul class="subNavList">
  456. <li>Detail:&nbsp;</li>
  457. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  458. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  459. <li><a href="#method.detail">Method</a></li>
  460. </ul>
  461. </div>
  462. <a name="skip.navbar.bottom">
  463. <!-- -->
  464. </a></div>
  465. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  466. </body>
  467. </html>