Kaynağa Gözat

Completed lab until part 10.

William Brown 6 yıl önce
ebeveyn
işleme
a171a10b78

+ 214
- 135
.idea/workspace.xml Dosyayı Görüntüle

@@ -2,10 +2,16 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="c0f7ce67-c21c-4eff-a696-290be3222ea8" name="Default Changelist" comment="">
5
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java" afterDir="false" />
6
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java" afterDir="false" />
7
-      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestInstructor.java" afterDir="false" />
5
+      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructors.java" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java" afterDir="false" />
7
+      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java" afterDir="false" />
8
+      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/ZipCodeWilmington.java" afterDir="false" />
9
+      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestInstructors.java" afterDir="false" />
10
+      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPeople.java" afterDir="false" />
11
+      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestStudents.java" afterDir="false" />
12
+      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestZipCodeWilmington.java" afterDir="false" />
8 13
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
14
+      <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" />
9 15
     </list>
10 16
     <ignored path="$PROJECT_DIR$/target/" />
11 17
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -32,73 +38,82 @@
32 38
     <session id="-945268981">
33 39
       <usages-collector id="statistics.lifecycle.project">
34 40
         <counts>
41
+          <entry key="project.closed" value="6" />
35 42
           <entry key="project.open.time.1" value="1" />
36
-          <entry key="project.opened" value="1" />
43
+          <entry key="project.open.time.2" value="5" />
44
+          <entry key="project.open.time.4" value="1" />
45
+          <entry key="project.opened" value="7" />
37 46
         </counts>
38 47
       </usages-collector>
39 48
       <usages-collector id="statistics.file.extensions.open">
40 49
         <counts>
41
-          <entry key="java" value="10" />
50
+          <entry key="java" value="46" />
51
+          <entry key="md" value="1" />
42 52
           <entry key="project" value="1" />
43 53
         </counts>
44 54
       </usages-collector>
45 55
       <usages-collector id="statistics.file.types.open">
46 56
         <counts>
47 57
           <entry key="Eclipse" value="1" />
48
-          <entry key="JAVA" value="10" />
58
+          <entry key="JAVA" value="46" />
59
+          <entry key="Markdown" value="1" />
49 60
         </counts>
50 61
       </usages-collector>
51 62
       <usages-collector id="statistics.file.extensions.edit">
52 63
         <counts>
53
-          <entry key="java" value="1755" />
64
+          <entry key="java" value="4855" />
54 65
         </counts>
55 66
       </usages-collector>
56 67
       <usages-collector id="statistics.file.types.edit">
57 68
         <counts>
58
-          <entry key="JAVA" value="1755" />
69
+          <entry key="JAVA" value="4855" />
59 70
         </counts>
60 71
       </usages-collector>
61 72
     </session>
62 73
   </component>
63 74
   <component name="FileEditorManager">
64
-    <leaf>
65
-      <file pinned="false" current-in-tab="true">
66
-        <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestInstructor.java">
75
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
76
+      <file pinned="false" current-in-tab="false">
77
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/ZipCodeWilmington.java">
67 78
           <provider selected="true" editor-type-id="text-editor">
68
-            <state relative-caret-position="267">
69
-              <caret line="42" column="27" selection-start-line="42" selection-start-column="27" selection-end-line="42" selection-end-column="27" />
79
+            <state relative-caret-position="270">
80
+              <caret line="18" column="65" selection-start-line="18" selection-start-column="65" selection-end-line="18" selection-end-column="65" />
70 81
               <folding>
71
-                <element signature="imports" expanded="true" />
82
+                <element signature="e#407#408#0" expanded="true" />
83
+                <element signature="e#438#439#0" expanded="true" />
72 84
               </folding>
73 85
             </state>
74 86
           </provider>
75 87
         </entry>
76 88
       </file>
77 89
       <file pinned="false" current-in-tab="false">
78
-        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java">
90
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructors.java">
79 91
           <provider selected="true" editor-type-id="text-editor">
80
-            <state relative-caret-position="315">
81
-              <caret line="21" column="1" lean-forward="true" selection-start-line="21" selection-start-column="1" selection-end-line="21" selection-end-column="1" />
92
+            <state relative-caret-position="120">
93
+              <caret line="8" column="62" selection-start-line="8" selection-start-column="62" selection-end-line="8" selection-end-column="62" />
82 94
               <folding>
83
-                <element signature="e#138#139#0" expanded="true" />
84
-                <element signature="e#169#170#0" expanded="true" />
85
-                <element signature="e#203#204#0" expanded="true" />
86
-                <element signature="e#228#229#0" expanded="true" />
87
-                <element signature="e#292#293#0" expanded="true" />
88
-                <element signature="e#315#316#0" expanded="true" />
95
+                <element signature="e#174#186#0" expanded="true" />
89 96
               </folding>
90 97
             </state>
91 98
           </provider>
92 99
         </entry>
93 100
       </file>
94 101
       <file pinned="false" current-in-tab="false">
