Yesoda Sanka 6 gadus atpakaļ
vecāks
revīzija
41abba4e55

+ 219
- 100
.idea/workspace.xml Parādīt failu

2
 <project version="4">
2
 <project version="4">
3
   <component name="ChangeListManager">
3
   <component name="ChangeListManager">
4
     <list default="true" id="5f6232a3-651f-43e2-bfa7-23e343c01de2" name="Default Changelist" comment="">
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
     </list>
9
     </list>
20
     <ignored path="$PROJECT_DIR$/target/" />
10
     <ignored path="$PROJECT_DIR$/target/" />
21
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
11
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
28
     <session id="276411177">
18
     <session id="276411177">
29
       <usages-collector id="statistics.lifecycle.project">
19
       <usages-collector id="statistics.lifecycle.project">
30
         <counts>
20
         <counts>
31
-          <entry key="project.closed" value="2" />
21
+          <entry key="project.closed" value="3" />
32
           <entry key="project.open.time.14" value="1" />
22
           <entry key="project.open.time.14" value="1" />
33
           <entry key="project.open.time.2" value="1" />
23
           <entry key="project.open.time.2" value="1" />
34
           <entry key="project.open.time.3" value="1" />
24
           <entry key="project.open.time.3" value="1" />
25
+          <entry key="project.open.time.4" value="1" />
35
           <entry key="project.open.time.52" value="1" />
26
           <entry key="project.open.time.52" value="1" />
36
-          <entry key="project.opened" value="4" />
27
+          <entry key="project.opened" value="5" />
37
         </counts>
28
         </counts>
38
       </usages-collector>
29
       </usages-collector>
39
       <usages-collector id="statistics.file.extensions.open">
30
       <usages-collector id="statistics.file.extensions.open">
40
         <counts>
31
         <counts>
41
-          <entry key="java" value="21" />
32
+          <entry key="java" value="22" />
42
           <entry key="md" value="2" />
33
           <entry key="md" value="2" />
43
         </counts>
34
         </counts>
44
       </usages-collector>
35
       </usages-collector>
45
       <usages-collector id="statistics.file.types.open">
36
       <usages-collector id="statistics.file.types.open">
46
         <counts>
37
         <counts>
47
-          <entry key="JAVA" value="21" />
38
+          <entry key="JAVA" value="22" />
48
           <entry key="Markdown" value="2" />
39
           <entry key="Markdown" value="2" />
49
         </counts>
40
         </counts>
50
       </usages-collector>
41
       </usages-collector>
51
       <usages-collector id="statistics.file.extensions.edit">
42
       <usages-collector id="statistics.file.extensions.edit">
52
         <counts>
43
         <counts>
53
           <entry key="dummy" value="14" />
44
           <entry key="dummy" value="14" />
54
-          <entry key="java" value="3492" />
45
+          <entry key="java" value="3686" />
55
           <entry key="md" value="1" />
46
           <entry key="md" value="1" />
56
         </counts>
47
         </counts>
57
       </usages-collector>
48
       </usages-collector>
58
       <usages-collector id="statistics.file.types.edit">
49
       <usages-collector id="statistics.file.types.edit">
59
         <counts>
50
         <counts>
60
-          <entry key="JAVA" value="3492" />
51
+          <entry key="JAVA" value="3686" />
61
           <entry key="Markdown" value="1" />
52
           <entry key="Markdown" value="1" />
62
           <entry key="PLAIN_TEXT" value="14" />
53
           <entry key="PLAIN_TEXT" value="14" />
63
         </counts>
54
         </counts>
67
   <component name="FileEditorManager">
58
   <component name="FileEditorManager">
68
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
59
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
69
       <file pinned="false" current-in-tab="false">
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
           <provider selected="true" editor-type-id="text-editor">
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
             </state>
68
             </state>
75
           </provider>
69
           </provider>
76
         </entry>
70
         </entry>
77
       </file>
71
       </file>
78
       <file pinned="false" current-in-tab="true">
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
           <provider selected="true" editor-type-id="text-editor">
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
               <folding>
