Yesoda Sanka 6 년 전
부모
커밋
41abba4e55
4개의 변경된 파일262개의 추가작업 그리고 108개의 파일을 삭제
  1. 219
    100
      .idea/workspace.xml
  2. 18
    3
      src/main/java/io/zipcoder/interfaces/People.java
  3. 1
    1
      src/test/java/InstructorTest.java
  4. 24
    4
      src/test/java/io/zipcoder/interfaces/PeopleTest.java

+ 219
- 100
.idea/workspace.xml 파일 보기

@@ -2,20 +2,10 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="5f6232a3-651f-43e2-bfa7-23e343c01de2" name="Default Changelist" comment="">
5
-      <change afterPath="$PROJECT_DIR$/.idea/uiDesigner.xml" afterDir="false" />
6
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java" afterDir="false" />
7
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Learner.java" afterDir="false" />
8
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java" afterDir="false" />
9
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java" afterDir="false" />
10
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java" afterDir="false" />
11
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java" afterDir="false" />
12
-      <change afterPath="$PROJECT_DIR$/src/test/java/InstructorTest.java" afterDir="false" />
13
-      <change afterPath="$PROJECT_DIR$/src/test/java/StudentsTest.java" afterDir="false" />
14
-      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java" afterDir="false" />
15
-      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentTest.java" afterDir="false" />
16
-      <change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
17
-      <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" />
18
-      <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" />
5
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/src/test/java/InstructorTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/InstructorTest.java" afterDir="false" />
8
+      <change beforePath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java" afterDir="false" />
19 9
     </list>
20 10
     <ignored path="$PROJECT_DIR$/target/" />
21 11
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -28,36 +18,37 @@
28 18
     <session id="276411177">
29 19
       <usages-collector id="statistics.lifecycle.project">
30 20
         <counts>
31
-          <entry key="project.closed" value="2" />
21
+          <entry key="project.closed" value="3" />
32 22
           <entry key="project.open.time.14" value="1" />
33 23
           <entry key="project.open.time.2" value="1" />
34 24
           <entry key="project.open.time.3" value="1" />
25
+          <entry key="project.open.time.4" value="1" />
35 26
           <entry key="project.open.time.52" value="1" />
36
-          <entry key="project.opened" value="4" />
27
+          <entry key="project.opened" value="5" />
37 28
         </counts>
38 29
       </usages-collector>
39 30
       <usages-collector id="statistics.file.extensions.open">
40 31
         <counts>
41
-          <entry key="java" value="21" />
32
+          <entry key="java" value="22" />
42 33
           <entry key="md" value="2" />
43 34
         </counts>
44 35
       </usages-collector>
45 36
       <usages-collector id="statistics.file.types.open">
46 37
         <counts>
47
-          <entry key="JAVA" value="21" />
38
+          <entry key="JAVA" value="22" />
48 39
           <entry key="Markdown" value="2" />
49 40
         </counts>
50 41
       </usages-collector>
51 42
       <usages-collector id="statistics.file.extensions.edit">
52 43
         <counts>
53 44
           <entry key="dummy" value="14" />
54
-          <entry key="java" value="3492" />
45
+          <entry key="java" value="3686" />
55 46
           <entry key="md" value="1" />
56 47
         </counts>
57 48
       </usages-collector>
58 49
       <usages-collector id="statistics.file.types.edit">
59 50
         <counts>
60
-          <entry key="JAVA" value="3492" />
51
+          <entry key="JAVA" value="3686" />
61 52
           <entry key="Markdown" value="1" />
62 53
           <entry key="PLAIN_TEXT" value="14" />
63 54
         </counts>
@@ -67,19 +58,22 @@
67 58
   <component name="FileEditorManager">
68 59
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
69 60
       <file pinned="false" current-in-tab="false">
70
-        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java">
61
+        <entry file="file://$PROJECT_DIR$/src/test/java/InstructorTest.java">
71 62
           <provider selected="true" editor-type-id="text-editor">