95
-        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java">
102
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java">
103
+          <provider selected="true" editor-type-id="text-editor">
104
+            <state>
105
+              <caret column="28" lean-forward="true" selection-start-column="28" selection-end-column="28" />
106
+            </state>
107
+          </provider>
108
+        </entry>
109
+      </file>
110
+      <file pinned="false" current-in-tab="true">
111
+        <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestZipCodeWilmington.java">
96 112
           <provider selected="true" editor-type-id="text-editor">
97
-            <state relative-caret-position="225">
98
-              <caret line="21" selection-start-line="21" selection-end-line="21" />
113
+            <state relative-caret-position="360">
114
+              <caret line="24" column="61" selection-start-line="24" selection-start-column="61" selection-end-line="24" selection-end-column="61" />
99 115
               <folding>
100
-                <element signature="e#293#294#0" expanded="true" />
101
-                <element signature="e#340#341#0" expanded="true" />
116
+                <element signature="imports" expanded="true" />
102 117
               </folding>
103 118
             </state>
104 119
           </provider>
@@ -120,7 +135,6 @@
120 135
   <component name="IdeDocumentHistory">
121 136
     <option name="CHANGED_PATHS">
122 137
       <list>
123
-        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java" />
124 138
         <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPerson.java" />
125 139
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Learner.java" />
126 140
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java" />
@@ -128,6 +142,15 @@
128 142
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java" />
129 143
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java" />
130 144
         <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestInstructor.java" />
145
+        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java" />
146
+        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java" />
147
+        <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPeople.java" />
148
+        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java" />
149
+        <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestStudents.java" />
150
+        <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestInstructors.java" />
151
+        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructors.java" />
152
+        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/ZipCodeWilmington.java" />
153
+        <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestZipCodeWilmington.java" />
131 154
       </list>
132 155
     </option>
133 156
   </component>
@@ -150,6 +173,7 @@
150 173
       <foldersAlwaysOnTop value="true" />
151 174
     </navigator>
152 175
     <panes>
176
+      <pane id="Scope" />
153 177
       <pane id="ProjectPane">
154 178
         <subPane>
155 179
           <expand>
@@ -209,13 +233,12 @@
209 233
         </subPane>
210 234
       </pane>
211 235
       <pane id="PackagesPane" />
212
-      <pane id="Scope" />
213 236
     </panes>
214 237
   </component>
215 238
   <component name="PropertiesComponent">
216 239
     <property name="WebServerToolWindowFactoryState" value="false" />
217 240
     <property name="aspect.path.notification.shown" value="true" />
218
-    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1541218571626" />
241
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1541642266677" />
219 242
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
220 243
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
221 244
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
@@ -232,8 +255,8 @@
232 255
       </list>
233 256
     </option>
234 257
   </component>
235
-  <component name="RunManager" selected="JUnit.TestInstructor">
236
-    <configuration name="TestInstructor" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
258
+  <component name="RunManager" selected="JUnit.TestZipCodeWilmington">
259
+    <configuration name="TestInstructors.testSize" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
237 260
       <module name="interfaces-1" />
238 261
       <extension name="coverage">
239 262
         <pattern>
@@ -242,12 +265,14 @@
242 265
         </pattern>
243 266
       </extension>
244 267
       <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
245
-      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.TestInstructor" />
268
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.TestInstructors" />
269
+      <option name="METHOD_NAME" value="testSize" />
270
+      <option name="TEST_OBJECT" value="method" />
246 271
       <method v="2">
247 272
         <option name="Make" enabled="true" />
248 273
       </method>
249 274
     </configuration>
250
-    <configuration name="TestInstructor.testImplementation" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
275
+    <configuration name="TestZipCodeWilmington" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
251 276
       <module name="interfaces-1" />
252 277
       <extension name="coverage">
253 278
         <pattern>
@@ -256,14 +281,12 @@
256 281
         </pattern>
257 282
       </extension>
258 283
       <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
259
-      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.TestInstructor" />
260
-      <option name="METHOD_NAME" value="testImplementation" />
261
-      <option name="TEST_OBJECT" value="method" />
284
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.TestZipCodeWilmington" />
262 285
       <method v="2">
263 286
         <option name="Make" enabled="true" />
264 287
       </method>
265 288
     </configuration>
266
-    <configuration name="TestInstructor.testInheritance" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
289
+    <configuration name="TestZipCodeWilmington.testHostLecture" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
267 290
       <module name="interfaces-1" />
268 291
       <extension name="coverage">
269 292
         <pattern>
@@ -272,14 +295,14 @@
272 295
         </pattern>
273 296
       </extension>
274 297
       <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
275
-      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.TestInstructor" />
276
-      <option name="METHOD_NAME" value="testInheritance" />
298
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.TestZipCodeWilmington" />
299
+      <option name="METHOD_NAME" value="testHostLecture" />
277 300
       <option name="TEST_OBJECT" value="method" />
278 301
       <method v="2">
279 302
         <option name="Make" enabled="true" />
280 303
       </method>
281 304
     </configuration>
282
-    <configuration name="TestInstructor.testLecture" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
305
+    <configuration name="TestZipCodeWilmington.testHostLectureID" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
283 306
       <module name="interfaces-1" />
284 307
       <extension name="coverage">
285 308
         <pattern>
@@ -288,14 +311,14 @@
288 311
         </pattern>
289 312
       </extension>
