浏览代码

Rolled back to before 10 becuase I broke everything; now reaching step 10 again

NedRedmond 6 年前
父节点
当前提交
3cbeb9cbaf

+ 138
- 206
.idea/workspace.xml 查看文件

2
 <project version="4">
2
 <project version="4">
3
   <component name="ChangeListManager">
3
   <component name="ChangeListManager">
4
     <list default="true" id="8e76a78c-7b87-4795-997f-dbd651047f5b" name="Default Changelist" comment="">
4
     <list default="true" id="8e76a78c-7b87-4795-997f-dbd651047f5b" name="Default Changelist" comment="">
5
-      <change afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" />
6
-      <change afterPath="$PROJECT_DIR$/.idea/encodings.xml" afterDir="false" />
7
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__junit_junit_4_12.xml" afterDir="false" />
8
-      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml" afterDir="false" />
9
-      <change afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
10
-      <change afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
11
-      <change afterPath="$PROJECT_DIR$/.idea/vcs.xml" afterDir="false" />
12
-      <change afterPath="$PROJECT_DIR$/interfaces-1.iml" afterDir="false" />
13
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java" afterDir="false" />
14
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructors.java" afterDir="false" />
15
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Learner.java" afterDir="false" />
16
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java" afterDir="false" />
17
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java" afterDir="false" />
18
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java" afterDir="false" />
19
-      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java" afterDir="false" />
20
-      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/InstructorTest.java" afterDir="false" />
21
-      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/InstructorsTest.java" afterDir="false" />
22
-      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java" afterDir="false" />
23
-      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentsTest.java" afterDir="false" />
24
-      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestStudent.java" afterDir="false" />
25
-      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/ZipCodeWilmingtonTest.java" afterDir="false" />
26
-      <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" />
27
-      <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 afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/ZipCodeWilmington.java" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/ZipCodeWilmingtonTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/ZipCodeWilmingtonTest.java" afterDir="false" />
28
     </list>
7
     </list>
29
     <ignored path="$PROJECT_DIR$/target/" />
8
     <ignored path="$PROJECT_DIR$/target/" />
30
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
9
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
44
       <usages-collector id="statistics.file.extensions.open">
23
       <usages-collector id="statistics.file.extensions.open">
45
         <counts>
24
         <counts>
46
           <entry key="iml" value="1" />
25
           <entry key="iml" value="1" />
47
-          <entry key="java" value="18" />
26
+          <entry key="java" value="20" />
48
           <entry key="xml" value="1" />
27
           <entry key="xml" value="1" />
49
         </counts>
28
         </counts>
50
       </usages-collector>
29
       </usages-collector>
51
       <usages-collector id="statistics.file.types.open">
30
       <usages-collector id="statistics.file.types.open">
52
         <counts>
31
         <counts>
53
           <entry key="IDEA_MODULE" value="1" />
32
           <entry key="IDEA_MODULE" value="1" />
54
-          <entry key="JAVA" value="18" />
33
+          <entry key="JAVA" value="20" />
55
           <entry key="XML" value="1" />
34
           <entry key="XML" value="1" />
56
         </counts>
35
         </counts>
57
       </usages-collector>
36
       </usages-collector>
58
       <usages-collector id="statistics.file.extensions.edit">
37
       <usages-collector id="statistics.file.extensions.edit">
59
         <counts>
38
         <counts>
60
-          <entry key="java" value="5728" />
39
+          <entry key="java" value="6162" />
61
         </counts>
40
         </counts>
62
       </usages-collector>
41
       </usages-collector>
63
       <usages-collector id="statistics.file.types.edit">
42
       <usages-collector id="statistics.file.types.edit">
64
         <counts>
43
         <counts>
65
-          <entry key="JAVA" value="5728" />
44
+          <entry key="JAVA" value="6162" />
66
         </counts>
45
         </counts>
67
       </usages-collector>
46
       </usages-collector>
68
     </session>
47
     </session>
69
   </component>
48
   </component>
70
   <component name="FileEditorManager">
49
   <component name="FileEditorManager">
71
-    <leaf>
50
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
72
       <file pinned="false" current-in-tab="false">
51
       <file pinned="false" current-in-tab="false">
73
-        <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentsTest.java">
52
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java">
74
           <provider selected="true" editor-type-id="text-editor">
53
           <provider selected="true" editor-type-id="text-editor">
75
-            <state relative-caret-position="105">
76
-              <caret line="7" column="57" selection-start-line="7" selection-start-column="57" selection-end-line="7" selection-end-column="57" />
77
-              <folding>
78
-                <element signature="imports" expanded="true" />
79
-              </folding>
54
+            <state relative-caret-position="90">
55
+              <caret line="9" column="8" selection-start-line="9" selection-start-column="8" selection-end-line="9" selection-end-column="8" />
80
             </state>
56
             </state>
81
           </provider>
57
           </provider>
82
         </entry>
58
         </entry>
83
       </file>
59
       </file>
84
       <file pinned="false" current-in-tab="false">
