瀏覽代碼

StudentsStart

Seth 6 年之前
父節點
當前提交
fbdb3d94fa

+ 80
- 97
.idea/workspace.xml 查看文件

@@ -2,13 +2,8 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="043aad9b-f488-406e-94f4-e8cd787f123c" name="Default Changelist" comment="">
5
-      <change beforePath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java" afterDir="false" />
6
-      <change beforePath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java" afterDir="false" />
7
-      <change beforePath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java" afterDir="false" />
8 5
       <change beforePath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java" afterDir="false" />
9
-      <change beforePath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/InstructorTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/InstructorTest.java" afterDir="false" />
10 6
       <change beforePath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentsTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentsTest.java" afterDir="false" />
11
-      <change beforePath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPerson.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPerson.java" afterDir="false" />
12 7
     </list>
13 8
     <ignored path="$PROJECT_DIR$/target/" />
14 9
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -27,22 +22,22 @@
27 22
       </usages-collector>
28 23
       <usages-collector id="statistics.file.extensions.open">
29 24
         <counts>
30
-          <entry key="java" value="23" />
25
+          <entry key="java" value="24" />
31 26
         </counts>
32 27
       </usages-collector>
33 28
       <usages-collector id="statistics.file.types.open">
34 29
         <counts>
35
-          <entry key="JAVA" value="23" />
30
+          <entry key="JAVA" value="24" />
36 31
         </counts>
37 32
       </usages-collector>
38 33
       <usages-collector id="statistics.file.extensions.edit">
39 34
         <counts>
40
-          <entry key="java" value="4512" />
35
+          <entry key="java" value="4542" />
41 36
         </counts>
42 37
       </usages-collector>
43 38
       <usages-collector id="statistics.file.types.edit">
44 39
         <counts>
45
-          <entry key="JAVA" value="4512" />
40
+          <entry key="JAVA" value="4542" />
46 41
         </counts>
47 42
       </usages-collector>
48 43
     </session>
@@ -52,8 +47,8 @@
52 47
       <file pinned="false" current-in-tab="false">
53 48
         <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentsTest.java">
54 49
           <provider selected="true" editor-type-id="text-editor">
55
-            <state relative-caret-position="255">
56
-              <caret line="17" column="28" lean-forward="true" selection-start-line="17" selection-start-column="28" selection-end-line="17" selection-end-column="28" />
50
+            <state relative-caret-position="330">
51
+              <caret line="22" column="46" lean-forward="true" selection-start-line="22" selection-start-column="46" selection-end-line="22" selection-end-column="46" />
57 52
               <folding>
58 53
                 <element signature="imports" expanded="true" />
59 54
               </folding>
@@ -61,11 +56,11 @@
61 56
           </provider>
62 57
         </entry>
63 58
       </file>
64
-      <file pinned="false" current-in-tab="false">
59
+      <file pinned="false" current-in-tab="true">
65 60
         <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java">
66 61
           <provider selected="true" editor-type-id="text-editor">
67
-            <state relative-caret-position="180">
68
-              <caret line="12" column="23" selection-start-line="12" selection-start-column="23" selection-end-line="12" selection-end-column="23" />
62
+            <state relative-caret-position="327">
63
+              <caret line="52" column="1" lean-forward="true" selection-start-line="52" selection-start-column="1" selection-end-line="52" selection-end-column="1" />
69 64
               <folding>
70 65
                 <element signature="e#194#195#0" expanded="true" />
71 66
                 <element signature="e#225#226#0" expanded="true" />
@@ -75,6 +70,20 @@
75 70
         </entry>
76 71
       </file>
77 72
       <file pinned="false" current-in-tab="false">
73
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java">
74
+          <provider selected="true" editor-type-id="text-editor">
75
+            <state relative-caret-position="704">
76
+              <caret line="50" column="27" selection-start-line="50" selection-start-column="27" selection-end-line="50" selection-end-column="27" />
77
+              <folding>
78
+                <element signature="imports" expanded="true" />
79
+                <element signature="e#984#985#0" expanded="true" />
80
+                <element signature="e#1018#1019#0" expanded="true" />
81
+              </folding>
82
+            </state>
83
+          </provider>
84
+        </entry>
85
+      </file>
86
+      <file pinned="false" current-in-tab="false">
78 87
         <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/InstructorTest.java">