290 313
       <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
291
-      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.TestInstructor" />
292
-      <option name="METHOD_NAME" value="testLecture" />
314
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.TestZipCodeWilmington" />
315
+      <option name="METHOD_NAME" value="testHostLectureID" />
293 316
       <option name="TEST_OBJECT" value="method" />
294 317
       <method v="2">
295 318
         <option name="Make" enabled="true" />
296 319
       </method>
297 320
     </configuration>
298
-    <configuration name="TestInstructor.testTeach" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
321
+    <configuration name="io.zipcoder.interfaces in interfaces-1" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
299 322
       <module name="interfaces-1" />
300 323
       <extension name="coverage">
301 324
         <pattern>
@@ -304,27 +327,25 @@
304 327
         </pattern>
305 328
       </extension>
306 329
       <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
307
-      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.TestInstructor" />
308
-      <option name="METHOD_NAME" value="testTeach" />
309
-      <option name="TEST_OBJECT" value="method" />
330
+      <option name="TEST_OBJECT" value="package" />
310 331
       <method v="2">
311 332
         <option name="Make" enabled="true" />
312 333
       </method>
313 334
     </configuration>
314 335
     <list>
315
-      <item itemvalue="JUnit.TestInstructor.testImplementation" />
316
-      <item itemvalue="JUnit.TestInstructor.testTeach" />
317
-      <item itemvalue="JUnit.TestInstructor.testLecture" />
318
-      <item itemvalue="JUnit.TestInstructor.testInheritance" />
319
-      <item itemvalue="JUnit.TestInstructor" />
336
+      <item itemvalue="JUnit.TestInstructors.testSize" />
337
+      <item itemvalue="JUnit.TestZipCodeWilmington.testHostLectureID" />
338
+      <item itemvalue="JUnit.TestZipCodeWilmington" />
339
+      <item itemvalue="JUnit.TestZipCodeWilmington.testHostLecture" />
340
+      <item itemvalue="JUnit.io.zipcoder.interfaces in interfaces-1" />
320 341
     </list>
321 342
     <recent_temporary>
322 343
       <list>
323
-        <item itemvalue="JUnit.TestInstructor" />
324
-        <item itemvalue="JUnit.TestInstructor.testLecture" />
325
-        <item itemvalue="JUnit.TestInstructor.testTeach" />
326
-        <item itemvalue="JUnit.TestInstructor.testInheritance" />
327
-        <item itemvalue="JUnit.TestInstructor.testImplementation" />
344
+        <item itemvalue="JUnit.TestZipCodeWilmington" />
345
+        <item itemvalue="JUnit.TestZipCodeWilmington.testHostLecture" />
346
+        <item itemvalue="JUnit.TestZipCodeWilmington.testHostLectureID" />
347
+        <item itemvalue="JUnit.io.zipcoder.interfaces in interfaces-1" />
348
+        <item itemvalue="JUnit.TestInstructors.testSize" />
328 349
       </list>
329 350
     </recent_temporary>
330 351
   </component>
@@ -338,61 +359,62 @@
338 359
       <option name="number" value="Default" />
339 360
       <option name="presentableId" value="Default" />
340 361
       <updated>1541213342172</updated>
341
-      <workItem from="1541213343574" duration="4761000" />
362
+      <workItem from="1541213343574" duration="6479000" />
363
+      <workItem from="1541257909556" duration="107000" />
364
+      <workItem from="1541350280007" duration="2806000" />
365
+      <workItem from="1541561871544" duration="306000" />
366
+      <workItem from="1541600503766" duration="516000" />
367
+      <workItem from="1541613915444" duration="687000" />
368
+      <workItem from="1541635823687" duration="5301000" />
342 369
     </task>
343 370
     <servers />
344 371
   </component>
345 372
   <component name="TestHistory">
346
-    <history-entry file="TestInstructor_testTeach - 2018.11.03 at 00h 00m 03s.xml">
347
-      <configuration name="TestInstructor.testTeach" configurationId="JUnit" />
373
+    <history-entry file="TestZipCodeWilmington_testHostLectureID - 2018.11.07 at 20h 54m 23s.xml">
374
+      <configuration name="TestZipCodeWilmington.testHostLectureID" configurationId="JUnit" />
348 375
     </history-entry>
349
-    <history-entry file="TestInstructor_testTeach - 2018.11.03 at 00h 00m 34s.xml">
350
-      <configuration name="TestInstructor.testTeach" configurationId="JUnit" />
376
+    <history-entry file="TestZipCodeWilmington - 2018.11.07 at 20h 54m 41s.xml">
377
+      <configuration name="TestZipCodeWilmington" configurationId="JUnit" />
351 378
     </history-entry>
352
-    <history-entry file="TestInstructor_testLecture - 2018.11.03 at 00h 03m 04s.xml">
353
-      <configuration name="TestInstructor.testLecture" configurationId="JUnit" />
379
+    <history-entry file="TestZipCodeWilmington - 2018.11.07 at 20h 55m 51s.xml">
380
+      <configuration name="TestZipCodeWilmington" configurationId="JUnit" />
354 381
     </history-entry>