72
-            <state relative-caret-position="192">
73
-              <caret line="22" column="38" selection-start-line="22" selection-start-column="32" selection-end-line="22" selection-end-column="38" />
63
+            <state relative-caret-position="375">
64
+              <caret line="25" column="3" lean-forward="true" selection-start-line="25" selection-start-column="3" selection-end-line="25" selection-end-column="3" />
65
+              <folding>
66
+                <element signature="imports" expanded="true" />
67
+              </folding>
74 68
             </state>
75 69
           </provider>
76 70
         </entry>
77 71
       </file>
78 72
       <file pinned="false" current-in-tab="true">
79
-        <entry file="file://$PROJECT_DIR$/src/test/java/InstructorTest.java">
73
+        <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java">
80 74
           <provider selected="true" editor-type-id="text-editor">
81
-            <state relative-caret-position="432">
82
-              <caret line="55" column="29" selection-start-line="55" selection-start-column="21" selection-end-line="55" selection-end-column="29" />
75
+            <state relative-caret-position="106">
76
+              <caret line="75" column="37" selection-start-line="75" selection-start-column="37" selection-end-line="75" selection-end-column="37" />
83 77
               <folding>
84 78
                 <element signature="imports" expanded="true" />
85 79
               </folding>
@@ -99,8 +93,8 @@
99 93
       <file pinned="false" current-in-tab="false">
100 94
         <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java">
101 95
           <provider selected="true" editor-type-id="text-editor">
102
-            <state relative-caret-position="85">
103
-              <caret line="18" column="13" selection-start-line="18" selection-start-column="13" selection-end-line="18" selection-end-column="13" />
96
+            <state relative-caret-position="38">
97
+              <caret line="83" column="25" selection-start-line="83" selection-start-column="15" selection-end-line="83" selection-end-column="25" />
104 98
             </state>
105 99
           </provider>
106 100
         </entry>
@@ -118,7 +112,7 @@
118 112
         <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentTest.java">
119 113
           <provider selected="true" editor-type-id="text-editor">
120 114
             <state relative-caret-position="312">
121
-              <caret line="22" lean-forward="true" selection-start-line="22" selection-end-line="22" />
115
+              <caret line="22" selection-start-line="22" selection-end-line="22" />
122 116
             </state>
123 117
           </provider>
124 118
         </entry>
@@ -128,7 +122,7 @@
128 122
           <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
129 123
             <state split_layout="FIRST">
130 124
               <first_editor relative-caret-position="58">
131
-                <caret line="56" lean-forward="true" selection-start-line="56" selection-end-line="56" />
125
+                <caret line="56" selection-start-line="56" selection-end-line="56" />
132 126
               </first_editor>
133 127
               <second_editor />
134 128
             </state>
@@ -138,8 +132,8 @@
138 132
       <file pinned="false" current-in-tab="false">
139 133
         <entry file="file://$PROJECT_DIR$/src/test/java/StudentsTest.java">
140 134
           <provider selected="true" editor-type-id="text-editor">
141
-            <state relative-caret-position="419">
142
-              <caret line="29" column="42" selection-start-line="29" selection-start-column="31" selection-end-line="29" selection-end-column="42" />
135
+            <state relative-caret-position="122">
136
+              <caret line="28" selection-start-line="28" selection-end-line="28" />
143 137
               <folding>
144 138
                 <element signature="imports" expanded="true" />
145 139
               </folding>
@@ -165,10 +159,6 @@
165 159
           <provider selected="true" editor-type-id="text-editor">
166 160
             <state relative-caret-position="150">
167 161
               <caret line="10" column="36" selection-start-line="10" selection-start-column="30" selection-end-line="10" selection-end-column="36" />
168
-              <folding>
169
-                <element signature="e#166#167#0" expanded="true" />
170
-                <element signature="e#200#201#0" expanded="true" />
171
-              </folding>
172 162
             </state>
173 163
           </provider>
174 164
         </entry>
@@ -196,14 +186,14 @@
196 186
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java" />
197 187
         <option value="$PROJECT_DIR$/src/test/java/PeopleTest.java" />