60
       <file pinned="false" current-in-tab="false">
85
-        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java">
61
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java">
86
           <provider selected="true" editor-type-id="text-editor">
62
           <provider selected="true" editor-type-id="text-editor">
87
-            <state relative-caret-position="60">
88
-              <caret line="4" column="42" selection-start-line="4" selection-start-column="42" selection-end-line="4" selection-end-column="42" />
89
-              <folding>
90
-                <element signature="e#125#126#0" expanded="true" />
91
-                <element signature="e#150#151#0" expanded="true" />
92
-              </folding>
63
+            <state relative-caret-position="30">
64
+              <caret line="2" column="17" selection-start-line="2" selection-start-column="17" selection-end-line="2" selection-end-column="17" />
93
             </state>
65
             </state>
94
           </provider>
66
           </provider>
95
         </entry>
67
         </entry>
98
         <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java">
70
         <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java">
99
           <provider selected="true" editor-type-id="text-editor">
71
           <provider selected="true" editor-type-id="text-editor">
100
             <state relative-caret-position="135">
72
             <state relative-caret-position="135">
101
-              <caret line="9" column="36" lean-forward="true" selection-start-line="9" selection-start-column="36" selection-end-line="9" selection-end-column="36" />
102
-              <folding>
103
-                <element signature="e#197#198#0" expanded="true" />
104
-                <element signature="e#227#228#0" expanded="true" />
105
-              </folding>
73
+              <caret line="9" column="9" selection-start-line="9" selection-start-column="9" selection-end-line="9" selection-end-column="9" />
106
             </state>
74
             </state>
107
           </provider>
75
           </provider>
108
         </entry>
76
         </entry>
109
       </file>
77
       </file>
110
       <file pinned="false" current-in-tab="false">
78
       <file pinned="false" current-in-tab="false">
111
-        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructors.java">
79
+        <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentsTest.java">
112
           <provider selected="true" editor-type-id="text-editor">
80
           <provider selected="true" editor-type-id="text-editor">
113
-            <state relative-caret-position="195">
114
-              <caret line="13" column="44" selection-start-line="13" selection-start-column="44" selection-end-line="13" selection-end-column="44" />
81
+            <state relative-caret-position="90">
82
+              <caret line="7" column="57" selection-start-line="7" selection-start-column="57" selection-end-line="7" selection-end-column="57" />
83
+              <folding>
84
+                <element signature="imports" expanded="true" />
85
+              </folding>
115
             </state>
86
             </state>
116
           </provider>
87
           </provider>
117
         </entry>
88
         </entry>
118
       </file>
89
       </file>
119
       <file pinned="false" current-in-tab="false">
90
       <file pinned="false" current-in-tab="false">
120
-        <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/InstructorsTest.java">
91
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructors.java">
121
           <provider selected="true" editor-type-id="text-editor">
92
           <provider selected="true" editor-type-id="text-editor">
122
-            <state relative-caret-position="165">
123
-              <caret line="12" column="24" selection-start-line="12" selection-start-column="24" selection-end-line="12" selection-end-column="24" />
93
+            <state relative-caret-position="240">
94
+              <caret line="17" column="11" selection-start-line="17" selection-start-column="11" selection-end-line="17" selection-end-column="11" />
124
             </state>
95
             </state>
125
           </provider>
96
           </provider>
126
         </entry>
97
         </entry>
127
       </file>
98
       </file>
128
-      <file pinned="false" current-in-tab="true">
99
+      <file pinned="false" current-in-tab="false">
129
         <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/ZipCodeWilmingtonTest.java">
100
         <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/ZipCodeWilmingtonTest.java">
130
           <provider selected="true" editor-type-id="text-editor">
101
           <provider selected="true" editor-type-id="text-editor">
131
-            <state relative-caret-position="240">
132
-              <caret line="16" column="48" lean-forward="true" selection-start-line="16" selection-start-column="48" selection-end-line="16" selection-end-column="48" />
102
+            <state relative-caret-position="150">
103
+              <caret line="10" selection-start-line="10" selection-end-line="10" />
133
               <folding>
104
               <folding>
134
                 <element signature="imports" expanded="true" />
105
                 <element signature="imports" expanded="true" />
135
               </folding>
106
               </folding>
138
         </entry>
109
         </entry>
139
       </file>
110
       </file>
140
       <file pinned="false" current-in-tab="false">
111
       <file pinned="false" current-in-tab="false">
141
-        <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestStudent.java">
112
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/ZipCodeWilmington.java">
142
           <provider selected="true" editor-type-id="text-editor">
113
           <provider selected="true" editor-type-id="text-editor">
143
-            <state relative-caret-position="315">
144
-              <caret line="25" column="15" selection-start-line="25" selection-end-line="26" />
145
-              <folding>
146
-                <marker date="1541270715088" expanded="true" signature="135:199" ph="..." />
147
-              </folding>
114
+            <state relative-caret-position="45">
115
+              <caret line="3" column="13" selection-start-line="3" selection-start-column="13" selection-end-line="3" selection-end-column="13" />
148
             </state>
