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.
 
 

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