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.
 
 

445 rivejä
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:34 MST 2017 -->
  6. <title>SettingsTest (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="SettingsTest (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/SettingsDialog.html" title="class in libsys"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  50. <li><a href="../libsys/User.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/SettingsTest.html" target="_top">Frames</a></li>
  54. <li><a href="SettingsTest.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 SettingsTest" class="title">Class SettingsTest</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.SettingsTest</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">SettingsTest</span>
  124. extends junit.framework.TestCase</pre>
  125. <div class="block">Test Settings 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/Settings.html" title="class in libsys">Settings</a></code></td>
  146. <td class="colLast"><code><span class="memberNameLink"><a href="../libsys/SettingsTest.html#settings">settings</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/SettingsTest.html#SettingsTest-java.lang.String-">SettingsTest</a></span>(java.lang.String&nbsp;testName)</code>
  164. <div class="block">Test Settings 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/SettingsTest.html#constructorTest--">constructorTest</a></span>()</code>
  185. <div class="block">Test the constructor</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/SettingsTest.html#setBooksFilenameTest--">setBooksFilenameTest</a></span>()</code>
  191. <div class="block">Test the setBooksFilename 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/SettingsTest.html#setTitleTest--">setTitleTest</a></span>()</code>
  197. <div class="block">Test the setTitle 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/SettingsTest.html#setUsersFilenameTest--">setUsersFilenameTest</a></span>()</code>
  203. <div class="block">Test the setUsersFilename function</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/SettingsTest.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/SettingsTest.html#tearDown--">tearDown</a></span>()</code>
  213. <div class="block">Delete test files</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/SettingsTest.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, setUp, 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="settings">
  259. <!-- -->
  260. </a>
  261. <ul class="blockListLast">
  262. <li class="blockList">
  263. <h4>settings</h4>
  264. <pre>private&nbsp;<a href="../libsys/Settings.html" title="class in libsys">Settings</a> settings</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="SettingsTest-java.lang.String-">
  276. <!-- -->
  277. </a>
  278. <ul class="blockListLast">
  279. <li class="blockList">
  280. <h4>SettingsTest</h4>
  281. <pre>public&nbsp;SettingsTest(java.lang.String&nbsp;testName)</pre>
  282. <div class="block">Test Settings 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="constructorTest--">
  298. <!-- -->
  299. </a>
  300. <ul class="blockList">
  301. <li class="blockList">
  302. <h4>constructorTest</h4>
  303. <pre>private&nbsp;void&nbsp;constructorTest()</pre>
  304. <div class="block">Test the constructor</div>
  305. </li>
  306. </ul>
  307. <a name="setBooksFilenameTest--">
  308. <!-- -->
  309. </a>
  310. <ul class="blockList">
  311. <li class="blockList">
  312. <h4>setBooksFilenameTest</h4>
  313. <pre>private&nbsp;void&nbsp;setBooksFilenameTest()</pre>
  314. <div class="block">Test the setBooksFilename function</div>
  315. </li>
  316. </ul>
  317. <a name="setTitleTest--">
  318. <!-- -->
  319. </a>
  320. <ul class="blockList">
  321. <li class="blockList">
  322. <h4>setTitleTest</h4>
  323. <pre>private&nbsp;void&nbsp;setTitleTest()</pre>
  324. <div class="block">Test the setTitle function</div>
  325. </li>
  326. </ul>
  327. <a name="setUsersFilenameTest--">
  328. <!-- -->
  329. </a>
  330. <ul class="blockList">
  331. <li class="blockList">
  332. <h4>setUsersFilenameTest</h4>
  333. <pre>private&nbsp;void&nbsp;setUsersFilenameTest()</pre>
  334. <div class="block">Test the setUsersFilename function</div>
  335. </li>
  336. </ul>
  337. <a name="suite--">
  338. <!-- -->
  339. </a>
  340. <ul class="blockList">
  341. <li class="blockList">
  342. <h4>suite</h4>
  343. <pre>public static&nbsp;junit.framework.Test&nbsp;suite()</pre>
  344. <dl>
  345. <dt><span class="returnLabel">Returns:</span></dt>
  346. <dd>suite of tests being tested</dd>
  347. </dl>
  348. </li>
  349. </ul>
  350. <a name="tearDown--">
  351. <!-- -->
  352. </a>
  353. <ul class="blockList">
  354. <li class="blockList">
  355. <h4>tearDown</h4>
  356. <pre>public&nbsp;void&nbsp;tearDown()
  357. throws java.lang.Exception</pre>
  358. <div class="block">Delete test files</div>
  359. <dl>
  360. <dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
  361. <dd><code>tearDown</code>&nbsp;in class&nbsp;<code>junit.framework.TestCase</code></dd>
  362. <dt><span class="throwsLabel">Throws:</span></dt>
  363. <dd><code>java.lang.Exception</code> - Exception</dd>
  364. </dl>
  365. </li>
  366. </ul>
  367. <a name="testApp--">
  368. <!-- -->
  369. </a>
  370. <ul class="blockListLast">
  371. <li class="blockList">
  372. <h4>testApp</h4>
  373. <pre>public&nbsp;void&nbsp;testApp()</pre>
  374. <div class="block">Run all tests</div>
  375. </li>
  376. </ul>
  377. </li>
  378. </ul>
  379. </li>
  380. </ul>
  381. </div>
  382. </div>
  383. <!-- ========= END OF CLASS DATA ========= -->
  384. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  385. <div class="bottomNav"><a name="navbar.bottom">
  386. <!-- -->
  387. </a>
  388. <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
  389. <a name="navbar.bottom.firstrow">
  390. <!-- -->
  391. </a>
  392. <ul class="navList" title="Navigation">
  393. <li><a href="../libsys/package-summary.html">Package</a></li>
  394. <li class="navBarCell1Rev">Class</li>
  395. <li><a href="package-tree.html">Tree</a></li>
  396. <li><a href="../index-files/index-1.html">Index</a></li>
  397. <li><a href="../help-doc.html">Help</a></li>
  398. </ul>
  399. </div>
  400. <div class="subNav">
  401. <ul class="navList">
  402. <li><a href="../libsys/SettingsDialog.html" title="class in libsys"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
  403. <li><a href="../libsys/User.html" title="class in libsys"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
  404. </ul>
  405. <ul class="navList">
  406. <li><a href="../index.html?libsys/SettingsTest.html" target="_top">Frames</a></li>
  407. <li><a href="SettingsTest.html" target="_top">No&nbsp;Frames</a></li>
  408. </ul>
  409. <ul class="navList" id="allclasses_navbar_bottom">
  410. <li><a href="../allclasses-noframe.html">All&nbsp;Classes</a></li>
  411. </ul>
  412. <div>
  413. <script type="text/javascript"><!--
  414. allClassesLink = document.getElementById("allclasses_navbar_bottom");
  415. if(window==top) {
  416. allClassesLink.style.display = "block";
  417. }
  418. else {
  419. allClassesLink.style.display = "none";
  420. }
  421. //-->
  422. </script>
  423. </div>
  424. <div>
  425. <ul class="subNavList">
  426. <li>Summary:&nbsp;</li>
  427. <li>Nested&nbsp;|&nbsp;</li>
  428. <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
  429. <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
  430. <li><a href="#method.summary">Method</a></li>
  431. </ul>
  432. <ul class="subNavList">
  433. <li>Detail:&nbsp;</li>
  434. <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
  435. <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
  436. <li><a href="#method.detail">Method</a></li>
  437. </ul>
  438. </div>
  439. <a name="skip.navbar.bottom">
  440. <!-- -->
  441. </a></div>
  442. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  443. </body>
  444. </html>