198 188
         <option value="$PROJECT_DIR$/README.md" />
199
-        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java" />
200
-        <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java" />
201 189
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java" />
202 190
         <option value="$PROJECT_DIR$/src/test/java/StudentsTest.java" />
203 191
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java" />
204 192
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java" />
205
-        <option value="$PROJECT_DIR$/src/test/java/InstructorTest.java" />
206 193
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java" />
194
+        <option value="$PROJECT_DIR$/src/test/java/InstructorTest.java" />
195
+        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java" />
196
+        <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java" />
207 197
       </list>
208 198
     </option>
209 199
   </component>
@@ -225,7 +215,6 @@
225 215
     </navigator>
226 216
     <panes>
227 217
       <pane id="Scope" />
228
-      <pane id="PackagesPane" />
229 218
       <pane id="ProjectPane">
230 219
         <subPane>
231 220
           <expand>
@@ -284,12 +273,13 @@
284 273
           <select />
285 274
         </subPane>
286 275
       </pane>
276
+      <pane id="PackagesPane" />
287 277
     </panes>
288 278
   </component>
289 279
   <component name="PropertiesComponent">
290 280
     <property name="WebServerToolWindowFactoryState" value="false" />
291 281
     <property name="aspect.path.notification.shown" value="true" />
292
-    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1541392027729" />
282
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1541395170253" />
293 283
     <property name="last_directory_selection" value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces" />
294 284
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
295 285
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
@@ -308,7 +298,37 @@
308 298
       </list>
309 299
     </option>
310 300
   </component>
311
-  <component name="RunManager">
301
+  <component name="RunManager" selected="JUnit.PeopleTest.testFindById">
302
+    <configuration name="PeopleTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
303
+      <module name="interfaces-1" />
304
+      <extension name="coverage">
305
+        <pattern>
306
+          <option name="PATTERN" value="io.zipcoder.interfaces.*" />
307
+          <option name="ENABLED" value="true" />
308
+        </pattern>
309
+      </extension>
310
+      <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
311
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.PeopleTest" />
312
+      <method v="2">
313
+        <option name="Make" enabled="true" />
314
+      </method>
315
+    </configuration>
316
+    <configuration name="PeopleTest.testAdd" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
317
+      <module name="interfaces-1" />
318
+      <extension name="coverage">
319
+        <pattern>
320
+          <option name="PATTERN" value="io.zipcoder.interfaces.*" />
321
+          <option name="ENABLED" value="true" />
322
+        </pattern>
323
+      </extension>
324
+      <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
325
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.PeopleTest" />
326
+      <option name="METHOD_NAME" value="testAdd" />
327
+      <option name="TEST_OBJECT" value="method" />
328
+      <method v="2">
329
+        <option name="Make" enabled="true" />
330
+      </method>
331
+    </configuration>
312 332
     <configuration name="PeopleTest.testFindById" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
313 333
       <module name="interfaces-1" />
314 334
       <extension name="coverage">
@@ -325,9 +345,52 @@
325 345
         <option name="Make" enabled="true" />
326 346
       </method>
327 347
     </configuration>
348
+    <configuration name="PeopleTest.testRemoveByID" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
349
+      <module name="interfaces-1" />
350
+      <extension name="coverage">
351
+        <pattern>
352
+          <option name="PATTERN" value="io.zipcoder.interfaces.*" />
353
+          <option name="ENABLED" value="true" />
354
+        </pattern>
355
+      </extension>
356
+      <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
357
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.PeopleTest" />
358
+      <option name="METHOD_NAME" value="testRemoveByID" />
359
+      <option name="TEST_OBJECT" value="method" />
360
+      <method v="2">
361
+        <option name="Make" enabled="true" />
362
+      </method>
363
+    </configuration>
364
+    <configuration name="PeopleTest.testRemoveByPerson" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
365
+      <module name="interfaces-1" />
366
+      <extension name="coverage">
367
+        <pattern>
368
+          <option name="PATTERN" value="io.zipcoder.interfaces.*" />
369
+          <option name="ENABLED" value="true" />
370
+        </pattern>
371
+      </extension>
372
+      <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
373
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.PeopleTest" />
374
+      <option name="METHOD_NAME" value="testRemoveByPerson" />
375
+      <option name="TEST_OBJECT" value="method" />
376
+      <method v="2">
377
+        <option name="Make" enabled="true" />
378
+      </method>
379
+    </configuration>
380
+    <list>
381
+      <item itemvalue="JUnit.PeopleTest" />
382
+      <item itemvalue="JUnit.PeopleTest.testRemoveByPerson" />
383
+      <item itemvalue="JUnit.PeopleTest.testRemoveByID" />
384
+      <item itemvalue="JUnit.PeopleTest.testFindById" />
385
+      <item itemvalue="JUnit.PeopleTest.testAdd" />
386
+    </list>
328 387
     <recent_temporary>