116
             </state>
149
           </provider>
117
           </provider>
150
         </entry>
118
         </entry>
151
       </file>
119
       </file>
152
       <file pinned="false" current-in-tab="false">
120
       <file pinned="false" current-in-tab="false">
153
-        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java">
121
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java">
154
           <provider selected="true" editor-type-id="text-editor">
122
           <provider selected="true" editor-type-id="text-editor">
155
-            <state relative-caret-position="570">
156
-              <caret line="38" column="41" selection-start-line="38" selection-start-column="41" selection-end-line="38" selection-end-column="41" />
157
-              <folding>
158
-                <element signature="e#164#172#0" expanded="true" />
159
-                <element signature="e#203#204#0" expanded="true" />
160
-                <element signature="e#228#229#0" expanded="true" />
161
-                <element signature="e#279#280#0" expanded="true" />
162
-                <element signature="e#304#305#0" expanded="true" />
163
-                <element signature="e#331#332#0" expanded="true" />
164
-                <element signature="e#356#357#0" expanded="true" />
165
-                <element signature="e#433#434#0" expanded="true" />
166
-                <element signature="e#458#459#0" expanded="true" />
167
-                <element signature="e#786#787#0" expanded="true" />
168
-                <element signature="e#829#830#0" expanded="true" />
169
-                <element signature="e#882#883#0" expanded="true" />
170
-                <element signature="e#916#917#0" expanded="true" />
171
-              </folding>
123
+            <state relative-caret-position="30">
124
+              <caret line="2" column="35" selection-start-line="2" selection-start-column="35" selection-end-line="2" selection-end-column="35" />
172
             </state>
125
             </state>
173
           </provider>
126
           </provider>
174
         </entry>
127
         </entry>
175
       </file>
128
       </file>
176
-      <file pinned="false" current-in-tab="false">
177
-        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java">
129
+      <file pinned="false" current-in-tab="true">
130
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java">
178
           <provider selected="true" editor-type-id="text-editor">
131
           <provider selected="true" editor-type-id="text-editor">
179
-            <state relative-caret-position="180">
180
-              <caret line="12" selection-start-line="12" selection-end-line="12" />
132
+            <state relative-caret-position="195">
133
+              <caret line="13" column="20" selection-start-line="13" selection-start-column="20" selection-end-line="13" selection-end-column="20" />
181
               <folding>
134
               <folding>
182
-                <element signature="e#147#148#0" expanded="true" />
183
-                <element signature="e#172#173#0" expanded="true" />
184
-                <element signature="e#216#217#0" expanded="true" />
185
-                <element signature="e#300#301#0" expanded="true" />
186
-                <element signature="e#337#338#0" expanded="true" />
135
+                <element signature="e#225#226#0" expanded="true" />
136
+                <element signature="e#253#254#0" expanded="true" />
187
               </folding>
137
               </folding>
188
             </state>
138
             </state>
189
           </provider>
139
           </provider>
190
         </entry>
140
         </entry>
191
       </file>
141
       </file>
192
       <file pinned="false" current-in-tab="false">
142
       <file pinned="false" current-in-tab="false">
193
-        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java">
143
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java">
194
           <provider selected="true" editor-type-id="text-editor">
144
           <provider selected="true" editor-type-id="text-editor">
195
-            <state relative-caret-position="210">
196
-              <caret line="14" column="5" selection-start-line="14" selection-start-column="5" selection-end-line="14" selection-end-column="5" />
197
-              <folding>
198
-                <element signature="e#191#192#0" expanded="true" />
199
-                <element signature="e#219#220#0" expanded="true" />
200
-                <element signature="e#104#105#0" expanded="true" />
201
-                <element signature="e#129#130#0" expanded="true" />
202
-                <element signature="e#182#183#0" expanded="true" />
203
-                <element signature="e#209#210#0" expanded="true" />
204
-                <element signature="e#249#250#0" expanded="true" />
205
-                <element signature="e#281#282#0" expanded="true" />
206
-              </folding>
145
+            <state relative-caret-position="420">
146
+              <caret line="35" column="5" selection-start-line="35" selection-start-column="5" selection-end-line="35" selection-end-column="5" />
207
             </state>
147
             </state>
208
           </provider>
148
           </provider>
209
         </entry>
149
         </entry>
245
         <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/InstructorsTest.java" />
185
         <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/InstructorsTest.java" />
246
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructors.java" />
186
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructors.java" />
247
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java" />
187
         <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java" />
188
+        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/ZipCodeWilmington.java" />
248
         <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/ZipCodeWilmingtonTest.java" />
189
         <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/ZipCodeWilmingtonTest.java" />
249
       </list>
190
       </list>
250
     </option>
191
     </option>
272
       <foldersAlwaysOnTop value="true" />
213
       <foldersAlwaysOnTop value="true" />
273
     </navigator>
214
     </navigator>
274
     <panes>
215
     <panes>