77
               <folding>
84
                 <element signature="imports" expanded="true" />
78
                 <element signature="imports" expanded="true" />
85
               </folding>
79
               </folding>
99
       <file pinned="false" current-in-tab="false">
93
       <file pinned="false" current-in-tab="false">
100
         <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java">
94
         <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java">
101
           <provider selected="true" editor-type-id="text-editor">
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
             </state>
98
             </state>
105
           </provider>
99
           </provider>
106
         </entry>
100
         </entry>
118
         <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentTest.java">
112
         <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentTest.java">
119
           <provider selected="true" editor-type-id="text-editor">
113
           <provider selected="true" editor-type-id="text-editor">
120
             <state relative-caret-position="312">
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
             </state>
116
             </state>
123
           </provider>
117
           </provider>
124
         </entry>
118
         </entry>
128
           <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
122
           <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
129
             <state split_layout="FIRST">
123
             <state split_layout="FIRST">
130
               <first_editor relative-caret-position="58">
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
               </first_editor>
126
               </first_editor>
133
               <second_editor />
127
               <second_editor />
134
             </state>
128
             </state>
138
       <file pinned="false" current-in-tab="false">
132
       <file pinned="false" current-in-tab="false">
139
         <entry file="file://$PROJECT_DIR$/src/test/java/StudentsTest.java">
133
         <entry file="file://$PROJECT_DIR$/src/test/java/StudentsTest.java">
140
           <provider selected="true" editor-type-id="text-editor">
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
               <folding>
137
               <folding>
144
                 <element signature="imports" expanded="true" />
138
                 <element signature="imports" expanded="true" />
145
               </folding>
139
               </folding>
165
           <provider selected="true" editor-type-id="text-editor">
159
           <provider selected="true" editor-type-id="text-editor">
166
             <state relative-caret-position="150">
160
             <state relative-caret-position="150">
167
               <caret line="10" column="36" selection-start-line="10" selection-start-column="30" selection-end-line="10" selection-end-column="36" />
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
             </state>
162
             </state>
173
           </provider>
163
           </provider>
174
         </entry>
164
         </entry>
196
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java" />
186
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java" />
197
         <option value="$PROJECT_DIR$/src/test/java/PeopleTest.java" />
187
         <option value="$PROJECT_DIR$/src/test/java/PeopleTest.java" />
198
         <option value="$PROJECT_DIR$/README.md" />
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
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java" />
189
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java" />
202
         <option value="$PROJECT_DIR$/src/test/java/StudentsTest.java" />
190
         <option value="$PROJECT_DIR$/src/test/java/StudentsTest.java" />
203
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java" />
191
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java" />
204
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java" />
192
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java" />
205
-        <option value="$PROJECT_DIR$/src/test/java/InstructorTest.java" />
206
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java" />
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
       </list>
197
       </list>
208
     </option>
198
     </option>
209
   </component>
199
   </component>
225
     </navigator>
215
     </navigator>
226
     <panes>
216
     <panes>
227
       <pane id="Scope" />
217
       <pane id="Scope" />
228
-      <pane id="PackagesPane" />
229
       <pane id="ProjectPane">
218
       <pane id="ProjectPane">
230
         <subPane>
219
         <subPane>
231
           <expand>
220
           <expand>
284
           <select />
273
           <select />
285
         </subPane>
274
         </subPane>
286
       </pane>
275
       </pane>
276
+      <pane id="PackagesPane" />
287
     </panes>
277
     </panes>
288
   </component>
278
   </component>
289
   <component name="PropertiesComponent">
279
   <component name="PropertiesComponent">
290
     <property name="WebServerToolWindowFactoryState" value="false" />
280
     <property name="WebServerToolWindowFactoryState" value="false" />
291
     <property name="aspect.path.notification.shown" value="true" />
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
     <property name="last_directory_selection" value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces" />
283
     <property name="last_directory_selection" value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces" />
294
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
284
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
295
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
285
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
308
       </list>
298
       </list>
309
     </option>