79 88
           <provider selected="true" editor-type-id="text-editor">
80 89
             <state relative-caret-position="177">
@@ -112,32 +121,6 @@
112 121
         </entry>
113 122
       </file>
114 123
       <file pinned="false" current-in-tab="false">
115
-        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java">
116
-          <provider selected="true" editor-type-id="text-editor">
117
-            <state relative-caret-position="297">
118
-              <caret line="52" column="9" selection-start-line="52" selection-start-column="9" selection-end-line="52" selection-end-column="9" />
119
-              <folding>
120
-                <element signature="imports" expanded="true" />
121
-                <element signature="e#185#186#0" expanded="true" />
122
-                <element signature="e#215#216#0" expanded="true" />
123
-              </folding>
124
-            </state>
125
-          </provider>
126
-        </entry>
127
-      </file>
128
-      <file pinned="false" current-in-tab="true">
129
-        <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java">
130
-          <provider selected="true" editor-type-id="text-editor">
131
-            <state relative-caret-position="297">
132
-              <caret line="105" lean-forward="true" selection-start-line="105" selection-end-line="105" />
133
-              <folding>
134
-                <element signature="imports" expanded="true" />
135
-              </folding>
136
-            </state>
137
-          </provider>
138
-        </entry>
139
-      </file>
140
-      <file pinned="false" current-in-tab="false">
141 124
         <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java">
142 125
           <provider selected="true" editor-type-id="text-editor">
143 126
             <state>
@@ -165,8 +148,6 @@
165 148
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Learner.java" />
166 149
         <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentTest.java" />
167 150
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java" />
168
-        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java" />
169
-        <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentsTest.java" />
170 151
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java" />
171 152
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java" />
172 153
         <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPerson.java" />
@@ -174,6 +155,8 @@
174 155
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java" />
175 156
         <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java" />
176 157
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java" />
158
+        <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentsTest.java" />
159
+        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java" />
177 160
       </list>
178 161
     </option>
179 162
   </component>
@@ -260,7 +243,7 @@
260 243
   <component name="PropertiesComponent">
261 244
     <property name="WebServerToolWindowFactoryState" value="false" />
262 245
     <property name="aspect.path.notification.shown" value="true" />
263
-    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1541283306302" />
246
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1541283811702" />
264 247
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
265 248
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
266 249
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
@@ -281,7 +264,7 @@
281 264
       </list>
282 265
     </option>
283 266
   </component>
284
-  <component name="RunManager" selected="JUnit.PeopleTest.testRemoveAll">
267
+  <component name="RunManager" selected="JUnit.StudentsTest.testSingletonInstance">
285 268
     <configuration name="PeopleTest.testFindById" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
286 269
       <module name="interfaces-1" />
287 270
       <extension name="coverage">
@@ -330,7 +313,7 @@
330 313
         <option name="Make" enabled="true" />
331 314
       </method>
332 315
     </configuration>
333
-    <configuration name="PeopleTest.testRemoveById" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
316
+    <configuration name="StudentsTest.testInitializationSetupStudents" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
334 317
       <module name="interfaces-1" />
335 318
       <extension name="coverage">
336 319
         <pattern>
@@ -339,14 +322,14 @@
339 322
         </pattern>
340 323
       </extension>
341 324
       <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
342
-      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.PeopleTest" />
343
-      <option name="METHOD_NAME" value="testRemoveById" />
325
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.StudentsTest" />
326
+      <option name="METHOD_NAME" value="testInitializationSetupStudents" />
344 327
       <option name="TEST_OBJECT" value="method" />
345 328
       <method v="2">
346 329
         <option name="Make" enabled="true" />
347 330
       </method>
348 331
     </configuration>
349
-    <configuration name="PeopleTest.testRemoveByPerson" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
332
+    <configuration name="StudentsTest.testSingletonInstance" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
350 333
       <module name="interfaces-1" />
351 334
       <extension name="coverage">
352 335
         <pattern>
@@ -355,27 +338,27 @@
355 338
         </pattern>