216
+      <pane id="Scope" />
275
       <pane id="ProjectPane">
217
       <pane id="ProjectPane">
276
         <subPane>
218
         <subPane>
277
           <expand>
219
           <expand>
330
           <select />
272
           <select />
331
         </subPane>
273
         </subPane>
332
       </pane>
274
       </pane>
333
-      <pane id="Scope" />
334
       <pane id="PackagesPane" />
275
       <pane id="PackagesPane" />
335
     </panes>
276
     </panes>
336
   </component>
277
   </component>
337
   <component name="PropertiesComponent">
278
   <component name="PropertiesComponent">
338
     <property name="WebServerToolWindowFactoryState" value="false" />
279
     <property name="WebServerToolWindowFactoryState" value="false" />
339
     <property name="aspect.path.notification.shown" value="true" />
280
     <property name="aspect.path.notification.shown" value="true" />
340
-    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1541277209799" />
281
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1541426832861" />
341
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
282
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
342
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
283
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
343
     <property name="project.structure.last.edited" value="Modules" />
284
     <property name="project.structure.last.edited" value="Modules" />
362
       </list>
303
       </list>
363
     </option>
304
     </option>
364
   </component>
305
   </component>
365
-  <component name="RunManager" selected="JUnit.InstructorsTest.testSingletonInstance">
306
+  <component name="RunManager" selected="JUnit.ZipCodeWilmingtonTest.testHostLecture">
366
     <configuration name="InstructorsTest.testInitializationSetupInstructors" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
307
     <configuration name="InstructorsTest.testInitializationSetupInstructors" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
367
       <module name="interfaces-1" />
308
       <module name="interfaces-1" />
368
       <extension name="coverage">
309
       <extension name="coverage">
395
         <option name="Make" enabled="true" />
336
         <option name="Make" enabled="true" />
396
       </method>
337
       </method>
397
     </configuration>
338
     </configuration>
398
-    <configuration name="PeopleTest.testRemoveAll" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
339
+    <configuration name="StudentsTest.testInitializationSetupStudents" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
399
       <module name="interfaces-1" />
340
       <module name="interfaces-1" />
400
       <extension name="coverage">
341
       <extension name="coverage">
401
         <pattern>
342
         <pattern>
404
         </pattern>
345
         </pattern>
405
       </extension>
346
       </extension>
406
       <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
347
       <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
407
-      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.PeopleTest" />
408
-      <option name="METHOD_NAME" value="testRemoveAll" />
348
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.StudentsTest" />
349
+      <option name="METHOD_NAME" value="testInitializationSetupStudents" />
409
       <option name="TEST_OBJECT" value="method" />
350
       <option name="TEST_OBJECT" value="method" />
410
       <method v="2">
351
       <method v="2">
411
         <option name="Make" enabled="true" />
352
         <option name="Make" enabled="true" />
412
       </method>
353
       </method>
413
     </configuration>
354
     </configuration>
414
-    <configuration name="StudentsTest.testInitializationSetupStudents" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
355
+    <configuration name="StudentsTest.testSingletonInstance" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
415
       <module name="interfaces-1" />
356
       <module name="interfaces-1" />
416
       <extension name="coverage">
357
       <extension name="coverage">
417
         <pattern>
358
         <pattern>
421
       </extension>
362
       </extension>
422
       <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
363
       <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
423
       <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.StudentsTest" />
364
       <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.StudentsTest" />
424
-      <option name="METHOD_NAME" value="testInitializationSetupStudents" />
365
+      <option name="METHOD_NAME" value="testSingletonInstance" />
425
       <option name="TEST_OBJECT" value="method" />
366
       <option name="TEST_OBJECT" value="method" />
426
       <method v="2">
367
       <method v="2">
427
         <option name="Make" enabled="true" />
368
         <option name="Make" enabled="true" />
428
       </method>
369
       </method>
429
     </configuration>
370
     </configuration>
430
-    <configuration name="StudentsTest.testSingletonInstance" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
371
+    <configuration name="ZipCodeWilmingtonTest.testHostLecture" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
431
       <module name="interfaces-1" />
372
       <module name="interfaces-1" />
432
       <extension name="coverage">
373
       <extension name="coverage">
433
         <pattern>
374
         <pattern>
436
         </pattern>
377
         </pattern>
437
       </extension>
378
       </extension>
438
       <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
379
       <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
439
-      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.StudentsTest" />
440
-      <option name="METHOD_NAME" value="testSingletonInstance" />
380
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.ZipCodeWilmingtonTest" />
381
+      <option name="METHOD_NAME" value="testHostLecture" />
441
       <option name="TEST_OBJECT" value="method" />
382
       <option name="TEST_OBJECT" value="method" />
442
       <method v="2">
383
       <method v="2">
443
         <option name="Make" enabled="true" />
384
         <option name="Make" enabled="true" />
444
       </method>
385
       </method>
445
     </configuration>
386
     </configuration>
446
     <list>
387
     <list>