329 388
       <list>
330 389
         <item itemvalue="JUnit.PeopleTest.testFindById" />
390
+        <item itemvalue="JUnit.PeopleTest" />
391
+        <item itemvalue="JUnit.PeopleTest.testAdd" />
392
+        <item itemvalue="JUnit.PeopleTest.testRemoveByID" />
393
+        <item itemvalue="JUnit.PeopleTest.testRemoveByPerson" />
331 394
       </list>
332 395
     </recent_temporary>
333 396
   </component>
@@ -344,12 +407,45 @@
344 407
       <workItem from="1541193725370" duration="7522000" />
345 408
       <workItem from="1541212363048" duration="5772000" />
346 409
       <workItem from="1541253792019" duration="54000" />
347
-      <workItem from="1541375456843" duration="16001000" />
410
+      <workItem from="1541375456843" duration="16112000" />
411
+      <workItem from="1541393905784" duration="1263000" />
348 412
     </task>
349 413
     <servers />
350 414
   </component>
415
+  <component name="TestHistory">
416
+    <history-entry file="PeopleTest_testRemoveByPerson - 2018.11.05 at 00h 02m 06s.xml">
417
+      <configuration name="PeopleTest.testRemoveByPerson" configurationId="JUnit" />
418
+    </history-entry>
419
+    <history-entry file="PeopleTest_testRemoveByPerson - 2018.11.05 at 00h 03m 58s.xml">
420
+      <configuration name="PeopleTest.testRemoveByPerson" configurationId="JUnit" />
421
+    </history-entry>
422
+    <history-entry file="PeopleTest_testRemoveByPerson - 2018.11.05 at 00h 05m 19s.xml">
423
+      <configuration name="PeopleTest.testRemoveByPerson" configurationId="JUnit" />
424
+    </history-entry>
425
+    <history-entry file="PeopleTest_testRemoveByPerson - 2018.11.05 at 00h 05m 56s.xml">
426
+      <configuration name="PeopleTest.testRemoveByPerson" configurationId="JUnit" />
427
+    </history-entry>
428
+    <history-entry file="PeopleTest_testRemoveByPerson - 2018.11.05 at 00h 06m 15s.xml">
429
+      <configuration name="PeopleTest.testRemoveByPerson" configurationId="JUnit" />
430
+    </history-entry>
431
+    <history-entry file="PeopleTest_testRemoveByPerson - 2018.11.05 at 00h 06m 36s.xml">
432
+      <configuration name="PeopleTest.testRemoveByPerson" configurationId="JUnit" />
433
+    </history-entry>
434
+    <history-entry file="PeopleTest_testRemoveByPerson - 2018.11.05 at 00h 08m 19s.xml">
435
+      <configuration name="PeopleTest.testRemoveByPerson" configurationId="JUnit" />
436
+    </history-entry>
437
+    <history-entry file="PeopleTest_testRemoveByPerson - 2018.11.05 at 00h 09m 30s.xml">
438
+      <configuration name="PeopleTest.testRemoveByPerson" configurationId="JUnit" />
439
+    </history-entry>
440
+    <history-entry file="PeopleTest_testRemoveByPerson - 2018.11.05 at 00h 10m 29s.xml">
441
+      <configuration name="PeopleTest.testRemoveByPerson" configurationId="JUnit" />
442
+    </history-entry>
443
+    <history-entry file="PeopleTest - 2018.11.05 at 00h 18m 46s.xml">
444
+      <configuration name="PeopleTest" configurationId="JUnit" />
445
+    </history-entry>
446
+  </component>
351 447
   <component name="TimeTrackingManager">