355
-    <history-entry file="TestInstructor_testInheritance - 2018.11.03 at 00h 04m 06s.xml">
356
-      <configuration name="TestInstructor.testInheritance" configurationId="JUnit" />
382
+    <history-entry file="TestZipCodeWilmington_testHostLectureID - 2018.11.07 at 20h 56m 27s.xml">
383
+      <configuration name="TestZipCodeWilmington.testHostLectureID" configurationId="JUnit" />
357 384
     </history-entry>
358
-    <history-entry file="TestInstructor_testTeach - 2018.11.03 at 00h 08m 02s.xml">
359
-      <configuration name="TestInstructor.testTeach" configurationId="JUnit" />
385
+    <history-entry file="TestZipCodeWilmington - 2018.11.07 at 20h 56m 41s.xml">
386
+      <configuration name="TestZipCodeWilmington" configurationId="JUnit" />
360 387
     </history-entry>
361
-    <history-entry file="TestInstructor_testTeach - 2018.11.03 at 00h 11m 43s.xml">
362
-      <configuration name="TestInstructor.testTeach" configurationId="JUnit" />
388
+    <history-entry file="TestZipCodeWilmington_testHostLecture - 2018.11.07 at 20h 56m 48s.xml">
389
+      <configuration name="TestZipCodeWilmington.testHostLecture" configurationId="JUnit" />
363 390
     </history-entry>
364
-    <history-entry file="TestPerson_testConstructorId - 2018.11.03 at 00h 12m 02s.xml">
365
-      <configuration name="TestPerson.testConstructorId" configurationId="JUnit" />
391
+    <history-entry file="TestZipCodeWilmington_testHostLectureID - 2018.11.07 at 20h 56m 51s.xml">
392
+      <configuration name="TestZipCodeWilmington.testHostLectureID" configurationId="JUnit" />
366 393
     </history-entry>
367
-    <history-entry file="TestInstructor_testTeach - 2018.11.03 at 00h 12m 09s.xml">
368
-      <configuration name="TestInstructor.testTeach" configurationId="JUnit" />
394
+    <history-entry file="TestZipCodeWilmington_testHostLecture - 2018.11.07 at 20h 57m 10s.xml">
395
+      <configuration name="TestZipCodeWilmington.testHostLecture" configurationId="JUnit" />
369 396
     </history-entry>
370
-    <history-entry file="TestInstructor_testTeach - 2018.11.03 at 00h 12m 27s.xml">
371
-      <configuration name="TestInstructor.testTeach" configurationId="JUnit" />
397
+    <history-entry file="TestZipCodeWilmington - 2018.11.07 at 20h 57m 14s.xml">
398
+      <configuration name="TestZipCodeWilmington" configurationId="JUnit" />
372 399
     </history-entry>
373
-    <history-entry file="TestInstructor_testTeach - 2018.11.03 at 00h 13m 37s.xml">
374
-      <configuration name="TestInstructor.testTeach" configurationId="JUnit" />
400
+    <history-entry file="TestZipCodeWilmington - 2018.11.07 at 20h 57m 44s.xml">
401
+      <configuration name="TestZipCodeWilmington" configurationId="JUnit" />
375 402
     </history-entry>
376 403
   </component>
377 404
   <component name="TimeTrackingManager">
378
-    <option name="totallyTimeSpent" value="4761000" />
405
+    <option name="totallyTimeSpent" value="16202000" />
379 406
   </component>
380 407
   <component name="ToolWindowManager">
381 408
     <frame x="0" y="0" width="1280" height="800" extended-state="0" />
382 409
     <editor active="true" />
383 410
     <layout>
384
-      <window_info id="Image Layers" />
385
-      <window_info id="Designer" />
386
-      <window_info id="UI Designer" />
387
-      <window_info id="Capture Tool" />
388
-      <window_info id="Favorites" side_tool="true" />
389
-      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.24555735" />
411
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2657512" />
390 412
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
391
-      <window_info anchor="bottom" id="Messages" weight="0.32876712" />
392
-      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
393
-      <window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
394
-      <window_info anchor="bottom" id="Terminal" weight="0.32876712" />
395
-      <window_info anchor="bottom" id="Event Log" side_tool="true" />
413
+      <window_info id="Image Layers" order="2" />
414
+      <window_info id="Designer" order="3" />
415
+      <window_info id="UI Designer" order="4" />
416
+      <window_info id="Capture Tool" order="5" />
417
+      <window_info id="Favorites" order="6" side_tool="true" />
396 418
       <window_info anchor="bottom" id="Message" order="0" />
397 419
       <window_info anchor="bottom" id="Find" order="1" />
398 420
       <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32876712" />
@@ -400,16 +422,21 @@
400 422
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
401 423
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
402 424
       <window_info anchor="bottom" id="TODO" order="6" />