447
-      <item itemvalue="JUnit.PeopleTest.testRemoveAll" />
448
       <item itemvalue="JUnit.StudentsTest.testSingletonInstance" />
388
       <item itemvalue="JUnit.StudentsTest.testSingletonInstance" />
449
       <item itemvalue="JUnit.StudentsTest.testInitializationSetupStudents" />
389
       <item itemvalue="JUnit.StudentsTest.testInitializationSetupStudents" />
450
       <item itemvalue="JUnit.InstructorsTest.testSingletonInstance" />
390
       <item itemvalue="JUnit.InstructorsTest.testSingletonInstance" />
451
       <item itemvalue="JUnit.InstructorsTest.testInitializationSetupInstructors" />
391
       <item itemvalue="JUnit.InstructorsTest.testInitializationSetupInstructors" />
392
+      <item itemvalue="JUnit.ZipCodeWilmingtonTest.testHostLecture" />
452
     </list>
393
     </list>
453
     <recent_temporary>
394
     <recent_temporary>
454
       <list>
395
       <list>
396
+        <item itemvalue="JUnit.ZipCodeWilmingtonTest.testHostLecture" />
455
         <item itemvalue="JUnit.InstructorsTest.testSingletonInstance" />
397
         <item itemvalue="JUnit.InstructorsTest.testSingletonInstance" />
456
         <item itemvalue="JUnit.InstructorsTest.testInitializationSetupInstructors" />
398
         <item itemvalue="JUnit.InstructorsTest.testInitializationSetupInstructors" />
457
         <item itemvalue="JUnit.StudentsTest.testInitializationSetupStudents" />
399
         <item itemvalue="JUnit.StudentsTest.testInitializationSetupStudents" />
458
         <item itemvalue="JUnit.StudentsTest.testSingletonInstance" />
400
         <item itemvalue="JUnit.StudentsTest.testSingletonInstance" />
459
-        <item itemvalue="JUnit.PeopleTest.testRemoveAll" />
460
       </list>
401
       </list>
461
     </recent_temporary>
402
     </recent_temporary>
462
   </component>
403
   </component>
507
     </history-entry>
448
     </history-entry>
508
   </component>
449
   </component>
509
   <component name="TimeTrackingManager">
450
   <component name="TimeTrackingManager">
510
-    <option name="totallyTimeSpent" value="14351000" />
451
+    <option name="totallyTimeSpent" value="15183000" />
511
   </component>
452
   </component>
512
   <component name="ToolWindowManager">
453
   <component name="ToolWindowManager">
513
-    <frame x="0" y="0" width="1440" height="900" extended-state="6" />
454
+    <frame x="0" y="0" width="1440" height="900" extended-state="0" />
514
     <editor active="true" />
455
     <editor active="true" />
515
     <layout>
456
     <layout>
516
       <window_info id="Image Layers" order="0" />
457
       <window_info id="Image Layers" order="0" />
518
       <window_info id="UI Designer" order="2" />
459
       <window_info id="UI Designer" order="2" />
519
       <window_info id="Learn" order="3" />
460
       <window_info id="Learn" order="3" />
520
       <window_info id="Capture Tool" order="4" />
461
       <window_info id="Capture Tool" order="4" />
521
-      <window_info active="true" content_ui="combo" id="Project" order="5" visible="true" weight="0.24964234" />
462
+      <window_info active="true" content_ui="combo" id="Project" order="5" visible="true" weight="0.2532189" />
522
       <window_info id="Structure" order="6" side_tool="true" weight="0.25" />
463
       <window_info id="Structure" order="6" side_tool="true" weight="0.25" />
523
       <window_info id="Favorites" order="7" side_tool="true" />
464
       <window_info id="Favorites" order="7" side_tool="true" />
524
       <window_info anchor="bottom" id="Terminal" order="0" />
465
       <window_info anchor="bottom" id="Terminal" order="0" />
543
       <window_info anchor="right" id="Ant Build" order="7" weight="0.25" />
484
       <window_info anchor="right" id="Ant Build" order="7" weight="0.25" />
544
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="8" weight="0.25" />
485
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="8" weight="0.25" />
545
     </layout>
486
     </layout>
