Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  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>BookFactoryTest (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="BookFactoryTest (LibrarySystem - BinHong Lee)";
  16. }
  17. }
  18. catch(err) {
  19. }
  20. //-->
  21. var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":9,"i5":10,"i6":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/BookFactory.html" title="class in libsys"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  50. <li><a href="../libsys/BookTest.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/BookFactoryTest.html" target="_top">Frames</a></li>
  54. <li><a href="BookFactoryTest.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 BookFactoryTest" class="title">Class BookFactoryTest</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.BookFactoryTest</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">BookFactoryTest</span>
  124. extends junit.framework.TestCase</pre>
  125. <div class="block">Test BookFactory 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/BookFactory.html" title="class in libsys">BookFactory</a></code></td>
  146. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/BookFactoryTest.html#bookFactory">bookFactory</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/BookFactoryTest.html#BookFactoryTest-java.lang.String-">BookFactoryTest</a></span>(java.lang.String&nbsp;testName)</code>
  164. <div class="block">Test BookFactory 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/BookFactoryTest.html#exceptionTest--">exceptionTest</a></span>()</code>
  185. <div class="block">Test exception cases and error handling of the class</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/BookFactoryTest.html#newBookTest--">newBookTest</a></span>()</code>
  191. <div class="block">Test the newBook 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/BookFactoryTest.html#outputAndInputTest--">outputAndInputTest</a></span>()</code>
  197. <div class="block">Test the class in writing to and reading from files</div>
  198. </td>
  199. </tr>
  200. <tr id="i3" class="rowColor">
  201. <td class="colFirst"><code>void</code></td>
  202. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/BookFactoryTest.html#setUp--">setUp</a></span>()</code>
  203. <div class="block">Set up before testing</div>
  204. </td>
  205. </tr>
  206. <tr id="i4" class="altColor">
  207. <td class="colFirst"><code>static junit.framework.Test</code></td>
  208. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/BookFactoryTest.html#suite--">suite</a></span>()</code>&nbsp;</td>
  209. </tr>
  210. <tr id="i5" class="rowColor">
  211. <td class="colFirst"><code>void</code></td>
  212. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/BookFactoryTest.html#tearDown--">tearDown</a></span>()</code>
  213. <div class="block">Delete files created during test</div>
  214. </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/BookFactoryTest.html#testApp--">testApp</a></span>()</code>
  219. <div class="block">Run all tests</div>
  220. </td>
  221. </tr>
  222. </table>
  223. <ul class="blockList">
  224. <li class="blockList"><a name="methods.inherited.from.class.junit.framework.TestCase">
  225. <!-- -->
  226. </a>
  227. <h3>Methods inherited from class&nbsp;junit.framework.TestCase</h3>
  228. <code>countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString</code></li>
  229. </ul>
  230. <ul class="blockList">
  231. <li class="blockList"><a name="methods.inherited.from.class.junit.framework.Assert">
  232. <!-- -->
  233. </a>
  234. <h3>Methods inherited from class&nbsp;junit.framework.Assert</h3>
  235. <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>
  236. </ul>
  237. <ul class="blockList">
  238. <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
  239. <!-- -->
  240. </a>
  241. <h3>Methods inherited from class&nbsp;java.lang.Object</h3>
  242. <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
  243. </ul>
  244. </li>
  245. </ul>
  246. </li>
  247. </ul>
  248. </div>
  249. <div class="details">
  250. <ul class="blockList">
  251. <li class="blockList">
  252. <!-- ============ FIELD DETAIL =========== -->
  253. <ul class="blockList">
  254. <li class="blockList"><a name="field.detail">
  255. <!-- -->
  256. </a>
  257. <h3>Field Detail</h3>
  258. <a name="bookFactory">
  259. <!-- -->
  260. </a>
  261. <ul class="blockListLast">
  262. <li class="blockList">
  263. <h4>bookFactory</h4>
  264. <pre>private&nbsp;<a href="../libsys/BookFactory.html" title="class in libsys">BookFactory</a> bookFactory</pre>
  265. </li>
  266. </ul>
  267. </li>
  268. </ul>
  269. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  270. <ul class="blockList">
  271. <li class="blockList"><a name="constructor.detail">
  272. <!-- -->
  273. </a>
  274. <h3>Constructor Detail</h3>
  275. <a name="BookFactoryTest-java.lang.String-">
  276. <!-- -->
  277. </a>
  278. <ul class="blockListLast">
  279. <li class="blockList">
  280. <h4>BookFactoryTest</h4>
  281. <pre>public&nbsp;BookFactoryTest(java.lang.String&nbsp;testName)</pre>
  282. <div class="block">Test BookFactory related operations</div>
  283. <dl>
  284. <dt><span class="paramLabel">Parameters:</span></dt>
  285. <dd><code>testName</code> - name of the test case</dd>
  286. </dl>
  287. </li>
  288. </ul>
  289. </li>
  290. </ul>
  291. <!-- ============ METHOD DETAIL ========== -->
  292. <ul class="blockList">
  293. <li class="blockList"><a name="method.detail">
  294. <!-- -->
  295. </a>
  296. <h3>Method Detail</h3>
  297. <a name="exceptionTest--">
  298. <!-- -->
  299. </a>
  300. <ul class="blockList">
  301. <li class="blockList">
  302. <h4>exceptionTest</h4>
  303. <pre>private&nbsp;void&nbsp;exceptionTest()</pre>
  304. <div class="block">Test exception cases and error handling of the class</div>
  305. </li>
  306. </ul>
  307. <a name="newBookTest--">
  308. <!-- -->
  309. </a>
  310. <ul class="blockList">
  311. <li class="blockList">
  312. <h4>newBookTest</h4>
  313. <pre>private&nbsp;void&nbsp;newBookTest()</pre>
  314. <div class="block">Test the newBook function</div>
  315. </li>
  316. </ul>
  317. <a name="outputAndInputTest--">
  318. <!-- -->
  319. </a>
  320. <ul class="blockList">
  321. <li class="blockList">
  322. <h4>outputAndInputTest</h4>
  323. <pre>private&nbsp;void&nbsp;outputAndInputTest()</pre>
  324. <div class="block">Test the class in writing to and reading from files</div>
  325. </li>
  326. </ul>
  327. <a name="setUp--">
  328. <!-- -->
  329. </a>
  330. <ul class="blockList">
  331. <li class="blockList">
  332. <h4>setUp</h4>
  333. <pre>public&nbsp;void&nbsp;setUp()
  334. throws java.lang.Exception</pre>
  335. <div class="block">Set up before testing</div>
  336. <dl>
  337. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  338. <dd><code>setUp</code>&nbsp;in class&nbsp;<code>junit.framework.TestCase</code></dd>
  339. <dt><span class="throwsLabel">Throws:</span></dt>
  340. <dd><code>java.lang.Exception</code> - Exception</dd>
  341. </dl>
  342. </li>
  343. </ul>
  344. <a name="suite--">
  345. <!-- -->
  346. </a>
  347. <ul class="blockList">
  348. <li class="blockList">
  349. <h4>suite</h4>
  350. <pre>public static&nbsp;junit.framework.Test&nbsp;suite()</pre>
  351. <dl>
  352. <dt><span class="returnLabel">Returns:</span></dt>
  353. <dd>suite of tests being tested</dd>
  354. </dl>
  355. </li>
  356. </ul>
  357. <a name="tearDown--">
  358. <!-- -->
  359. </a>
  360. <ul class="blockList">
  361. <li class="blockList">
  362. <h4>tearDown</h4>
  363. <pre>public&nbsp;void&nbsp;tearDown()
  364. throws java.lang.Exception</pre>
  365. <div class="block">Delete files created during test</div>
  366. <dl>
  367. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  368. <dd><code>tearDown</code>&nbsp;in class&nbsp;<code>junit.framework.TestCase</code></dd>
  369. <dt><span class="throwsLabel">Throws:</span></dt>
  370. <dd><code>java.lang.Exception</code> - Exception</dd>
  371. </dl>
  372. </li>
  373. </ul>
  374. <a name="testApp--">
  375. <!-- -->
  376. </a>
  377. <ul class="blockListLast">
  378. <li class="blockList">
  379. <h4>testApp</h4>
  380. <pre>public&nbsp;void&nbsp;testApp()</pre>
  381. <div class="block">Run all tests</div>
  382. </li>
  383. </ul>
  384. </li>
  385. </ul>
  386. </li>
  387. </ul>
  388. </div>
  389. </div>
  390. <!-- ========= END OF CLASS DATA ========= -->
  391. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  392. <div class="bottomNav"><a name="navbar.bottom">
  393. <!-- -->
  394. </a>
  395. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  396. <a name="navbar.bottom.firstrow">
  397. <!-- -->
  398. </a>
  399. <ul class="navList" title="Navigation">
  400. <li><a href="../libsys/package-summary.html">Package</a></li>
  401. <li class="navBarCell1Rev">Class</li>
  402. <li><a href="package-tree.html">Tree</a></li>
  403. <li><a href="../index-files/index-1.html">Index</a></li>
  404. <li><a href="../help-doc.html">Help</a></li>
  405. </ul>
  406. </div>
  407. <div class="subNav">
  408. <ul class="navList">
  409. <li><a href="../libsys/BookFactory.html" title="class in libsys"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  410. <li><a href="../libsys/BookTest.html" title="class in libsys"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  411. </ul>
  412. <ul class="navList">
  413. <li><a href="../index.html?libsys/BookFactoryTest.html" target="_top">Frames</a></li>
  414. <li><a href="BookFactoryTest.html" target="_top">No&nbsp;Frames</a></li>
  415. </ul>
  416. <ul class="navList" id="allclasses_navbar_bottom">
  417. <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li>
  418. </ul>
  419. <div>
  420. <script type="text/javascript"><!--
  421. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  422. if(window==top) {
  423. allClassesLink.style.display = "block";
  424. }
  425. else {
  426. allClassesLink.style.display = "none";
  427. }
  428. //-->
  429. </script>
  430. </div>
  431. <div>
  432. <ul class="subNavList">
  433. <li>Summary:&nbsp;</li>
  434. <li>Nested&nbsp;|&nbsp;</li>
  435. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  436. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  437. <li><a href="#method.summary">Method</a></li>
  438. </ul>
  439. <ul class="subNavList">
  440. <li>Detail:&nbsp;</li>
  441. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  442. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  443. <li><a href="#method.detail">Method</a></li>
  444. </ul>
  445. </div>
  446. <a name="skip.navbar.bottom">
  447. <!-- -->
  448. </a></div>
  449. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  450. </body>
  451. </html>