356 339
       </extension>
357 340
       <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
358
-      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.PeopleTest" />
359
-      <option name="METHOD_NAME" value="testRemoveByPerson" />
341
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.StudentsTest" />
342
+      <option name="METHOD_NAME" value="testSingletonInstance" />
360 343
       <option name="TEST_OBJECT" value="method" />
361 344
       <method v="2">
362 345
         <option name="Make" enabled="true" />
363 346
       </method>
364 347
     </configuration>
365 348
     <list>
366
-      <item itemvalue="JUnit.PeopleTest.testRemoveByPerson" />
367
-      <item itemvalue="JUnit.PeopleTest.testRemoveById" />
368 349
       <item itemvalue="JUnit.PeopleTest.testFindById" />
369 350
       <item itemvalue="JUnit.PeopleTest.testGetArray" />
370 351
       <item itemvalue="JUnit.PeopleTest.testRemoveAll" />
352
+      <item itemvalue="JUnit.StudentsTest.testInitializationSetupStudents" />
353
+      <item itemvalue="JUnit.StudentsTest.testSingletonInstance" />
371 354
     </list>
372 355
     <recent_temporary>
373 356
       <list>
357
+        <item itemvalue="JUnit.StudentsTest.testSingletonInstance" />
358
+        <item itemvalue="JUnit.StudentsTest.testInitializationSetupStudents" />
374 359
         <item itemvalue="JUnit.PeopleTest.testRemoveAll" />
375 360
         <item itemvalue="JUnit.PeopleTest.testGetArray" />
376 361
         <item itemvalue="JUnit.PeopleTest.testFindById" />
377
-        <item itemvalue="JUnit.PeopleTest.testRemoveById" />
378
-        <item itemvalue="JUnit.PeopleTest.testRemoveByPerson" />
379 362
       </list>
380 363
     </recent_temporary>
381 364
   </component>
@@ -389,20 +372,11 @@
389 372
       <option name="number" value="Default" />
390 373
       <option name="presentableId" value="Default" />
391 374
       <updated>1541272245713</updated>
392
-      <workItem from="1541272247066" duration="10834000" />
375
+      <workItem from="1541272247066" duration="11446000" />
393 376
     </task>
394 377
     <servers />
395 378
   </component>
396 379
   <component name="TestHistory">
397
-    <history-entry file="PeopleTest_testRemoveById - 2018.11.03 at 17h 52m 02s.xml">
398
-      <configuration name="PeopleTest.testRemoveById" configurationId="JUnit" />
399
-    </history-entry>
400
-    <history-entry file="PeopleTest_testRemoveById - 2018.11.03 at 17h 52m 43s.xml">
401
-      <configuration name="PeopleTest.testRemoveById" configurationId="JUnit" />
402
-    </history-entry>
403
-    <history-entry file="PeopleTest_testRemoveById - 2018.11.03 at 17h 56m 00s.xml">
404
-      <configuration name="PeopleTest.testRemoveById" configurationId="JUnit" />
405
-    </history-entry>
406 380
     <history-entry file="PeopleTest_testRemoveById - 2018.11.03 at 17h 57m 32s.xml">
407 381
       <configuration name="PeopleTest.testRemoveById" configurationId="JUnit" />
408 382
     </history-entry>
@@ -424,9 +398,18 @@
424 398
     <history-entry file="PeopleTest_testGetArray - 2018.11.03 at 18h 09m 04s.xml">
425 399
       <configuration name="PeopleTest.testGetArray" configurationId="JUnit" />
426 400
     </history-entry>
401
+    <history-entry file="PeopleTest_testRemoveAll - 2018.11.03 at 18h 13m 19s.xml">
402
+      <configuration name="PeopleTest.testRemoveAll" configurationId="JUnit" />
403
+    </history-entry>
404
+    <history-entry file="PeopleTest_testRemoveAll - 2018.11.03 at 18h 15m 01s.xml">
405
+      <configuration name="PeopleTest.testRemoveAll" configurationId="JUnit" />
406
+    </history-entry>
407
+    <history-entry file="StudentsTest_testInitializationSetupStudents - 2018.11.03 at 18h 19m 30s.xml">
408
+      <configuration name="StudentsTest.testInitializationSetupStudents" configurationId="JUnit" />
409
+    </history-entry>
427 410
   </component>