403
-      <window_info anchor="right" id="Palette" />
404
-      <window_info anchor="right" id="Coverage" side_tool="true" weight="0.32956383" />
405
-      <window_info anchor="right" id="Theme Preview" />
406
-      <window_info anchor="right" id="Capture Analysis" />
407
-      <window_info anchor="right" id="Palette&#9;" />
408
-      <window_info anchor="right" id="Database" />
409
-      <window_info anchor="right" id="Maven Projects" />
425
+      <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
426
+      <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
427
+      <window_info anchor="bottom" id="Terminal" order="9" weight="0.32876712" />
428
+      <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
429
+      <window_info anchor="bottom" id="Messages" order="11" weight="0.32876712" />
410 430
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
411 431
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
412 432
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
433
+      <window_info anchor="right" id="Palette" order="3" />
434
+      <window_info anchor="right" id="Capture Analysis" order="4" />
435
+      <window_info anchor="right" id="Database" order="5" />
436
+      <window_info anchor="right" id="Theme Preview" order="6" />
437
+      <window_info anchor="right" id="Maven Projects" order="7" />
438
+      <window_info anchor="right" id="Palette&#9;" order="8" />
439
+      <window_info anchor="right" id="Coverage" order="9" side_tool="true" weight="0.32956383" />
413 440
     </layout>
414 441
   </component>
415 442
   <component name="TypeScriptGeneratedFilesManager">
@@ -422,43 +449,100 @@
422 449
     <entry file="file://$PROJECT_DIR$/.project">
423 450
       <provider selected="true" editor-type-id="text-editor" />
424 451
     </entry>
425
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java">
452
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Learner.java">
426 453
       <provider selected="true" editor-type-id="text-editor">
427
-        <state relative-caret-position="179">
428
-          <caret line="13" column="21" selection-start-line="13" selection-start-column="21" selection-end-line="13" selection-end-column="21" />
429
-          <folding>
430
-            <element signature="e#231#232#0" expanded="true" />
431
-            <element signature="e#259#260#0" expanded="true" />
432
-            <element signature="e#129#130#0" expanded="true" />
433
-            <element signature="e#156#157#0" expanded="true" />
434
-            <element signature="e#196#197#0" expanded="true" />
435
-            <element signature="e#228#229#0" expanded="true" />
436
-            <element signature="e#439#440#0" expanded="true" />
437
-            <element signature="e#464#465#0" expanded="true" />
438
-          </folding>
454
+        <state relative-caret-position="45">
455
+          <caret line="3" column="37" selection-start-line="3" selection-start-column="37" selection-end-line="3" selection-end-column="37" />
439 456
         </state>
440 457
       </provider>
441 458
     </entry>
442 459
     <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPerson.java">
443 460
       <provider selected="true" editor-type-id="text-editor">
444
-        <state relative-caret-position="233">
445
-          <caret line="27" column="8" lean-forward="true" selection-start-line="27" selection-start-column="8" selection-end-line="30" selection-end-column="41" />
461
+        <state relative-caret-position="375">
462
+          <caret line="26" selection-start-line="26" selection-end-line="26" />
463
+        </state>
464
+      </provider>
465
+    </entry>
466
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPeople.java">
467
+      <provider selected="true" editor-type-id="text-editor">
468
+        <state relative-caret-position="-1492">
469
+          <caret line="9" column="6" selection-start-line="9" selection-start-column="6" selection-end-line="22" selection-end-column="7" />
446 470
           <folding>
447 471
             <element signature="imports" expanded="true" />
448 472
           </folding>
449 473
         </state>
450 474
       </provider>
451 475
     </entry>
476
+    <entry file="file://$PROJECT_DIR$/README.md">
477
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
478
+        <state split_layout="SPLIT">
479
+          <first_editor />
480
+          <second_editor />
481
+        </state>
482
+      </provider>
483
+    </entry>
452 484
     <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestStudent.java">
453 485
       <provider selected="true" editor-type-id="text-editor">
454
-        <state relative-caret-position="15">
455
-          <caret line="7" column="4" selection-start-line="7" selection-start-column="4" selection-end-line="38" selection-end-column="5" />
486
+        <state relative-caret-position="278">
487
+          <caret line="21" column="30" lean-forward="true" selection-start-line="21" selection-start-column="30" selection-end-line="21" selection-end-column="30" />
488
+        </state>
489
+      </provider>
490
+    </entry>
491
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java">
492
+      <provider selected="true" editor-type-id="text-editor">
493
+        <state relative-caret-position="195">
494
+          <caret line="21" selection-start-line="21" selection-end-line="21" />
495
+        </state>
496
+      </provider>
497
+    </entry>
498
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestStudents.java">
499
+      <provider selected="true" editor-type-id="text-editor">
500
+        <state relative-caret-position="45">
501
+          <caret line="3" column="22" lean-forward="true" selection-start-line="3" selection-start-column="22" selection-end-line="3" selection-end-column="22" />
456 502
           <folding>
457 503
             <element signature="imports" expanded="true" />
458 504
           </folding>
459 505
         </state>
460 506
       </provider>
461 507
     </entry>
