No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473
  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:32 MST 2017 -->
  6. <title>BookTest (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="BookTest (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/BookFactoryTest.html" title="class in libsys"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  50. <li><a href="../libsys/EditBookDialog.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/BookTest.html" target="_top">Frames</a></li>
  54. <li><a href="BookTest.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 BookTest" class="title">Class BookTest</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.BookTest</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">BookTest</span>
  124. extends junit.framework.TestCase</pre>
  125. <div class="block">Test Book 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/Book.html" title="class in libsys">Book</a></code></td>
  146. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/BookTest.html#book1">book1</a></span></code>&nbsp;</td>
  147. </tr>
  148. <tr class="rowColor">
  149. <td class="colFirst"><code>private <a href="../libsys/Book.html" title="class in libsys">Book</a></code></td>
  150. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/BookTest.html#book2">book2</a></span></code>&nbsp;</td>
  151. </tr>
  152. </table>
  153. </li>
  154. </ul>
  155. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  156. <ul class="blockList">
  157. <li class="blockList"><a name="constructor.summary">
  158. <!-- -->
  159. </a>
  160. <h3>Constructor Summary</h3>
  161. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
  162. <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
  163. <tr>
  164. <th class="colOne" scope="col">Constructor and Description</th>
  165. </tr>
  166. <tr class="altColor">
  167. <td class="colOne"><code><span class="memberNameLink"><a href="../libsys/BookTest.html#BookTest-java.lang.String-">BookTest</a></span>(java.lang.String&nbsp;testName)</code>
  168. <div class="block">Test Book related operations</div>
  169. </td>
  170. </tr>
  171. </table>
  172. </li>
  173. </ul>
  174. <!-- ========== METHOD SUMMARY =========== -->
  175. <ul class="blockList">
  176. <li class="blockList"><a name="method.summary">
  177. <!-- -->
  178. </a>
  179. <h3>Method Summary</h3>
  180. <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
  181. <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>
  182. <tr>
  183. <th class="colFirst" scope="col">Modifier and Type</th>
  184. <th class="colLast" scope="col">Method and Description</th>
  185. </tr>
  186. <tr id="i0" class="altColor">
  187. <td class="colFirst"><code>private void</code></td>
  188. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/BookTest.html#constructorTest--">constructorTest</a></span>()</code>
  189. <div class="block">Test the functionality for all different types of constructor</div>
  190. </td>
  191. </tr>
  192. <tr id="i1" class="rowColor">
  193. <td class="colFirst"><code>private void</code></td>
  194. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/BookTest.html#rentTest--">rentTest</a></span>()</code>
  195. <div class="block">Test the rent(int[]) function functionality</div>
  196. </td>
  197. </tr>
  198. <tr id="i2" class="altColor">
  199. <td class="colFirst"><code>private void</code></td>
  200. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/BookTest.html#returnTest--">returnTest</a></span>()</code>
  201. <div class="block">Test the returned() function functionality</div>
  202. </td>
  203. </tr>
  204. <tr id="i3" class="rowColor">
  205. <td class="colFirst"><code>private void</code></td>
  206. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/BookTest.html#setTitlesTest--">setTitlesTest</a></span>()</code>
  207. <div class="block">Test the setTitles(String) functionality</div>
  208. </td>
  209. </tr>
  210. <tr id="i4" class="altColor">
  211. <td class="colFirst"><code>void</code></td>
  212. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/BookTest.html#setUp--">setUp</a></span>()</code>
  213. <div class="block">Set up before testing</div>
  214. </td>
  215. </tr>
  216. <tr id="i5" class="rowColor">
  217. <td class="colFirst"><code>static junit.framework.Test</code></td>
  218. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/BookTest.html#suite--">suite</a></span>()</code>&nbsp;</td>
  219. </tr>
  220. <tr id="i6" class="altColor">
  221. <td class="colFirst"><code>void</code></td>
  222. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/BookTest.html#testApp--">testApp</a></span>()</code>
  223. <div class="block">Run all tests</div>
  224. </td>
  225. </tr>
  226. <tr id="i7" class="rowColor">
  227. <td class="colFirst"><code>private void</code></td>
  228. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/BookTest.html#valueTest--">valueTest</a></span>()</code>
  229. <div class="block">Test if the values are accurate</div>
  230. </td>
  231. </tr>
  232. </table>
  233. <ul class="blockList">
  234. <li class="blockList"><a name="methods.inherited.from.class.junit.framework.TestCase">
  235. <!-- -->
  236. </a>
  237. <h3>Methods inherited from class&nbsp;junit.framework.TestCase</h3>
  238. <code>countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString</code></li>
  239. </ul>
  240. <ul class="blockList">
  241. <li class="blockList"><a name="methods.inherited.from.class.junit.framework.Assert">
  242. <!-- -->
  243. </a>
  244. <h3>Methods inherited from class&nbsp;junit.framework.Assert</h3>
  245. <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>
  246. </ul>
  247. <ul class="blockList">
  248. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  249. <!-- -->
  250. </a>
  251. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  252. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
  253. </ul>
  254. </li>
  255. </ul>
  256. </li>
  257. </ul>
  258. </div>
  259. <div class="details">
  260. <ul class="blockList">
  261. <li class="blockList">
  262. <!-- ============ FIELD DETAIL =========== -->
  263. <ul class="blockList">
  264. <li class="blockList"><a name="field.detail">
  265. <!-- -->
  266. </a>
  267. <h3>Field Detail</h3>
  268. <a name="book1">
  269. <!-- -->
  270. </a>
  271. <ul class="blockList">
  272. <li class="blockList">
  273. <h4>book1</h4>
  274. <pre>private&nbsp;<a href="../libsys/Book.html" title="class in libsys">Book</a> book1</pre>
  275. </li>
  276. </ul>
  277. <a name="book2">
  278. <!-- -->
  279. </a>
  280. <ul class="blockListLast">
  281. <li class="blockList">
  282. <h4>book2</h4>
  283. <pre>private&nbsp;<a href="../libsys/Book.html" title="class in libsys">Book</a> book2</pre>
  284. </li>
  285. </ul>
  286. </li>
  287. </ul>
  288. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  289. <ul class="blockList">
  290. <li class="blockList"><a name="constructor.detail">
  291. <!-- -->
  292. </a>
  293. <h3>Constructor Detail</h3>
  294. <a name="BookTest-java.lang.String-">
  295. <!-- -->
  296. </a>
  297. <ul class="blockListLast">
  298. <li class="blockList">
  299. <h4>BookTest</h4>
  300. <pre>public&nbsp;BookTest(java.lang.String&nbsp;testName)</pre>
  301. <div class="block">Test Book related operations</div>
  302. <dl>
  303. <dt><span class="paramLabel">Parameters:</span></dt>
  304. <dd><code>testName</code> - name of the test case</dd>
  305. </dl>
  306. </li>
  307. </ul>
  308. </li>
  309. </ul>
  310. <!-- ============ METHOD DETAIL ========== -->
  311. <ul class="blockList">
  312. <li class="blockList"><a name="method.detail">
  313. <!-- -->
  314. </a>
  315. <h3>Method Detail</h3>
  316. <a name="constructorTest--">
  317. <!-- -->
  318. </a>
  319. <ul class="blockList">
  320. <li class="blockList">
  321. <h4>constructorTest</h4>
  322. <pre>private&nbsp;void&nbsp;constructorTest()</pre>
  323. <div class="block">Test the functionality for all different types of constructor</div>
  324. </li>
  325. </ul>
  326. <a name="rentTest--">
  327. <!-- -->
  328. </a>
  329. <ul class="blockList">
  330. <li class="blockList">
  331. <h4>rentTest</h4>
  332. <pre>private&nbsp;void&nbsp;rentTest()</pre>
  333. <div class="block">Test the rent(int[]) function functionality</div>
  334. </li>
  335. </ul>
  336. <a name="returnTest--">
  337. <!-- -->
  338. </a>
  339. <ul class="blockList">
  340. <li class="blockList">
  341. <h4>returnTest</h4>
  342. <pre>private&nbsp;void&nbsp;returnTest()</pre>
  343. <div class="block">Test the returned() function functionality</div>
  344. </li>
  345. </ul>
  346. <a name="setTitlesTest--">
  347. <!-- -->
  348. </a>
  349. <ul class="blockList">
  350. <li class="blockList">
  351. <h4>setTitlesTest</h4>
  352. <pre>private&nbsp;void&nbsp;setTitlesTest()</pre>
  353. <div class="block">Test the setTitles(String) functionality</div>
  354. </li>
  355. </ul>
  356. <a name="setUp--">
  357. <!-- -->
  358. </a>
  359. <ul class="blockList">
  360. <li class="blockList">
  361. <h4>setUp</h4>
  362. <pre>public&nbsp;void&nbsp;setUp()
  363. throws java.lang.Exception</pre>
  364. <div class="block">Set up before testing</div>
  365. <dl>
  366. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  367. <dd><code>setUp</code>&nbsp;in class&nbsp;<code>junit.framework.TestCase</code></dd>
  368. <dt><span class="throwsLabel">Throws:</span></dt>
  369. <dd><code>java.lang.Exception</code> - Exception</dd>
  370. </dl>
  371. </li>
  372. </ul>
  373. <a name="suite--">
  374. <!-- -->
  375. </a>
  376. <ul class="blockList">
  377. <li class="blockList">
  378. <h4>suite</h4>
  379. <pre>public static&nbsp;junit.framework.Test&nbsp;suite()</pre>
  380. <dl>
  381. <dt><span class="returnLabel">Returns:</span></dt>
  382. <dd>suite of tests being tested</dd>
  383. </dl>
  384. </li>
  385. </ul>
  386. <a name="testApp--">
  387. <!-- -->
  388. </a>
  389. <ul class="blockList">
  390. <li class="blockList">
  391. <h4>testApp</h4>
  392. <pre>public&nbsp;void&nbsp;testApp()</pre>
  393. <div class="block">Run all tests</div>
  394. </li>
  395. </ul>
  396. <a name="valueTest--">
  397. <!-- -->
  398. </a>
  399. <ul class="blockListLast">
  400. <li class="blockList">
  401. <h4>valueTest</h4>
  402. <pre>private&nbsp;void&nbsp;valueTest()</pre>
  403. <div class="block">Test if the values are accurate</div>
  404. </li>
  405. </ul>
  406. </li>
  407. </ul>
  408. </li>
  409. </ul>
  410. </div>
  411. </div>
  412. <!-- ========= END OF CLASS DATA ========= -->
  413. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  414. <div class="bottomNav"><a name="navbar.bottom">
  415. <!-- -->
  416. </a>
  417. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  418. <a name="navbar.bottom.firstrow">
  419. <!-- -->
  420. </a>
  421. <ul class="navList" title="Navigation">
  422. <li><a href="../libsys/package-summary.html">Package</a></li>
  423. <li class="navBarCell1Rev">Class</li>
  424. <li><a href="package-tree.html">Tree</a></li>
  425. <li><a href="../index-files/index-1.html">Index</a></li>
  426. <li><a href="../help-doc.html">Help</a></li>
  427. </ul>
  428. </div>
  429. <div class="subNav">
  430. <ul class="navList">
  431. <li><a href="../libsys/BookFactoryTest.html" title="class in libsys"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  432. <li><a href="../libsys/EditBookDialog.html" title="class in libsys"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  433. </ul>
  434. <ul class="navList">
  435. <li><a href="../index.html?libsys/BookTest.html" target="_top">Frames</a></li>
  436. <li><a href="BookTest.html" target="_top">No&nbsp;Frames</a></li>
  437. </ul>
  438. <ul class="navList" id="allclasses_navbar_bottom">
  439. <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li>
  440. </ul>
  441. <div>
  442. <script type="text/javascript"><!--
  443. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  444. if(window==top) {
  445. allClassesLink.style.display = "block";
  446. }
  447. else {
  448. allClassesLink.style.display = "none";
  449. }
  450. //-->
  451. </script>
  452. </div>
  453. <div>
  454. <ul class="subNavList">
  455. <li>Summary:&nbsp;</li>
  456. <li>Nested&nbsp;|&nbsp;</li>
  457. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  458. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  459. <li><a href="#method.summary">Method</a></li>
  460. </ul>
  461. <ul class="subNavList">
  462. <li>Detail:&nbsp;</li>
  463. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  464. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  465. <li><a href="#method.detail">Method</a></li>
  466. </ul>
  467. </div>
  468. <a name="skip.navbar.bottom">
  469. <!-- -->
  470. </a></div>
  471. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  472. </body>
  473. </html>