299
     </option>
310
   </component>
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
     <configuration name="PeopleTest.testFindById" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
332
     <configuration name="PeopleTest.testFindById" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
313
       <module name="interfaces-1" />
333
       <module name="interfaces-1" />
314
       <extension name="coverage">
334
       <extension name="coverage">
325
         <option name="Make" enabled="true" />
345
         <option name="Make" enabled="true" />
326
       </method>
346
       </method>
327
     </configuration>
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
     <recent_temporary>
387
     <recent_temporary>
329
       <list>
388
       <list>
330
         <item itemvalue="JUnit.PeopleTest.testFindById" />
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
       </list>
394
       </list>
332
     </recent_temporary>
395
     </recent_temporary>
333
   </component>
396
   </component>
344
       <workItem from="1541193725370" duration="7522000" />
407
       <workItem from="1541193725370" duration="7522000" />
345
       <workItem from="1541212363048" duration="5772000" />
408
       <workItem from="1541212363048" duration="5772000" />
346
       <workItem from="1541253792019" duration="54000" />
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
     </task>
412
     </task>
349
     <servers />
413
     <servers />
350
   </component>
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
   <component name="TimeTrackingManager">
447
   <component name="TimeTrackingManager">
352
-    <option name="totallyTimeSpent" value="29349000" />
448
+    <option name="totallyTimeSpent" value="30723000" />
353
   </component>
449
   </component>
354
   <component name="ToolWindowManager">
450
   <component name="ToolWindowManager">
355
     <frame x="0" y="23" width="1280" height="709" extended-state="0" />
451
     <frame x="0" y="23" width="1280" height="709" extended-state="0" />
363
       <window_info id="UI Designer" order="5" />
459
       <window_info id="UI Designer" order="5" />
364
       <window_info id="Learn" order="6" />
460
       <window_info id="Learn" order="6" />
365
       <window_info id="Favorites" order="7" side_tool="true" />
461
       <window_info id="Favorites" order="7" side_tool="true" />
366
-      <window_info anchor="bottom" id="Messages" weight="0.32901135" />
367
       <window_info anchor="bottom" id="Message" order="0" />
462
       <window_info anchor="bottom" id="Message" order="0" />
368
       <window_info anchor="bottom" id="Find" order="1" />
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
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
466
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
372
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
467
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
373
       <window_info anchor="bottom" id="TODO" order="6" />
468
       <window_info anchor="bottom" id="TODO" order="6" />
374
       <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
469
       <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
375
       <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
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
       <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
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
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
474
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
379
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
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
       <window_info anchor="right" id="Palette" order="3" />
477
       <window_info anchor="right" id="Palette" order="3" />
382
       <window_info anchor="right" id="Capture Analysis" order="4" />
478
       <window_info anchor="right" id="Capture Analysis" order="4" />
383
       <window_info anchor="right" id="Theme Preview" order="5" />
479
       <window_info anchor="right" id="Theme Preview" order="5" />
385
       <window_info anchor="right" id="Database" order="7" />
481
       <window_info anchor="right" id="Database" order="7" />
386
       <window_info anchor="right" id="Maven Projects" order="8" />
482
       <window_info anchor="right" id="Maven Projects" order="8" />
387
     </layout>
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
   </component>
515
   </component>
389
   <component name="TypeScriptGeneratedFilesManager">
516
   <component name="TypeScriptGeneratedFilesManager">
390
     <option name="version" value="1" />
517
     <option name="version" value="1" />
412
         </state>
539
         </state>
413
       </provider>
540
       </provider>
414
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
         </state>
546
         </state>
423
       </provider>
547
       </provider>
424
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
           <folding>
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
           </folding>
563
           </folding>
433
         </state>
564
         </state>
434
       </provider>
565
       </provider>
435
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
         </state>
571
         </state>
441
       </provider>
572
       </provider>
442
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
         </state>
581
         </state>
448
       </provider>
582
       </provider>
449
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
         </state>
591
         </state>
455
       </provider>
592
       </provider>
456
     </entry>