352
-    <option name="totallyTimeSpent" value="29349000" />
448
+    <option name="totallyTimeSpent" value="30723000" />
353 449
   </component>
354 450
   <component name="ToolWindowManager">
355 451
     <frame x="0" y="23" width="1280" height="709" extended-state="0" />
@@ -363,21 +459,21 @@
363 459
       <window_info id="UI Designer" order="5" />
364 460
       <window_info id="Learn" order="6" />
365 461
       <window_info id="Favorites" order="7" side_tool="true" />
366
-      <window_info anchor="bottom" id="Messages" weight="0.32901135" />
367 462
       <window_info anchor="bottom" id="Message" order="0" />
368 463
       <window_info anchor="bottom" id="Find" order="1" />
369
-      <window_info anchor="bottom" id="Run" order="2" />
370
-      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
464
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32901135" />
465
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.3987034" />
371 466
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
372 467
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
373 468
       <window_info anchor="bottom" id="TODO" order="6" />
374 469
       <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
375 470
       <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
376
-      <window_info anchor="bottom" id="Terminal" order="9" />
471
+      <window_info anchor="bottom" id="Terminal" order="9" weight="0.32901135" />
377 472
       <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
473
+      <window_info anchor="bottom" id="Messages" order="11" weight="0.32901135" />
378 474
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
379 475
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
380
-      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
476
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.24959612" />
381 477
       <window_info anchor="right" id="Palette" order="3" />
382 478
       <window_info anchor="right" id="Capture Analysis" order="4" />
383 479
       <window_info anchor="right" id="Theme Preview" order="5" />
@@ -385,6 +481,37 @@
385 481
       <window_info anchor="right" id="Database" order="7" />
386 482
       <window_info anchor="right" id="Maven Projects" order="8" />
387 483
     </layout>
484
+    <layout-to-restore>
485
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.26171243" />
486
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
487
+      <window_info id="Designer" order="2" />
488
+      <window_info id="Image Layers" order="3" />
489
+      <window_info id="Capture Tool" order="4" />
490
+      <window_info id="UI Designer" order="5" />
491
+      <window_info id="Learn" order="6" />
492
+      <window_info id="Favorites" order="7" side_tool="true" />
493
+      <window_info anchor="bottom" id="Message" order="0" />
494
+      <window_info anchor="bottom" id="Find" order="1" />
495
+      <window_info anchor="bottom" id="Run" order="2" visible="true" weight="0.32901135" />
496
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.3987034" />
497
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
498
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
499
+      <window_info anchor="bottom" id="TODO" order="6" />
500
+      <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
501
+      <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
502
+      <window_info anchor="bottom" id="Terminal" order="9" weight="0.32901135" />
503
+      <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
504
+      <window_info anchor="bottom" id="Messages" order="11" weight="0.32901135" />
505
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
506
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
507
+      <window_info active="true" anchor="right" content_ui="combo" id="Hierarchy" order="2" visible="true" weight="0.24959612" />
508
+      <window_info anchor="right" id="Palette" order="3" />
509
+      <window_info anchor="right" id="Capture Analysis" order="4" />
510
+      <window_info anchor="right" id="Theme Preview" order="5" />
511
+      <window_info anchor="right" id="Palette&#9;" order="6" />
512
+      <window_info anchor="right" id="Database" order="7" />
513
+      <window_info anchor="right" id="Maven Projects" order="8" />
514
+    </layout-to-restore>
388 515
   </component>
389 516
   <component name="TypeScriptGeneratedFilesManager">
390 517
     <option name="version" value="1" />