508
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestInstructor.java">
509
+      <provider selected="true" editor-type-id="text-editor">
510
+        <state relative-caret-position="615">
511
+          <caret line="42" column="27" selection-start-line="42" selection-start-column="27" selection-end-line="42" selection-end-column="27" />
512
+        </state>
513
+      </provider>
514
+    </entry>
515
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java">
516
+      <provider selected="true" editor-type-id="text-editor">
517
+        <state relative-caret-position="210">
518
+          <caret line="16" column="21" selection-start-line="16" selection-start-column="21" selection-end-line="16" selection-end-column="21" />
519
+        </state>
520
+      </provider>
521
+    </entry>
522
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java">
523
+      <provider selected="true" editor-type-id="text-editor">
524
+        <state relative-caret-position="293">
525
+          <caret line="35" selection-start-line="35" selection-end-line="35" />
526
+        </state>
527
+      </provider>
528
+    </entry>
529
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestInstructors.java">
530
+      <provider selected="true" editor-type-id="text-editor">
531
+        <state relative-caret-position="120">
532
+          <caret line="8" lean-forward="true" selection-start-line="8" selection-end-line="8" />
533
+          <folding>
534
+            <element signature="imports" expanded="true" />
535
+          </folding>
536
+        </state>
537
+      </provider>
538
+    </entry>
539
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java">
540
+      <provider selected="true" editor-type-id="text-editor">
541
+        <state relative-caret-position="345">
542
+          <caret line="51" column="4" lean-forward="true" selection-start-line="51" selection-start-column="4" selection-end-line="53" selection-end-column="5" />
543
+        </state>
544
+      </provider>
545
+    </entry>
462 546
     <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java">
463 547
       <provider selected="true" editor-type-id="text-editor">
464 548
         <state relative-caret-position="45">
@@ -466,43 +550,38 @@
466 550
         </state>
467 551
       </provider>
468 552
     </entry>
469
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Learner.java">
553
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java">
470 554
       <provider selected="true" editor-type-id="text-editor">
471
-        <state relative-caret-position="45">
472
-          <caret line="3" column="37" selection-start-line="3" selection-start-column="37" selection-end-line="3" selection-end-column="37" />
555
+        <state>
556
+          <caret column="28" lean-forward="true" selection-start-column="28" selection-end-column="28" />
473 557
         </state>
474 558
       </provider>
475 559
     </entry>
476
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java">
560
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructors.java">
477 561
       <provider selected="true" editor-type-id="text-editor">
478
-        <state relative-caret-position="225">
479
-          <caret line="21" selection-start-line="21" selection-end-line="21" />
562
+        <state relative-caret-position="120">
563
+          <caret line="8" column="62" selection-start-line="8" selection-start-column="62" selection-end-line="8" selection-end-column="62" />
480 564
           <folding>
481
-            <element signature="e#293#294#0" expanded="true" />
482
-            <element signature="e#340#341#0" expanded="true" />
565
+            <element signature="e#174#186#0" expanded="true" />
483 566
           </folding>
484 567
         </state>
485 568
       </provider>
486 569
     </entry>
487
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java">
570
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/ZipCodeWilmington.java">
488 571
       <provider selected="true" editor-type-id="text-editor">
489
-        <state relative-caret-position="315">
490
-          <caret line="21" column="1" lean-forward="true" selection-start-line="21" selection-start-column="1" selection-end-line="21" selection-end-column="1" />
572
+        <state relative-caret-position="270">
573
+          <caret line="18" column="65" selection-start-line="18" selection-start-column="65" selection-end-line="18" selection-end-column="65" />
491 574
           <folding>
492
-            <element signature="e#138#139#0" expanded="true" />
493
-            <element signature="e#169#170#0" expanded="true" />
494
-            <element signature="e#203#204#0" expanded="true" />
495
-            <element signature="e#228#229#0" expanded="true" />
496
-            <element signature="e#292#293#0" expanded="true" />
497
-            <element signature="e#315#316#0" expanded="true" />
575
+            <element signature="e#407#408#0" expanded="true" />
576
+            <element signature="e#438#439#0" expanded="true" />
498 577
           </folding>
499 578
         </state>
500 579
       </provider>
501 580
     </entry>
502
-    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestInstructor.java">
581
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestZipCodeWilmington.java">
503 582
       <provider selected="true" editor-type-id="text-editor">
504
-        <state relative-caret-position="267">
505
-          <caret line="42" column="27" selection-start-line="42" selection-start-column="27" selection-end-line="42" selection-end-column="27" />
583
+        <state relative-caret-position="360">
584
+          <caret line="24" column="61" selection-start-line="24" selection-start-column="61" selection-end-line="24" selection-end-column="61" />
506 585
           <folding>
507 586
             <element signature="imports" expanded="true" />
508 587
           </folding>

+ 24
- 0
src/main/java/io/zipcoder/interfaces/Instructors.java Dosyayı Görüntüle

@@ -0,0 +1,24 @@
1
+package io.zipcoder.interfaces;
2
+
3
+import java.util.ArrayList;
4
+
5
+public final class Instructors extends People{
6
+
7
+    public ArrayList<Instructor> instructorsList = new ArrayList<Instructor>();
8
+
9
+    private final static Instructors INSTANCE = new Instructors();
10
+
11
+    private Instructors(){
12
+        instructorsList.add(new Instructor(1, "Kris"));
13
+        instructorsList.add(new Instructor(2, "Froilan"));
14
+        instructorsList.add(new Instructor(3, "Leon"));
15
+        instructorsList.add(new Instructor(4, "Dolio"));
16
+        instructorsList.add(new Instructor(5, "Wilhem"));
17
+        instructorsList.add(new Instructor(6, "Nhu"));
18
+    }
19
+
20
+    public static Instructors getInstance(){
21
+        return INSTANCE;
22
+    }
23
+
24
+}