487
+    <layout-to-restore>
488
+      <window_info id="Image Layers" order="0" />
489
+      <window_info id="Designer" order="1" />
490
+      <window_info id="UI Designer" order="2" />
491
+      <window_info id="Learn" order="3" />
492
+      <window_info id="Capture Tool" order="4" />
493
+      <window_info content_ui="combo" id="Project" order="5" visible="true" weight="0.24964234" />
494
+      <window_info id="Structure" order="6" side_tool="true" weight="0.25" />
495
+      <window_info id="Favorites" order="7" side_tool="true" />
496
+      <window_info anchor="bottom" id="Terminal" order="0" />
497
+      <window_info anchor="bottom" id="Event Log" order="1" side_tool="true" />
498
+      <window_info anchor="bottom" id="Database Changes" order="2" show_stripe_button="false" />
499
+      <window_info anchor="bottom" id="Version Control" order="3" show_stripe_button="false" />
500
+      <window_info anchor="bottom" id="Message" order="4" />
501
+      <window_info anchor="bottom" id="Find" order="5" />
502
+      <window_info anchor="bottom" id="Run" order="6" weight="0.32891566" />
503
+      <window_info anchor="bottom" id="Debug" order="7" weight="0.4" />
504
+      <window_info active="true" anchor="bottom" id="Messages" order="8" visible="true" weight="0.32891566" />
505
+      <window_info anchor="bottom" id="Cvs" order="9" weight="0.25" />
506
+      <window_info anchor="bottom" id="Inspection" order="10" weight="0.4" />
507
+      <window_info anchor="bottom" id="TODO" order="11" />
508
+      <window_info anchor="right" id="Capture Analysis" order="0" />
509
+      <window_info anchor="right" id="Theme Preview" order="1" />
510
+      <window_info anchor="right" id="Database" order="2" />
511
+      <window_info anchor="right" id="Palette&#9;" order="3" />
512
+      <window_info anchor="right" id="Maven Projects" order="4" />
513
+      <window_info anchor="right" id="Palette" order="5" />
514
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="6" type="SLIDING" weight="0.4" />
515
+      <window_info anchor="right" id="Ant Build" order="7" weight="0.25" />
516
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="8" weight="0.25" />
517
+    </layout-to-restore>
546
   </component>
518
   </component>
547
   <component name="TypeScriptGeneratedFilesManager">
519
   <component name="TypeScriptGeneratedFilesManager">
548
     <option name="version" value="1" />
520
     <option name="version" value="1" />
568
         </state>
540
         </state>
569
       </provider>
541
       </provider>
570
     </entry>
542
     </entry>
571
-    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/Teacher.java">
572
-      <provider selected="true" editor-type-id="text-editor">
573
-        <state relative-caret-position="30">
574
-          <caret line="2" column="23" selection-start-line="2" selection-start-column="23" selection-end-line="2" selection-end-column="23" />
575
-        </state>
576
-      </provider>
577
-    </entry>
578
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java">
579
-      <provider selected="true" editor-type-id="text-editor">
580
-        <state relative-caret-position="135">
581
-          <caret line="9" lean-forward="true" selection-start-line="9" selection-end-line="9" />
582
-        </state>
583
-      </provider>
584
-    </entry>
543
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/Teacher.java" />
585
     <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/InstructorTest.java">
544
     <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/InstructorTest.java">
586
       <provider selected="true" editor-type-id="text-editor">
545
       <provider selected="true" editor-type-id="text-editor">
587
         <state relative-caret-position="255">
546
         <state relative-caret-position="255">
614
     </entry>
573
     </entry>
615
     <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java">
574
     <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/PeopleTest.java">
616
       <provider selected="true" editor-type-id="text-editor">
575
       <provider selected="true" editor-type-id="text-editor">
617
-        <state relative-caret-position="360">
618
-          <caret line="113" column="49" selection-start-line="113" selection-start-column="49" selection-end-line="113" selection-end-column="49" />
576
+        <state relative-caret-position="165">
577
+          <caret line="13" selection-start-line="13" selection-end-line="13" />
619
           <folding>
578
           <folding>
620
             <element signature="imports" expanded="true" />
579
             <element signature="imports" expanded="true" />
621
-            <element signature="e#184#185#0" expanded="true" />
622
-            <element signature="e#219#220#0" expanded="true" />
623
-          </folding>
624
-        </state>
625
-      </provider>
626
-    </entry>
627
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java">
628
-      <provider selected="true" editor-type-id="text-editor">
629
-        <state relative-caret-position="210">
630
-          <caret line="14" column="5" selection-start-line="14" selection-start-column="5" selection-end-line="14" selection-end-column="5" />
631
-          <folding>
632
-            <element signature="e#191#192#0" expanded="true" />
633
-            <element signature="e#219#220#0" expanded="true" />
634
-            <element signature="e#104#105#0" expanded="true" />
635
-            <element signature="e#129#130#0" expanded="true" />
636
-            <element signature="e#182#183#0" expanded="true" />
637
-            <element signature="e#209#210#0" expanded="true" />
638
-            <element signature="e#249#250#0" expanded="true" />
639
-            <element signature="e#281#282#0" expanded="true" />
640
           </folding>
580
           </folding>
641
         </state>
581
         </state>
642
       </provider>
582
       </provider>
643
     </entry>
583
     </entry>
644
     <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentsTest.java">
584
     <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentsTest.java">
645
       <provider selected="true" editor-type-id="text-editor">
585
       <provider selected="true" editor-type-id="text-editor">
646
-        <state relative-caret-position="105">
586
+        <state relative-caret-position="90">
647
           <caret line="7" column="57" selection-start-line="7" selection-start-column="57" selection-end-line="7" selection-end-column="57" />
587
           <caret line="7" column="57" selection-start-line="7" selection-start-column="57" selection-end-line="7" selection-end-column="57" />