@@ -412,45 +539,55 @@
412 539
         </state>
413 540
       </provider>
414 541
     </entry>
415
-    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java">
542
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java">
416 543
       <provider selected="true" editor-type-id="text-editor">
417
-        <state relative-caret-position="447">
418
-          <caret line="107" column="44" selection-start-line="107" selection-start-column="44" selection-end-line="107" selection-end-column="44" />
419
-          <folding>
420
-            <element signature="imports" expanded="true" />
421
-          </folding>
544
+        <state relative-caret-position="162">
545
+          <caret line="16" column="17" selection-start-line="16" selection-start-column="11" selection-end-line="16" selection-end-column="17" />
422 546
         </state>
423 547
       </provider>
424 548
     </entry>
425
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java">
549
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java">
426 550
       <provider selected="true" editor-type-id="text-editor">
427
-        <state relative-caret-position="162">
428
-          <caret line="16" column="17" selection-start-line="16" selection-start-column="11" selection-end-line="16" selection-end-column="17" />
551
+        <state relative-caret-position="330">
552
+          <caret line="22" column="38" selection-start-line="22" selection-start-column="32" selection-end-line="22" selection-end-column="38" />
553
+        </state>
554
+      </provider>
555
+    </entry>
556
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java">
557
+      <provider selected="true" editor-type-id="text-editor">
558
+        <state relative-caret-position="300">
559
+          <caret line="20" column="20" selection-start-line="20" selection-start-column="13" selection-end-line="20" selection-end-column="20" />
429 560
           <folding>
430
-            <element signature="e#878#879#0" expanded="true" />
431
-            <element signature="e#906#907#0" expanded="true" />
561
+            <element signature="e#1181#1182#0" expanded="true" />
562
+            <element signature="e#1212#1213#0" expanded="true" />
432 563
           </folding>
433 564
         </state>
434 565
       </provider>
435 566
     </entry>
436
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java">
567
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java">
437 568
       <provider selected="true" editor-type-id="text-editor">
438
-        <state relative-caret-position="360">
439
-          <caret line="24" column="19" selection-start-line="24" selection-start-column="19" selection-end-line="24" selection-end-column="19" />
569
+        <state relative-caret-position="150">
570
+          <caret line="10" column="36" selection-start-line="10" selection-start-column="30" selection-end-line="10" selection-end-column="36" />
440 571
         </state>
441 572
       </provider>
442 573
     </entry>
443
-    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentTest.java">
574
+    <entry file="file://$PROJECT_DIR$/src/test/java/InstructorTest.java">
444 575
       <provider selected="true" editor-type-id="text-editor">
445
-        <state relative-caret-position="312">
446
-          <caret line="22" lean-forward="true" selection-start-line="22" selection-end-line="22" />
576
+        <state relative-caret-position="375">
577
+          <caret line="25" column="3" lean-forward="true" selection-start-line="25" selection-start-column="3" selection-end-line="25" selection-end-column="3" />
578
+          <folding>
579
+            <element signature="imports" expanded="true" />
580
+          </folding>
447 581
         </state>
448 582
       </provider>
449 583
     </entry>
450
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java">
584
+    <entry file="file://$PROJECT_DIR$/src/test/java/StudentsTest.java">
451 585
       <provider selected="true" editor-type-id="text-editor">
452
-        <state relative-caret-position="192">
453
-          <caret line="22" column="38" selection-start-line="22" selection-start-column="32" selection-end-line="22" selection-end-column="38" />
586
+        <state relative-caret-position="122">
587
+          <caret line="28" selection-start-line="28" selection-end-line="28" />
588
+          <folding>
589
+            <element signature="imports" expanded="true" />
590
+          </folding>
454 591
         </state>
455 592
       </provider>
456 593
     </entry>
@@ -458,20 +595,16 @@
458 595
       <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
459 596
         <state split_layout="FIRST">
460 597
           <first_editor relative-caret-position="58">
461
-            <caret line="56" lean-forward="true" selection-start-line="56" selection-end-line="56" />
598
+            <caret line="56" selection-start-line="56" selection-end-line="56" />
462 599
           </first_editor>