+ 48
- 0
src/main/java/io/zipcoder/interfaces/People.java Dosyayı Görüntüle

@@ -0,0 +1,48 @@
1
+package io.zipcoder.interfaces;
2
+
3
+import java.util.ArrayList;
4
+
5
+public class People{
6
+
7
+    public ArrayList<Person> personList = new ArrayList<Person>();
8
+
9
+    public void add(Person person){
10
+        personList.add(person);
11
+    }
12
+
13
+    public int getCount(){
14
+        return personList.size();
15
+    }
16
+
17
+    public ArrayList<Person> getPersonList() {
18
+        return personList;
19
+    }
20
+
21
+    public Person findById(long id){
22
+        for(Person i : personList){
23
+            if(i.getId() == id){
24
+                return i;
25
+            }
26
+        }
27
+        return null;
28
+    }
29
+
30
+    public void removePerson(Person person){
31
+        personList.remove(person);
32
+    }
33
+
34
+    public void removeId(long id){
35
+        for(Person i : personList){
36
+            if(i.getId() == id){
37
+                personList.remove(personList.indexOf(i));
38
+                break;
39
+            }
40
+        }
41
+    }
42
+
43
+    public void removeAll(){
44
+        while(personList.size() != 0){
45
+            personList.remove(0);
46
+        }
47
+    }
48
+}

+ 4
- 0
src/main/java/io/zipcoder/interfaces/Person.java Dosyayı Görüntüle

@@ -18,6 +18,10 @@ public class Person {
18 18
         return name;
19 19
     }
20 20
 
21
+    public String getName(long id) {
22
+        return this.name;
23
+    }
24
+
21 25
     public void setName(String name) {
22 26
         this.name = name;
23 27
     }

+ 55
- 0
src/main/java/io/zipcoder/interfaces/Students.java Dosyayı Görüntüle

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

+ 31
- 0
src/main/java/io/zipcoder/interfaces/ZipCodeWilmington.java Dosyayı Görüntüle

@@ -0,0 +1,31 @@
1
+package io.zipcoder.interfaces;
2
+
3
+public final class ZipCodeWilmington {
4
+
5
+    private final static ZipCodeWilmington INSTANCE = new ZipCodeWilmington();
6
+
7
+    Instructors instructors = Instructors.getInstance();
8
+    Students students = Students.getInstance();
9
+
10
+    public void hostLecture(Teacher teacher, double numberOfHours){
11
+
12
+        Learner[] cohort = students.studentList.toArray(new Learner[students.studentList.size()]);
13
+
14
+        teacher.lecture(cohort, numberOfHours);
15
+    }
16
+
17
+    public void hostLecture(long id, double numberOfHours){
18
+        //Teacher teacher = (Teacher) instructors.findById(id);
19
+        Instructor teacher = instructors.instructorsList.get((int)id);
20
+
21
+        Learner[] cohort = students.studentList.toArray(new Learner[students.studentList.size()]);
22
+
23
+        teacher.lecture(cohort, numberOfHours);
24
+    }
25
+
26
+
27
+    private ZipCodeWilmington(){}
28
+    public static ZipCodeWilmington getInstance(){
29
+        return INSTANCE;
30
+    }
31
+}

+ 18
- 0
src/test/java/io/zipcoder/interfaces/TestInstructors.java Dosyayı Görüntüle

@@ -0,0 +1,18 @@
1
+package io.zipcoder.interfaces;
2
+
3
+import org.junit.Assert;
4
+import org.junit.Test;
5
+
6
+public class TestInstructors {
7
+
8
+    Instructors instructors = Instructors.getInstance();
9
+
10
+    @Test
11
+    public void testSize(){
12
+
13
+        int expected = 6;
14
+        int actual = instructors.instructorsList.size();
15
+
16
+        Assert.assertEquals(expected, actual);
17
+    }
18
+}

+ 132
- 0
src/test/java/io/zipcoder/interfaces/TestPeople.java Dosyayı Görüntüle