428 411
   <component name="TimeTrackingManager">
429
-    <option name="totallyTimeSpent" value="10834000" />
412
+    <option name="totallyTimeSpent" value="11446000" />
430 413
   </component>
431 414
   <component name="ToolWindowManager">
432 415
     <frame x="76" y="-973" width="1130" height="806" extended-state="0" />
@@ -437,16 +420,16 @@
437 420
       <window_info id="UI Designer" />
438 421
       <window_info id="Capture Tool" />
439 422
       <window_info id="Favorites" side_tool="true" />
440
-      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
423
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.25" />
441 424
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
442
-      <window_info anchor="bottom" id="Messages" weight="0.32913166" />
425
+      <window_info anchor="bottom" id="Messages" visible="true" weight="0.32913166" />
443 426
       <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
444 427
       <window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
445 428
       <window_info anchor="bottom" id="Terminal" />
446 429
       <window_info anchor="bottom" id="Event Log" side_tool="true" />
447 430
       <window_info anchor="bottom" id="Message" order="0" />
448 431
       <window_info anchor="bottom" id="Find" order="1" />
449
-      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32913166" />
432
+      <window_info anchor="bottom" id="Run" order="2" weight="0.32913166" />
450 433
       <window_info anchor="bottom" id="Debug" order="3" weight="0.39915967" />
451 434
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
452 435
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
@@ -507,16 +490,6 @@
507 490
         </state>
508 491
       </provider>
509 492
     </entry>
510
-    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentsTest.java">
511
-      <provider selected="true" editor-type-id="text-editor">
512
-        <state relative-caret-position="255">
513
-          <caret line="17" column="28" lean-forward="true" selection-start-line="17" selection-start-column="28" selection-end-line="17" selection-end-column="28" />
514
-          <folding>
515
-            <element signature="imports" expanded="true" />
516
-          </folding>
517
-        </state>
518
-      </provider>
519
-    </entry>
520 493
     <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java">
521 494
       <provider selected="true" editor-type-id="text-editor">
522 495
         <state>
@@ -524,17 +497,6 @@
524 497
         </state>
525 498
       </provider>
526 499
     </entry>
527
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java">
528
-      <provider selected="true" editor-type-id="text-editor">
529
-        <state relative-caret-position="180">
530
-          <caret line="12" column="23" selection-start-line="12" selection-start-column="23" selection-end-line="12" selection-end-column="23" />
531
-          <folding>
532
-            <element signature="e#194#195#0" expanded="true" />
533
-            <element signature="e#225#226#0" expanded="true" />
534
-          </folding>
535
-        </state>
536
-      </provider>
537
-    </entry>
538 500
     <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPerson.java">
539 501
       <provider selected="true" editor-type-id="text-editor">
540 502
         <state relative-caret-position="375">
@@ -562,6 +524,16 @@
562 524
         </state>
563 525
       </provider>
564 526
     </entry>
527
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java">
528
+      <provider selected="true" editor-type-id="text-editor">
529
+        <state relative-caret-position="297">
530
+          <caret line="105" lean-forward="true" selection-start-line="105" selection-end-line="105" />
531
+          <folding>
532
+            <element signature="imports" expanded="true" />
533
+          </folding>
534
+        </state>
535
+      </provider>
536
+    </entry>
565 537
     <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java">
566 538
       <provider selected="true" editor-type-id="text-editor">
567 539
         <state relative-caret-position="75">
@@ -573,24 +545,35 @@
573 545
         </state>
574 546
       </provider>
575 547
     </entry>
576
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java">
548
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentsTest.java">
577 549
       <provider selected="true" editor-type-id="text-editor">
578
-        <state relative-caret-position="297">
579
-          <caret line="52" column="9" selection-start-line="52" selection-start-column="9" selection-end-line="52" selection-end-column="9" />
550
+        <state relative-caret-position="330">
551
+          <caret line="22" column="46" lean-forward="true" selection-start-line="22" selection-start-column="46" selection-end-line="22" selection-end-column="46" />
580 552
           <folding>