463 600
           <second_editor />
464 601
         </state>
465 602
       </provider>
466 603
     </entry>
467
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java">
604
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentTest.java">
468 605
       <provider selected="true" editor-type-id="text-editor">
469
-        <state relative-caret-position="300">
470
-          <caret line="20" column="20" selection-start-line="20" selection-start-column="13" selection-end-line="20" selection-end-column="20" />
471
-          <folding>
472
-            <element signature="e#1181#1182#0" expanded="true" />
473
-            <element signature="e#1212#1213#0" expanded="true" />
474
-          </folding>
606
+        <state relative-caret-position="312">
607
+          <caret line="22" selection-start-line="22" selection-end-line="22" />
475 608
         </state>
476 609
       </provider>
477 610
     </entry>
@@ -482,38 +615,24 @@
482 615
         </state>
483 616
       </provider>
484 617
     </entry>
485
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java">
486
-      <provider selected="true" editor-type-id="text-editor">
487
-        <state relative-caret-position="85">
488
-          <caret line="18" column="13" selection-start-line="18" selection-start-column="13" selection-end-line="18" selection-end-column="13" />
489
-        </state>
490
-      </provider>
491
-    </entry>
492
-    <entry file="file://$PROJECT_DIR$/src/test/java/StudentsTest.java">
618
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java">
493 619
       <provider selected="true" editor-type-id="text-editor">
494
-        <state relative-caret-position="419">
495
-          <caret line="29" column="42" selection-start-line="29" selection-start-column="31" selection-end-line="29" selection-end-column="42" />
496
-          <folding>
497
-            <element signature="imports" expanded="true" />
498
-          </folding>
620
+        <state relative-caret-position="360">
621
+          <caret line="24" column="19" selection-start-line="24" selection-start-column="19" selection-end-line="24" selection-end-column="19" />
499 622
         </state>
500 623
       </provider>
501 624
     </entry>
502
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java">
625
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java">
503 626
       <provider selected="true" editor-type-id="text-editor">
504
-        <state relative-caret-position="150">
505
-          <caret line="10" column="36" selection-start-line="10" selection-start-column="30" selection-end-line="10" selection-end-column="36" />
506
-          <folding>
507
-            <element signature="e#166#167#0" expanded="true" />
508
-            <element signature="e#200#201#0" expanded="true" />
509
-          </folding>
627
+        <state relative-caret-position="38">
628
+          <caret line="83" column="25" selection-start-line="83" selection-start-column="15" selection-end-line="83" selection-end-column="25" />
510 629
         </state>
511 630
       </provider>
512 631
     </entry>
513
-    <entry file="file://$PROJECT_DIR$/src/test/java/InstructorTest.java">
632
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java">
514 633
       <provider selected="true" editor-type-id="text-editor">
515
-        <state relative-caret-position="432">
516
-          <caret line="55" column="29" selection-start-line="55" selection-start-column="21" selection-end-line="55" selection-end-column="29" />
634
+        <state relative-caret-position="106">
635
+          <caret line="75" column="37" selection-start-line="75" selection-start-column="37" selection-end-line="75" selection-end-column="37" />
517 636
           <folding>
518 637
             <element signature="imports" expanded="true" />
519 638
           </folding>

+ 18
- 3
src/main/java/io/zipcoder/interfaces/People.java 파일 보기

@@ -14,6 +14,8 @@ package io.zipcoder.interfaces;
14 14
  */
15 15
 
16 16
 
17
+//import jdk.internal.jline.internal.TestAccessible;
18
+
17 19
 import java.util.ArrayList;
18 20
 