@@ -0,0 +1,132 @@
1
+package io.zipcoder.interfaces;
2
+
3
+import org.junit.Assert;
4
+import org.junit.Test;
5
+
6
+import java.util.ArrayList;
7
+
8
+public class TestPeople {
9
+
10
+//    public ArrayList<Person> buildPersonArray(){
11
+//        People people = new People();
12
+//        Person William = new Person(0, "William");
13
+//        Person James = new Person(1, "James");
14
+//        Person Alex = new Person(2, "Alex");
15
+//        Person Stephanie = new Person(3, "Stephanie");
16
+//
17
+//        people.personList.add(William);
18
+//        people.personList.add(James);
19
+//        people.personList.add(Alex);
20
+//        people.personList.add(Stephanie);
21
+//
22
+//        return people.personList;
23
+//    }
24
+
25
+    @Test
26
+    public void testAdd(){
27
+        People people = new People();
28
+        Person William = new Person(1, "William");
29
+
30
+        people.personList.add(William);
31
+
32
+        int expected = 1;
33
+        int actual = people.getCount();
34
+
35
+        Assert.assertEquals(expected,actual);
36
+    }
37
+
38
+    @Test
39
+    public void testRemoveByPerson(){
40
+        People people = new People();
41
+        Person William = new Person(0, "William");
42
+        Person James = new Person(1, "James");
43
+        Person Alex = new Person(2, "Alex");
44
+        Person Stephanie = new Person(3, "Stephanie");
45
+
46
+        people.personList.add(William);
47
+        people.personList.add(James);
48
+        people.personList.add(Alex);
49
+        people.personList.add(Stephanie);
50
+
51
+        people.personList.remove(William);
52
+
53
+        int expected = 3;
54
+        int actual = people.personList.size();
55
+
56
+        Assert.assertEquals(expected, actual);
57
+    }
58
+
59
+    @Test
60
+    public void testRemoveById(){
61
+        People people = new People();
62
+        Person William = new Person(1, "William");
63
+        Person James = new Person(2, "James");
64
+        Person Alex = new Person(24, "Alex");
65
+        Person Stephanie = new Person(32, "Stephanie");
66
+
67
+        people.personList.add(William);
68
+        people.personList.add(James);
69
+        people.personList.add(Alex);
70
+        people.personList.add(Stephanie);
71
+
72
+        people.removeId(32);
73
+
74
+        int expected = 3;
75
+        int actual = people.personList.size();
76
+
77
+        Assert.assertEquals(expected, actual);
78
+        Assert.assertFalse(people.personList.contains(Stephanie));
79
+    }
80
+
81
+    @Test
82
+    public void testFindById(){
83
+        People people = new People();
84
+        Person William = new Person(0, "William");
85
+        Person James = new Person(1, "James");
86
+        Person Alex = new Person(2, "Alex");
87
+        Person Stephanie = new Person(3, "Stephanie");
88
+
89
+        people.personList.add(William);
90
+        people.personList.add(James);
91
+        people.personList.add(Alex);
92
+        people.personList.add(Stephanie);
93
+
94
+        Person expected = William;
95
+        Person actual = people.findById(0);
96
+
97
+        Assert.assertEquals(expected, actual);
98
+    }
99
+
100
+    @Test
101
+    public void testGetArray(){
102
+        People people = new People();
103
+
104
+        ArrayList<Person> PersonList = people.getPersonList();
105
+
106
+        int expected = 0;
107
+        int actual = people.personList.size();
108
+
109
+        Assert.assertEquals(expected, actual);
110
+    }
111
+
112
+    @Test
113
+    public void testRemoveAll(){
114
+        People people = new People();
115
+        Person William = new Person(0, "William");
116
+        Person James = new Person(1, "James");
117
+        Person Alex = new Person(2, "Alex");
118
+        Person Stephanie = new Person(3, "Stephanie");
119
+
120
+        people.personList.add(William);
121
+        people.personList.add(James);
122
+        people.personList.add(Alex);
123
+        people.personList.add(Stephanie);
124
+
125
+        people.removeAll();
126
+
127
+        int expected = 0;
128
+        int actual = people.personList.size();
129
+
130
+        Assert.assertEquals(expected, actual);
131
+    }
132
+}

+ 18
- 0
src/test/java/io/zipcoder/interfaces/TestStudents.java Dosyayı Görüntüle

@@ -0,0 +1,18 @@
1
+package io.zipcoder.interfaces;
2
+
3
+import org.junit.Assert;
4
+import org.junit.Test;
5
+
6
+public class TestStudents {
7
+
8
+    Students students = Students.getInstance();
9
+
10
+    @Test
11
+    public void testSize(){
12
+
13
+        int expected = 39;
14
+        int actual = students.studentList.size();
15
+
16
+        Assert.assertEquals(expected, actual);
17
+    }
18
+}

+ 35
- 0
src/test/java/io/zipcoder/interfaces/TestZipCodeWilmington.java Dosyayı Görüntüle

@@ -0,0 +1,35 @@
1
+package io.zipcoder.interfaces;
2
+
3
+import org.junit.Assert;
4
+import org.junit.Test;
5
+
6
+public class TestZipCodeWilmington {
7
+
8
+    ZipCodeWilmington zipCode = ZipCodeWilmington.getInstance();
9
+
10
+
11
+    @Test
12
+    public void testHostLectureID(){
13
+        Student William = zipCode.students.studentList.get(38);
14
+
15
+        zipCode.hostLecture(3, 39);
16
+
17
+        double expected = 1;
18
+        double actual = William.totalStudyTime;
19
+
20
+        Assert.assertEquals(expected, actual, 0);
21
+    }
22
+
23
+    @Test
24
+    public void testHostLecture(){
25
+        Student William = zipCode.students.studentList.get(38);
26
+        Instructor leon = zipCode.instructors.instructorsList.get(3);
27
+
28
+        zipCode.hostLecture(leon, 39);
29
+
30
+        double expected = 2;
31
+        double actual = William.totalStudyTime;
32
+
33
+        Assert.assertEquals(expected, actual, 0);
34
+    }
35
+}