648
           <folding>
588
           <folding>
649
             <element signature="imports" expanded="true" />
589
             <element signature="imports" expanded="true" />
651
         </state>
591
         </state>
652
       </provider>
592
       </provider>
653
     </entry>
593
     </entry>
654
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java">
655
-      <provider selected="true" editor-type-id="text-editor">
656
-        <state relative-caret-position="60">
657
-          <caret line="4" column="42" selection-start-line="4" selection-start-column="42" selection-end-line="4" selection-end-column="42" />
658
-          <folding>
659
-            <element signature="e#125#126#0" expanded="true" />
660
-            <element signature="e#150#151#0" expanded="true" />
661
-          </folding>
662
-        </state>
663
-      </provider>
664
-    </entry>
665
     <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructors.java">
594
     <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructors.java">
666
       <provider selected="true" editor-type-id="text-editor">
595
       <provider selected="true" editor-type-id="text-editor">
667
-        <state relative-caret-position="195">
668
-          <caret line="13" column="44" selection-start-line="13" selection-start-column="44" selection-end-line="13" selection-end-column="44" />
596
+        <state relative-caret-position="240">
597
+          <caret line="17" column="11" selection-start-line="17" selection-start-column="11" selection-end-line="17" selection-end-column="11" />
669
         </state>
598
         </state>
670
       </provider>
599
       </provider>
671
     </entry>
600
     </entry>
679
     <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java">
608
     <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Students.java">
680
       <provider selected="true" editor-type-id="text-editor">
609
       <provider selected="true" editor-type-id="text-editor">
681
         <state relative-caret-position="135">
610
         <state relative-caret-position="135">
682
-          <caret line="9" column="36" lean-forward="true" selection-start-line="9" selection-start-column="36" selection-end-line="9" selection-end-column="36" />
683
-          <folding>
684
-            <element signature="e#197#198#0" expanded="true" />
685
-            <element signature="e#227#228#0" expanded="true" />
686
-          </folding>
611
+          <caret line="9" column="9" selection-start-line="9" selection-start-column="9" selection-end-line="9" selection-end-column="9" />
612
+        </state>
613
+      </provider>
614
+    </entry>
615
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java">
616
+      <provider selected="true" editor-type-id="text-editor">
617
+        <state relative-caret-position="420">
618
+          <caret line="35" column="5" selection-start-line="35" selection-start-column="5" selection-end-line="35" selection-end-column="5" />
619
+        </state>
620
+      </provider>
621
+    </entry>
622
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestStudent.java">
623
+      <provider selected="true" editor-type-id="text-editor">
624
+        <state relative-caret-position="315">
625
+          <caret line="25" column="15" selection-start-line="25" selection-end-line="26" />
626
+        </state>
627
+      </provider>
628
+    </entry>
629
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java">
630
+      <provider selected="true" editor-type-id="text-editor">
631
+        <state relative-caret-position="30">
632
+          <caret line="2" column="17" selection-start-line="2" selection-start-column="17" selection-end-line="2" selection-end-column="17" />
687
         </state>
633
         </state>
688
       </provider>
634
       </provider>
689
     </entry>
635
     </entry>
690
     <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java">
636
     <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java">
691
       <provider selected="true" editor-type-id="text-editor">
637
       <provider selected="true" editor-type-id="text-editor">
692
-        <state relative-caret-position="180">
693
-          <caret line="12" selection-start-line="12" selection-end-line="12" />
694
-          <folding>
695
-            <element signature="e#147#148#0" expanded="true" />
696
-            <element signature="e#172#173#0" expanded="true" />
697
-            <element signature="e#216#217#0" expanded="true" />
698
-            <element signature="e#300#301#0" expanded="true" />
699
-            <element signature="e#337#338#0" expanded="true" />
700
-          </folding>
638
+        <state relative-caret-position="30">
639
+          <caret line="2" column="35" selection-start-line="2" selection-start-column="35" selection-end-line="2" selection-end-column="35" />
701
         </state>
640
         </state>
702
       </provider>
641
       </provider>
703
     </entry>
642
     </entry>
704
-    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/People.java">
643
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java">
705
       <provider selected="true" editor-type-id="text-editor">
644
       <provider selected="true" editor-type-id="text-editor">
706
-        <state relative-caret-position="570">
707
-          <caret line="38" column="41" selection-start-line="38" selection-start-column="41" selection-end-line="38" selection-end-column="41" />
708
-          <folding>
709
-            <element signature="e#164#172#0" expanded="true" />
710
-            <element signature="e#203#204#0" expanded="true" />
711
-            <element signature="e#228#229#0" expanded="true" />
712
-            <element signature="e#279#280#0" expanded="true" />
713
-            <element signature="e#304#305#0" expanded="true" />
714
-            <element signature="e#331#332#0" expanded="true" />
715
-            <element signature="e#356#357#0" expanded="true" />
716
-            <element signature="e#433#434#0" expanded="true" />
717
-            <element signature="e#458#459#0" expanded="true" />
718
-            <element signature="e#786#787#0" expanded="true" />
719
-            <element signature="e#829#830#0" expanded="true" />
720
-            <element signature="e#882#883#0" expanded="true" />
721
-            <element signature="e#916#917#0" expanded="true" />
722
-          </folding>
645
+        <state relative-caret-position="90">
646
+          <caret line="9" column="8" selection-start-line="9" selection-start-column="8" selection-end-line="9" selection-end-column="8" />
723
         </state>