19 21
 public class People {
@@ -38,8 +40,20 @@ public class People {
38 40
 
39 41
  */
40 42
 
41
-    public void testRemoveByPerson(Person p) {
42
-            personList.remove(p);
43
+    public void removeByPerson(Person p) {
44
+            Boolean flag = false;
45
+            int i =0;
46
+
47
+        for (Person p1 : personList) {
48
+            i++;
49
+            if (p1.getId() == p.getId()) {
50
+
51
+                personList.remove(i);
52
+                break;
53
+            }
54
+
55
+        }
56
+            System.out.println("After removing the person updating size is - " +  "  " + personList.size());
43 57
     }
44 58
 
45 59
  /*
@@ -47,7 +61,8 @@ public class People {
47 61
   * `Person` object following the invokation of the `remove` method.
48 62
 
49 63
   */
50
- public void testRemoveById(long id) {
64
+
65
+ public void removeById(long id) {
51 66
 
52 67
      for (Person p : personList) {
53 68
 

+ 1
- 1
src/test/java/InstructorTest.java 파일 보기

@@ -53,6 +53,6 @@ public class InstructorTest {
53 53
     {
54 54
         //Students students = Students.getInstance ();
55 55
         Instructor in=new Instructor() ;
56
-        in.lecture(  Students.getInstance(), 100.0);
56
+        //in.lecture(  Students.getInstance(), 100.0);
57 57
     }
58 58
 }

+ 24
- 4
src/test/java/io/zipcoder/interfaces/PeopleTest.java 파일 보기

@@ -31,7 +31,7 @@ public class PeopleTest {
31 31
   public void testRemoveByPerson()
32 32
   {
33 33
       People pl=new People();
34
-      Person p=new Person("John_1",1);
34
+      Person p=new Person("john_3",3);
35 35
       pl.addPerson(new Person("john_1", 1)) ;
36 36
       pl.addPerson(new Person("john_2", 2)) ;
37 37
       pl.addPerson(new Person("john_3", 3)) ;
@@ -41,9 +41,29 @@ public class PeopleTest {
41 41
       pl.addPerson(new Person("john_7", 7)) ;
42 42
       pl.addPerson(new Person("john_8", 8)) ;
43 43
 
44
-      pl.testRemoveByPerson(p) ;
44
+      pl.removeByPerson(p) ;
45 45
       Assert.assertEquals(7,pl.getCount() ) ;
46 46
   }
47
+
48
+
49
+    @Test
50
+    public void testRemoveByID()
51
+    {
52
+        People pl=new People();
53
+        Person p=new Person("john_3",3);
54
+        pl.addPerson(new Person("john_1", 1)) ;
55
+        pl.addPerson(new Person("john_2", 2)) ;
56
+        pl.addPerson(new Person("john_3", 3)) ;
57
+        pl.addPerson(new Person("john_4", 4)) ;
58
+        pl.addPerson(new Person("john_5", 5)) ;
59
+        pl.addPerson(new Person("john_6", 6)) ;
60
+        pl.addPerson(new Person("john_7", 7)) ;
61
+        pl.addPerson(new Person("john_8", 8)) ;
62
+
63
+        pl.removeById(p.getId()) ;
64
+        Assert.assertEquals(7,pl.getCount() ) ;
65
+    }
66
+
47 67
   /*
48 68
    * * Create a `testFindById` method which ensures that a respective `Person` object with a respective `id`
49 69
    * field is returned upon invokation of the `findById` method on a respective `People` object.
@@ -53,7 +73,7 @@ public class PeopleTest {
53 73
     public void testFindById()
54 74
     {
55 75
         People pl=new People();
56
-        Person expected=new Person("John_1",1);
76
+        Person expected=new Person("john_1",1);
57 77
         pl.addPerson(new Person("john_1", 1)) ;
58 78
         pl.addPerson(new Person("john_2", 2)) ;
59 79
         pl.addPerson(new Person("john_3", 3)) ;
@@ -64,7 +84,7 @@ public class PeopleTest {
64 84
         pl.addPerson(new Person("john_8", 8)) ;
65 85
 
66 86
         Person actualPerson = pl.findById(expected.getId() );
67
-        Assert.assertEquals(expected,actualPerson  ) ;
87
+        Assert.assertEquals(expected.getId(),actualPerson.getId()  ) ;
68 88
 
69 89
     }
70 90