593
     </entry>
458
       <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
595
       <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
459
         <state split_layout="FIRST">
596
         <state split_layout="FIRST">
460
           <first_editor relative-caret-position="58">
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
           </first_editor>
599
           </first_editor>
463
           <second_editor />
600
           <second_editor />
464
         </state>
601
         </state>
465
       </provider>
602
       </provider>
466
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
         </state>
608
         </state>
476
       </provider>
609
       </provider>
477
     </entry>
610
     </entry>
482
         </state>
615
         </state>
483
       </provider>
616
       </provider>
484
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
         </state>
622
         </state>
500
       </provider>
623
       </provider>
501
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
         </state>
629
         </state>
511
       </provider>
630
       </provider>
512
     </entry>
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
       <provider selected="true" editor-type-id="text-editor">
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
           <folding>
636
           <folding>
518
             <element signature="imports" expanded="true" />
637
             <element signature="imports" expanded="true" />
519
           </folding>
638
           </folding>

+ 18
- 3
src/main/java/io/zipcoder/interfaces/People.java Parādīt failu

14
  */
14
  */
15
 
15
 
16
 
16
 
17
+//import jdk.internal.jline.internal.TestAccessible;
18
+
17
 import java.util.ArrayList;
19
 import java.util.ArrayList;
18
 
20
 
19
 public class People {
21
 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
   * `Person` object following the invokation of the `remove` method.
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
      for (Person p : personList) {
67
      for (Person p : personList) {
53
 
68
 

+ 1
- 1
src/test/java/InstructorTest.java Parādīt failu

53
     {
53
     {
54
         //Students students = Students.getInstance ();
54
         //Students students = Students.getInstance ();
55
         Instructor in=new Instructor() ;
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 Parādīt failu

31
   public void testRemoveByPerson()
31
   public void testRemoveByPerson()
32
   {
32
   {
33
       People pl=new People();
33
       People pl=new People();
34
-      Person p=new Person("John_1",1);
34
+      Person p=new Person("john_3",3);
35
       pl.addPerson(new Person("john_1", 1)) ;
35
       pl.addPerson(new Person("john_1", 1)) ;
36
       pl.addPerson(new Person("john_2", 2)) ;
36
       pl.addPerson(new Person("john_2", 2)) ;
37
       pl.addPerson(new Person("john_3", 3)) ;
37
       pl.addPerson(new Person("john_3", 3)) ;
41
       pl.addPerson(new Person("john_7", 7)) ;
41
       pl.addPerson(new Person("john_7", 7)) ;
42
       pl.addPerson(new Person("john_8", 8)) ;
42
       pl.addPerson(new Person("john_8", 8)) ;
43
 
43
 
44
-      pl.testRemoveByPerson(p) ;
44
+      pl.removeByPerson(p) ;
45
       Assert.assertEquals(7,pl.getCount() ) ;
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
    * * Create a `testFindById` method which ensures that a respective `Person` object with a respective `id`
68
    * * Create a `testFindById` method which ensures that a respective `Person` object with a respective `id`
49
    * field is returned upon invokation of the `findById` method on a respective `People` object.
69
    * field is returned upon invokation of the `findById` method on a respective `People` object.
53
     public void testFindById()
73
     public void testFindById()
54
     {
74
     {
55
         People pl=new People();
75
         People pl=new People();
56
-        Person expected=new Person("John_1",1);
76
+        Person expected=new Person("john_1",1);
57
         pl.addPerson(new Person("john_1", 1)) ;
77
         pl.addPerson(new Person("john_1", 1)) ;
58
         pl.addPerson(new Person("john_2", 2)) ;
78
         pl.addPerson(new Person("john_2", 2)) ;
59
         pl.addPerson(new Person("john_3", 3)) ;
79
         pl.addPerson(new Person("john_3", 3)) ;
64
         pl.addPerson(new Person("john_8", 8)) ;
84
         pl.addPerson(new Person("john_8", 8)) ;
65
 
85
 
66
         Person actualPerson = pl.findById(expected.getId() );
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