581 553
             <element signature="imports" expanded="true" />
582
-            <element signature="e#185#186#0" expanded="true" />
583
-            <element signature="e#215#216#0" expanded="true" />
584 554
           </folding>
585 555
         </state>
586 556
       </provider>
587 557
     </entry>
588
-    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java">
558
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java">
589 559
       <provider selected="true" editor-type-id="text-editor">
590
-        <state relative-caret-position="297">
591
-          <caret line="105" lean-forward="true" selection-start-line="105" selection-end-line="105" />
560
+        <state relative-caret-position="704">
561
+          <caret line="50" column="27" selection-start-line="50" selection-start-column="27" selection-end-line="50" selection-end-column="27" />
592 562
           <folding>
593 563
             <element signature="imports" expanded="true" />
564
+            <element signature="e#984#985#0" expanded="true" />
565
+            <element signature="e#1018#1019#0" expanded="true" />
566
+          </folding>
567
+        </state>
568
+      </provider>
569
+    </entry>
570
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java">
571
+      <provider selected="true" editor-type-id="text-editor">
572
+        <state relative-caret-position="327">
573
+          <caret line="52" column="1" lean-forward="true" selection-start-line="52" selection-start-column="1" selection-end-line="52" selection-end-column="1" />
574
+          <folding>
575
+            <element signature="e#194#195#0" expanded="true" />
576
+            <element signature="e#225#226#0" expanded="true" />
594 577
           </folding>
595 578
         </state>
596 579
       </provider>

+ 40
- 40
src/main/java/io/zipcoder/interfaces/Students.java 查看文件

@@ -1,48 +1,48 @@
1 1
 package io.zipcoder.interfaces;
2 2
 