647
         </state>
724
       </provider>
648
       </provider>
725
     </entry>
649
     </entry>
726
-    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestStudent.java">
650
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/ZipCodeWilmington.java">
727
       <provider selected="true" editor-type-id="text-editor">
651
       <provider selected="true" editor-type-id="text-editor">
728
-        <state relative-caret-position="315">
729
-          <caret line="25" column="15" selection-start-line="25" selection-end-line="26" />
730
-          <folding>
731
-            <marker date="1541270715088" expanded="true" signature="135:199" ph="..." />
732
-          </folding>
652
+        <state relative-caret-position="45">
653
+          <caret line="3" column="13" selection-start-line="3" selection-start-column="13" selection-end-line="3" selection-end-column="13" />
733
         </state>
654
         </state>
734
       </provider>
655
       </provider>
735
     </entry>
656
     </entry>
736
     <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/ZipCodeWilmingtonTest.java">
657
     <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/ZipCodeWilmingtonTest.java">
737
       <provider selected="true" editor-type-id="text-editor">
658
       <provider selected="true" editor-type-id="text-editor">
738
-        <state relative-caret-position="240">
739
-          <caret line="16" column="48" lean-forward="true" selection-start-line="16" selection-start-column="48" selection-end-line="16" selection-end-column="48" />
659
+        <state relative-caret-position="150">
660
+          <caret line="10" selection-start-line="10" selection-end-line="10" />
740
           <folding>
661
           <folding>
741
             <element signature="imports" expanded="true" />
662
             <element signature="imports" expanded="true" />
742
           </folding>
663
           </folding>
743
         </state>
664
         </state>
744
       </provider>
665
       </provider>
745
     </entry>
666
     </entry>
667
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java">
668
+      <provider selected="true" editor-type-id="text-editor">
669
+        <state relative-caret-position="195">
670
+          <caret line="13" column="20" selection-start-line="13" selection-start-column="20" selection-end-line="13" selection-end-column="20" />
671
+          <folding>
672
+            <element signature="e#225#226#0" expanded="true" />
673
+            <element signature="e#253#254#0" expanded="true" />
674
+          </folding>
675
+        </state>
676
+      </provider>
677
+    </entry>
746
   </component>
678
   </component>
747
   <component name="masterDetails">
679
   <component name="masterDetails">
748
     <states>
680
     <states>

+ 20
- 0
src/main/java/io/zipcoder/interfaces/ZipCodeWilmington.java 查看文件

1
+package io.zipcoder.interfaces;
2
+
3
+public enum ZipCodeWilmington {
4
+    INSTANCE;
5
+
6
+    Students students = Students.getInstance();
7
+    Instructors instructors = Instructors.getInstance();
8
+
9
+    public void hostLecture(Teacher teacher, double numberOfHours) {
10
+        Student[] studentsArray = (Student[]) students.studentList.getArray();
11
+        teacher.lecture(studentsArray, numberOfHours);
12
+    }
13
+
14
+    public void hostLecture(long id, double numberOfHours) {
15
+        Student[] studentsArray = (Student[]) students.studentList.getArray();
16
+        Teacher teacher = (Teacher) instructors.instructorList.findByID(id);
17
+        teacher.lecture(studentsArray, numberOfHours);
18
+    }
19
+
20
+}

+ 6
- 5
src/test/java/io/zipcoder/interfaces/ZipCodeWilmingtonTest.java 查看文件

7
 
7
 
8
     @Test
8
     @Test
9
     public void testHostLecture() {
9
     public void testHostLecture() {
10
-        Students students = Students.getInstance();
11
-        Student[] studentListArray = (Student[]) students.studentList.getArray();
10
+        ZipCodeWilmington zcw = ZipCodeWilmington.INSTANCE;
11
+        Student[] studentsArray = (Student[]) zcw.students.studentList.getArray();
12
+        Instructor[] instructorsArray = (Instructor[]) zcw.instructors.instructorList.getArray();
12
 
13
 
13
-        double before = studentListArray[0].getTotalStudyTime();
14
-        ZipCodeWilmington.hostLecture(1, students.studentList);
15
-        double after = studentListArray[0].getTotalStudyTime();
14
+        double before = studentsArray[0].getTotalStudyTime();
15
+        zcw.hostLecture(instructorsArray[0], 1);
16
+        double after = studentsArray[0].getTotalStudyTime();
16
 
17
 
17
         Assert.assertTrue(after-before == 1/39);
18
         Assert.assertTrue(after-before == 1/39);
18
     }
19
     }