3
-public final class Students {
3
+public final class Students extends People{
4 4
     final static Students INSTANCE = new Students();
5 5
 
6 6
     private Students() {
7
-//        studentList.add(new Student(1, "Ned Redmond"));
8
-//        studentList.add(new Student(2, "Seth Abrams"));
9
-//        studentList.add(new Student(3, "Akeem Cherry"));
10
-//        studentList.add(new Student(4, "Whitney Martinez"));
11
-//        studentList.add(new Student(5, "Nira Parikh"));
12
-//        studentList.add(new Student(6, "Connor Dunnigan"));
13
-//        studentList.add(new Student(7, "Christian Sheridan"));
14
-//        studentList.add(new Student(8, "Curtis Cook"));
15
-//        studentList.add(new Student(9, "Nuridalia Hernandez"));
16
-//        studentList.add(new Student(10, "Brandon DeFrancis"));
17
-//        studentList.add(new Student(11, "De'Jon Johnson"));
18
-//        studentList.add(new Student(12, "Demetrius Murray"));
19
-//        studentList.add(new Student(13, "Elliott Stansbury"));
20
-//        studentList.add(new Student(14, "Nathan Hall"));
21
-//        studentList.add(new Student(15, "Jae Joson"));
22
-//        studentList.add(new Student(16, "Jacob Anderson"));
23
-//        studentList.add(new Student(17, "Jose Bedolla"));
24
-//        studentList.add(new Student(18, "Jenn Chao"));
25
-//        studentList.add(new Student(19, "Jennifer Tinkler"));
26
-//        studentList.add(new Student(20, "Jonathan Hinds"));
27
-//        studentList.add(new Student(21, "Jay Samuels"));
28
-//        studentList.add(new Student(22, "Jevit Tith"));
29
-//        studentList.add(new Student(23, "Lauren Green"));
30
-//        studentList.add(new Student(24, "Kate Moore"));
31
-//        studentList.add(new Student(25, "Michelle DiMarino"));
32
-//        studentList.add(new Student(26, "Maggie Pierse"));
33
-//        studentList.add(new Student(27, "Nick Satinover"));
34
-//        studentList.add(new Student(28, "Chaitali Patel"));
35
-//        studentList.add(new Student(29, "Yesoda Sanka"));
36
-//        studentList.add(new Student(30, "Saurav Kamath"));
37
-//        studentList.add(new Student(31, "Sam Bhutani"));
38
-//        studentList.add(new Student(32, "Soujanya Buragapu"));
39
-//        studentList.add(new Student(33, "Steffon Williams"));
40
-//        studentList.add(new Student(34, "Zavon Malone"));
41
-//        studentList.add(new Student(35, "Thuy Kong"));
42
-//        studentList.add(new Student(36, "Thulasi Puppala"));
43
-//        studentList.add(new Student(37, "Trinh Tong"));
44
-//        studentList.add(new Student(38, "William Brown"));
45
-//        studentList.add(new Student(39, "Xzavia Cuello"));
7
+        .add(new Student(1, "Ned Redmond"));
8
+        studentList.add(new Student(2, "Seth Abrams"));
9
+        studentList.add(new Student(3, "Akeem Cherry"));
10
+        studentList.add(new Student(4, "Whitney Martinez"));
11
+        studentList.add(new Student(5, "Nira Parikh"));
12
+        studentList.add(new Student(6, "Connor Dunnigan"));
13
+        studentList.add(new Student(7, "Christian Sheridan"));
14
+        studentList.add(new Student(8, "Curtis Cook"));
15
+        studentList.add(new Student(9, "Nuridalia Hernandez"));
16
+        studentList.add(new Student(10, "Brandon DeFrancis"));
17
+        studentList.add(new Student(11, "De'Jon Johnson"));
18
+        studentList.add(new Student(12, "Demetrius Murray"));
19
+        studentList.add(new Student(13, "Elliott Stansbury"));
20
+        studentList.add(new Student(14, "Nathan Hall"));
21
+        studentList.add(new Student(15, "Jae Joson"));
22
+        studentList.add(new Student(16, "Jacob Anderson"));
23
+        studentList.add(new Student(17, "Jose Bedolla"));
24
+        studentList.add(new Student(18, "Jenn Chao"));
25
+        studentList.add(new Student(19, "Jennifer Tinkler"));
26
+        studentList.add(new Student(20, "Jonathan Hinds"));
27
+        studentList.add(new Student(21, "Jay Samuels"));
28
+        studentList.add(new Student(22, "Jevit Tith"));
29
+        studentList.add(new Student(23, "Lauren Green"));
30
+        studentList.add(new Student(24, "Kate Moore"));
31
+        studentList.add(new Student(25, "Michelle DiMarino"));
32
+        studentList.add(new Student(26, "Maggie Pierse"));
33
+        studentList.add(new Student(27, "Nick Satinover"));
34
+        studentList.add(new Student(28, "Chaitali Patel"));
35
+        studentList.add(new Student(29, "Yesoda Sanka"));
36
+        studentList.add(new Student(30, "Saurav Kamath"));
37
+        studentList.add(new Student(31, "Sam Bhutani"));
38
+        studentList.add(new Student(32, "Soujanya Buragapu"));
39
+        studentList.add(new Student(33, "Steffon Williams"));
40
+        studentList.add(new Student(34, "Zavon Malone"));
41
+        studentList.add(new Student(35, "Thuy Kong"));
42
+        studentList.add(new Student(36, "Thulasi Puppala"));
43
+        studentList.add(new Student(37, "Trinh Tong"));
44
+        studentList.add(new Student(38, "William Brown"));
45
+        studentList.add(new Student(39, "Xzavia Cuello"));
46 46
 
47 47
     }
48 48
 

+ 8
- 8
src/test/java/io/zipcoder/interfaces/StudentsTest.java 查看文件

@@ -14,14 +14,14 @@ public class StudentsTest {
14 14
 
15 15
     }
16 16
 
17
-//    @Test
18
-//    public void testInitializationSetupStudents() {
19
-//
20
-//        int expected = 39;
21
-//        int actual = Students.getArray().length;
22
-//
23
-//        Assert.assertEquals(expected, actual);
24
-//    }
17
+    @Test
18
+    public void testInitializationSetupStudents() {
19
+
20
+        int expected = 39;
21
+        int actual = Students.getINSTANCE().getArray().length;
22
+
23
+        Assert.assertEquals(expected, actual);
24
+    }
25 25
 
26 26
 
27 27
 }