Browse Source

learner lab

Jose Bedolla 6 years ago
parent
commit
db7ab60b71

+ 1
- 0
.idea/.name View File

@@ -0,0 +1 @@
1
+interfaces-1

+ 16
- 0
.idea/compiler.xml View File

@@ -0,0 +1,16 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="CompilerConfiguration">
4
+    <annotationProcessing>
5
+      <profile name="Maven default annotation processors profile" enabled="true">
6
+        <sourceOutputDir name="target/generated-sources/annotations" />
7
+        <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
8
+        <outputRelativeToContentRoot value="true" />
9
+        <module name="interfaces-1" />
10
+      </profile>
11
+    </annotationProcessing>
12
+    <bytecodeTargetLevel>
13
+      <module name="interfaces-1" target="1.5" />
14
+    </bytecodeTargetLevel>
15
+  </component>
16
+</project>

+ 6
- 0
.idea/encodings.xml View File

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="Encoding">
4
+    <file url="file://$PROJECT_DIR$" charset="UTF-8" />
5
+  </component>
6
+</project>

+ 13
- 0
.idea/libraries/Maven__junit_junit_4_12.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: junit:junit:4.12">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml View File

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: org.hamcrest:hamcrest-core:1.3">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/misc.xml View File

@@ -0,0 +1,13 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="MavenProjectsManager">
4
+    <option name="originalFiles">
5
+      <list>
6
+        <option value="$PROJECT_DIR$/pom.xml" />
7
+      </list>
8
+    </option>
9
+  </component>
10
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
11
+    <output url="file://$PROJECT_DIR$/classes" />
12
+  </component>
13
+</project>

+ 8
- 0
.idea/modules.xml View File

@@ -0,0 +1,8 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ProjectModuleManager">
4
+    <modules>
5
+      <module fileurl="file://$PROJECT_DIR$/interfaces-1.iml" filepath="$PROJECT_DIR$/interfaces-1.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6
- 0
.idea/vcs.xml View File

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="VcsDirectoryMappings">
4
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
+  </component>
6
+</project>

+ 588
- 0
.idea/workspace.xml View File

@@ -0,0 +1,588 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="59970d75-ae38-4d76-a578-47a4a1299431" name="Default Changelist" comment="">
5
+      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Learner.java" afterDir="false" />
7
+      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java" afterDir="false" />
8
+      <change afterPath="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java" afterDir="false" />
9
+      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/InstructorTest.java" afterDir="false" />
10
+      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentTest.java" afterDir="false" />
11
+      <change afterPath="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPeople.java" afterDir="false" />
12
+      <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" />
13
+      <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" />
14
+    </list>
15
+    <ignored path="$PROJECT_DIR$/target/" />
16
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
17
+    <option name="SHOW_DIALOG" value="false" />
18
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
19
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
20
+    <option name="LAST_RESOLUTION" value="IGNORE" />
21
+  </component>
22
+  <component name="CoverageDataManager">
23
+    <SUITE FILE_PATH="coverage/interfaces_1$TestPerson_PersonTest.ic" NAME="TestPerson.PersonTest Coverage Results" MODIFIED="1541781720440" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false">
24
+      <FILTER>io.zipcoder.interfaces.*</FILTER>
25
+    </SUITE>
26
+    <SUITE FILE_PATH="coverage/interfaces_1$TestPerson_getIdTest.ic" NAME="TestPerson.getIdTest Coverage Results" MODIFIED="1541781868755" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false">
27
+      <FILTER>io.zipcoder.interfaces.*</FILTER>
28
+    </SUITE>
29
+    <SUITE FILE_PATH="coverage/interfaces_1$io_zipcoder_interfaces_in_interfaces_1.ic" NAME="io.zipcoder.interfaces in interfaces-1 Coverage Results" MODIFIED="1541797566897" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false">
30
+      <FILTER>io.zipcoder.interfaces.*</FILTER>
31
+    </SUITE>
32
+    <SUITE FILE_PATH="coverage/interfaces_1$TestPerson_setNameTest.ic" NAME="TestPerson.setNameTest Coverage Results" MODIFIED="1541782765207" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false">
33
+      <FILTER>io.zipcoder.interfaces.*</FILTER>
34
+    </SUITE>
35
+    <SUITE FILE_PATH="coverage/interfaces_1$TestPerson_personTest.ic" NAME="TestPerson.personTest Coverage Results" MODIFIED="1541787397741" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false">
36
+      <FILTER>io.zipcoder.interfaces.*</FILTER>
37
+    </SUITE>
38
+    <SUITE FILE_PATH="coverage/interfaces_1$TestPerson_getNameTest.ic" NAME="TestPerson.getNameTest Coverage Results" MODIFIED="1541782781797" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false">
39
+      <FILTER>io.zipcoder.interfaces.*</FILTER>
40
+    </SUITE>
41
+    <SUITE FILE_PATH="coverage/interfaces_1$TestPerson_getName.ic" NAME="TestPerson.getName Coverage Results" MODIFIED="1541782473280" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false">
42
+      <FILTER>io.zipcoder.interfaces.*</FILTER>
43
+    </SUITE>
44
+    <SUITE FILE_PATH="coverage/interfaces_1$TestPerson.ic" NAME="TestPerson Coverage Results" MODIFIED="1541787409441" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false">
45
+      <FILTER>io.zipcoder.interfaces.*</FILTER>
46
+    </SUITE>
47
+  </component>
48
+  <component name="CoverageOptionsProvider">
49
+    <option name="myAddOrReplace" value="0" />
50
+  </component>
51
+  <component name="CoverageViewManager">
52
+    <option name="myElementSize" value="153" />
53
+  </component>
54
+  <component name="FUSProjectUsageTrigger">
55
+    <session id="-925455908">
56
+      <usages-collector id="statistics.lifecycle.project">
57
+        <counts>
58
+          <entry key="project.closed" value="1" />
59
+          <entry key="project.open.time.11" value="1" />
60
+          <entry key="project.open.time.3" value="1" />
61
+          <entry key="project.opened" value="2" />
62
+        </counts>
63
+      </usages-collector>
64
+      <usages-collector id="statistics.file.extensions.open">
65
+        <counts>
66
+          <entry key="java" value="10" />
67
+        </counts>
68
+      </usages-collector>
69
+      <usages-collector id="statistics.file.types.open">
70
+        <counts>
71
+          <entry key="JAVA" value="10" />
72
+        </counts>
73
+      </usages-collector>
74
+      <usages-collector id="statistics.file.extensions.edit">
75
+        <counts>
76
+          <entry key="java" value="3164" />
77
+        </counts>
78
+      </usages-collector>
79
+      <usages-collector id="statistics.file.types.edit">
80
+        <counts>
81
+          <entry key="JAVA" value="3164" />
82
+        </counts>
83
+      </usages-collector>
84
+      <usages-collector id="statistics.vcs.git.usages" />
85
+      <usages-collector id="statistics.js.language.service.starts" />
86
+      <usages-collector id="statistics.spring.boot.run.usages" />
87
+      <usages-collector id="statistics.spring.boot.mvc.usages" />
88
+    </session>
89
+  </component>
90
+  <component name="FileEditorManager">
91
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
92
+      <file pinned="false" current-in-tab="false">
93
+        <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPerson.java">
94
+          <provider selected="true" editor-type-id="text-editor">
95
+            <state relative-caret-position="465">
96
+              <caret line="32" column="5" selection-start-line="32" selection-start-column="5" selection-end-line="32" selection-end-column="5" />
97
+              <folding>
98
+                <element signature="imports" expanded="true" />
99
+              </folding>
100
+            </state>
101
+          </provider>
102
+        </entry>
103
+      </file>
104
+      <file pinned="false" current-in-tab="false">
105
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Learner.java">
106
+          <provider selected="true" editor-type-id="text-editor">
107
+            <state relative-caret-position="60">
108
+              <caret line="4" column="37" selection-start-line="4" selection-start-column="37" selection-end-line="4" selection-end-column="37" />
109
+            </state>
110
+          </provider>
111
+        </entry>
112
+      </file>
113
+      <file pinned="false" current-in-tab="false">
114
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java">
115
+          <provider selected="true" editor-type-id="text-editor">
116
+            <state relative-caret-position="225">
117
+              <caret line="17" column="27" selection-start-line="17" selection-start-column="27" selection-end-line="17" selection-end-column="27" />
118
+            </state>
119
+          </provider>
120
+        </entry>
121
+      </file>
122
+      <file pinned="false" current-in-tab="false">
123
+        <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentTest.java">
124
+          <provider selected="true" editor-type-id="text-editor">
125
+            <state relative-caret-position="435">
126
+              <caret line="32" selection-start-line="32" selection-end-line="32" />
127
+              <folding>
128
+                <element signature="imports" expanded="true" />
129
+              </folding>
130
+            </state>
131
+          </provider>
132
+        </entry>
133
+      </file>
134
+      <file pinned="false" current-in-tab="false">
135
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java">
136
+          <provider selected="true" editor-type-id="text-editor">
137
+            <state relative-caret-position="75">
138
+              <caret line="5" column="57" selection-start-line="5" selection-start-column="57" selection-end-line="5" selection-end-column="57" />
139
+            </state>
140
+          </provider>
141
+        </entry>
142
+      </file>
143
+      <file pinned="false" current-in-tab="false">
144
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java">
145
+          <provider selected="true" editor-type-id="text-editor">
146
+            <state>
147
+              <caret column="31" selection-start-column="31" selection-end-column="31" />
148
+              <folding>
149
+                <element signature="e#179#180#0" expanded="true" />
150
+                <element signature="e#204#205#0" expanded="true" />
151
+              </folding>
152
+            </state>
153
+          </provider>
154
+        </entry>
155
+      </file>
156
+      <file pinned="false" current-in-tab="false">
157
+        <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java">
158
+          <provider selected="true" editor-type-id="text-editor">
159
+            <state relative-caret-position="255">
160
+              <caret line="19" column="9" selection-start-line="19" selection-start-column="9" selection-end-line="19" selection-end-column="9" />
161
+            </state>
162
+          </provider>
163
+        </entry>
164
+      </file>
165
+      <file pinned="false" current-in-tab="false">
166
+        <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/InstructorTest.java">
167
+          <provider selected="true" editor-type-id="text-editor">
168
+            <state relative-caret-position="630">
169
+              <caret line="43" column="5" selection-start-line="43" selection-start-column="5" selection-end-line="43" selection-end-column="5" />
170
+              <folding>
171
+                <element signature="imports" expanded="true" />
172
+              </folding>
173
+            </state>
174
+          </provider>
175
+        </entry>
176
+      </file>
177
+      <file pinned="false" current-in-tab="true">
178
+        <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPeople.java">
179
+          <provider selected="true" editor-type-id="text-editor">
180
+            <state relative-caret-position="75">
181
+              <caret line="5" selection-start-line="5" selection-end-line="5" />
182
+            </state>
183
+          </provider>
184
+        </entry>
185
+      </file>
186
+    </leaf>
187
+  </component>
188
+  <component name="FileTemplateManagerImpl">
189
+    <option name="RECENT_TEMPLATES">
190
+      <list>
191
+        <option value="Interface" />
192
+        <option value="Class" />
193
+      </list>
194
+    </option>
195
+  </component>
196
+  <component name="Git.Settings">
197
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
198
+  </component>
199
+  <component name="IdeDocumentHistory">
200
+    <option name="CHANGED_PATHS">
201
+      <list>
202
+        <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPerson.java" />
203
+        <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/LearnerTest.java" />
204
+        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Learner.java" />
205
+        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java" />
206
+        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java" />
207
+        <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentTest.java" />
208
+        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java" />
209
+        <option value="$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java" />
210
+        <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/InstructorTest.java" />
211
+        <option value="$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPeople.java" />
212
+      </list>
213
+    </option>
214
+  </component>
215
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
216
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
217
+  <component name="JsGulpfileManager">
218
+    <detection-done>true</detection-done>
219
+    <sorting>DEFINITION_ORDER</sorting>
220
+  </component>
221
+  <component name="ProjectFrameBounds">
222
+    <option name="y" value="23" />
223
+    <option name="width" value="1280" />
224
+    <option name="height" value="716" />
225
+  </component>
226
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true">
227
+    <ConfirmationsSetting value="2" id="Add" />
228
+  </component>
229
+  <component name="ProjectView">
230
+    <navigator proportions="" version="1">
231
+      <foldersAlwaysOnTop value="true" />
232
+    </navigator>
233
+    <panes>
234
+      <pane id="ProjectPane">
235
+        <subPane>
236
+          <expand>
237
+            <path>
238
+              <item name="interfaces-1" type="b2602c69:ProjectViewProjectNode" />
239
+              <item name="CR-MacroLabs-OOP-InstructorStudentClassroom" type="462c0819:PsiDirectoryNode" />
240
+            </path>
241
+            <path>
242
+              <item name="interfaces-1" type="b2602c69:ProjectViewProjectNode" />
243
+              <item name="CR-MacroLabs-OOP-InstructorStudentClassroom" type="462c0819:PsiDirectoryNode" />
244
+              <item name="src" type="462c0819:PsiDirectoryNode" />
245
+            </path>
246
+            <path>
247
+              <item name="interfaces-1" type="b2602c69:ProjectViewProjectNode" />
248
+              <item name="CR-MacroLabs-OOP-InstructorStudentClassroom" type="462c0819:PsiDirectoryNode" />
249
+              <item name="src" type="462c0819:PsiDirectoryNode" />
250
+              <item name="main" type="462c0819:PsiDirectoryNode" />
251
+            </path>
252
+            <path>
253
+              <item name="interfaces-1" type="b2602c69:ProjectViewProjectNode" />
254
+              <item name="CR-MacroLabs-OOP-InstructorStudentClassroom" type="462c0819:PsiDirectoryNode" />
255
+              <item name="src" type="462c0819:PsiDirectoryNode" />
256
+              <item name="main" type="462c0819:PsiDirectoryNode" />
257
+              <item name="java" type="462c0819:PsiDirectoryNode" />
258
+            </path>
259
+            <path>
260
+              <item name="interfaces-1" type="b2602c69:ProjectViewProjectNode" />
261
+              <item name="CR-MacroLabs-OOP-InstructorStudentClassroom" type="462c0819:PsiDirectoryNode" />
262
+              <item name="src" type="462c0819:PsiDirectoryNode" />
263
+              <item name="main" type="462c0819:PsiDirectoryNode" />
264
+              <item name="java" type="462c0819:PsiDirectoryNode" />
265
+              <item name="interfaces" type="462c0819:PsiDirectoryNode" />
266
+            </path>
267
+            <path>
268
+              <item name="interfaces-1" type="b2602c69:ProjectViewProjectNode" />
269
+              <item name="CR-MacroLabs-OOP-InstructorStudentClassroom" type="462c0819:PsiDirectoryNode" />
270
+              <item name="src" type="462c0819:PsiDirectoryNode" />
271
+              <item name="test" type="462c0819:PsiDirectoryNode" />
272
+            </path>
273
+            <path>
274
+              <item name="interfaces-1" type="b2602c69:ProjectViewProjectNode" />
275
+              <item name="CR-MacroLabs-OOP-InstructorStudentClassroom" type="462c0819:PsiDirectoryNode" />
276
+              <item name="src" type="462c0819:PsiDirectoryNode" />
277
+              <item name="test" type="462c0819:PsiDirectoryNode" />
278
+              <item name="java" type="462c0819:PsiDirectoryNode" />
279
+            </path>
280
+            <path>
281
+              <item name="interfaces-1" type="b2602c69:ProjectViewProjectNode" />
282
+              <item name="CR-MacroLabs-OOP-InstructorStudentClassroom" type="462c0819:PsiDirectoryNode" />
283
+              <item name="src" type="462c0819:PsiDirectoryNode" />
284
+              <item name="test" type="462c0819:PsiDirectoryNode" />
285
+              <item name="java" type="462c0819:PsiDirectoryNode" />
286
+              <item name="interfaces" type="462c0819:PsiDirectoryNode" />
287
+            </path>
288
+          </expand>
289
+          <select />
290
+        </subPane>
291
+      </pane>
292
+      <pane id="PackagesPane" />
293
+      <pane id="Scope" />
294
+    </panes>
295
+  </component>
296
+  <component name="PropertiesComponent">
297
+    <property name="WebServerToolWindowFactoryState" value="false" />
298
+    <property name="aspect.path.notification.shown" value="true" />
299
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1541895793339" />
300
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
301
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
302
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
303
+  </component>
304
+  <component name="RecentsManager">
305
+    <key name="CreateClassDialog.RecentsKey">
306
+      <recent name="io.zipcoder.interfaces" />
307
+    </key>
308
+  </component>
309
+  <component name="RunDashboard">
310
+    <option name="ruleStates">
311
+      <list>
312
+        <RuleState>
313
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
314
+        </RuleState>
315
+        <RuleState>
316
+          <option name="name" value="StatusDashboardGroupingRule" />
317
+        </RuleState>
318
+      </list>
319
+    </option>
320
+  </component>
321
+  <component name="RunManager" selected="JUnit.InstructorTest.testLecture">
322
+    <configuration name="InstructorTest.testImplementation" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
323
+      <module name="interfaces-1" />
324
+      <extension name="coverage">
325
+        <pattern>
326
+          <option name="PATTERN" value="io.zipcoder.interfaces.*" />
327
+          <option name="ENABLED" value="true" />
328
+        </pattern>
329
+      </extension>
330
+      <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
331
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.InstructorTest" />
332
+      <option name="METHOD_NAME" value="testImplementation" />
333
+      <option name="TEST_OBJECT" value="method" />
334
+      <method v="2">
335
+        <option name="Make" enabled="true" />
336
+      </method>
337
+    </configuration>
338
+    <configuration name="InstructorTest.testInheritance" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
339
+      <module name="interfaces-1" />
340
+      <extension name="coverage">
341
+        <pattern>
342
+          <option name="PATTERN" value="io.zipcoder.interfaces.*" />
343
+          <option name="ENABLED" value="true" />
344
+        </pattern>
345
+      </extension>
346
+      <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
347
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.InstructorTest" />
348
+      <option name="METHOD_NAME" value="testInheritance" />
349
+      <option name="TEST_OBJECT" value="method" />
350
+      <method v="2">
351
+        <option name="Make" enabled="true" />
352
+      </method>
353
+    </configuration>
354
+    <configuration name="InstructorTest.testLecture" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
355
+      <module name="interfaces-1" />
356
+      <extension name="coverage">
357
+        <pattern>
358
+          <option name="PATTERN" value="io.zipcoder.interfaces.*" />
359
+          <option name="ENABLED" value="true" />
360
+        </pattern>
361
+      </extension>
362
+      <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
363
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.InstructorTest" />
364
+      <option name="METHOD_NAME" value="testLecture" />
365
+      <option name="TEST_OBJECT" value="method" />
366
+      <method v="2">
367
+        <option name="Make" enabled="true" />
368
+      </method>
369
+    </configuration>
370
+    <configuration name="InstructorTest.testTeach" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
371
+      <module name="interfaces-1" />
372
+      <extension name="coverage">
373
+        <pattern>
374
+          <option name="PATTERN" value="io.zipcoder.interfaces.*" />
375
+          <option name="ENABLED" value="true" />
376
+        </pattern>
377
+      </extension>
378
+      <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
379
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.InstructorTest" />
380
+      <option name="METHOD_NAME" value="testTeach" />
381
+      <option name="TEST_OBJECT" value="method" />
382
+      <method v="2">
383
+        <option name="Make" enabled="true" />
384
+      </method>
385
+    </configuration>
386
+    <configuration name="StudentTest.testLearn" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
387
+      <module name="interfaces-1" />
388
+      <extension name="coverage">
389
+        <pattern>
390
+          <option name="PATTERN" value="io.zipcoder.interfaces.*" />
391
+          <option name="ENABLED" value="true" />
392
+        </pattern>
393
+      </extension>
394
+      <option name="PACKAGE_NAME" value="io.zipcoder.interfaces" />
395
+      <option name="MAIN_CLASS_NAME" value="io.zipcoder.interfaces.StudentTest" />
396
+      <option name="METHOD_NAME" value="testLearn" />
397
+      <option name="TEST_OBJECT" value="method" />
398
+      <method v="2">
399
+        <option name="Make" enabled="true" />
400
+      </method>
401
+    </configuration>
402
+    <list>
403
+      <item itemvalue="JUnit.StudentTest.testLearn" />
404
+      <item itemvalue="JUnit.InstructorTest.testImplementation" />
405
+      <item itemvalue="JUnit.InstructorTest.testInheritance" />
406
+      <item itemvalue="JUnit.InstructorTest.testTeach" />
407
+      <item itemvalue="JUnit.InstructorTest.testLecture" />
408
+    </list>
409
+    <recent_temporary>
410
+      <list>
411
+        <item itemvalue="JUnit.InstructorTest.testLecture" />
412
+        <item itemvalue="JUnit.InstructorTest.testTeach" />
413
+        <item itemvalue="JUnit.InstructorTest.testInheritance" />
414
+        <item itemvalue="JUnit.InstructorTest.testImplementation" />
415
+        <item itemvalue="JUnit.StudentTest.testLearn" />
416
+      </list>
417
+    </recent_temporary>
418
+  </component>
419
+  <component name="SvnConfiguration">
420
+    <configuration />
421
+  </component>
422
+  <component name="TaskManager">
423
+    <task active="true" id="Default" summary="Default task">
424
+      <changelist id="59970d75-ae38-4d76-a578-47a4a1299431" name="Default Changelist" comment="" />
425
+      <created>1541779539808</created>
426
+      <option name="number" value="Default" />
427
+      <option name="presentableId" value="Default" />
428
+      <updated>1541779539808</updated>
429
+      <workItem from="1541779543705" duration="30476000" />
430
+      <workItem from="1543013528755" duration="606000" />
431
+    </task>
432
+    <servers />
433
+  </component>
434
+  <component name="TestHistory">
435
+    <history-entry file="StudentTest_testLearn - 2018.11.09 at 19h 21m 06s.xml">
436
+      <configuration name="StudentTest.testLearn" configurationId="JUnit" />
437
+    </history-entry>
438
+    <history-entry file="InstructorTest_testImplementation - 2018.11.10 at 12h 18m 24s.xml">
439
+      <configuration name="InstructorTest.testImplementation" configurationId="JUnit" />
440
+    </history-entry>
441
+    <history-entry file="InstructorTest_testImplementation - 2018.11.10 at 12h 29m 49s.xml">
442
+      <configuration name="InstructorTest.testImplementation" configurationId="JUnit" />
443
+    </history-entry>
444
+    <history-entry file="InstructorTest_testInheritance - 2018.11.10 at 12h 31m 00s.xml">
445
+      <configuration name="InstructorTest.testInheritance" configurationId="JUnit" />
446
+    </history-entry>
447
+    <history-entry file="InstructorTest_testTeach - 2018.11.10 at 14h 07m 32s.xml">
448
+      <configuration name="InstructorTest.testTeach" configurationId="JUnit" />
449
+    </history-entry>
450
+    <history-entry file="InstructorTest_testTeach - 2018.11.10 at 14h 07m 45s.xml">
451
+      <configuration name="InstructorTest.testTeach" configurationId="JUnit" />
452
+    </history-entry>
453
+    <history-entry file="InstructorTest_testLecture - 2018.11.10 at 17h 38m 13s.xml">
454
+      <configuration name="InstructorTest.testLecture" configurationId="JUnit" />
455
+    </history-entry>
456
+    <history-entry file="InstructorTest_testLecture - 2018.11.10 at 17h 41m 26s.xml">
457
+      <configuration name="InstructorTest.testLecture" configurationId="JUnit" />
458
+    </history-entry>
459
+    <history-entry file="InstructorTest_testLecture - 2018.11.10 at 17h 59m 19s.xml">
460
+      <configuration name="InstructorTest.testLecture" configurationId="JUnit" />
461
+    </history-entry>
462
+    <history-entry file="InstructorTest_testLecture - 2018.11.10 at 18h 03m 38s.xml">
463
+      <configuration name="InstructorTest.testLecture" configurationId="JUnit" />
464
+    </history-entry>
465
+  </component>
466
+  <component name="TimeTrackingManager">
467
+    <option name="totallyTimeSpent" value="31082000" />
468
+  </component>
469
+  <component name="ToolWindowManager">
470
+    <frame x="0" y="23" width="1280" height="716" extended-state="6" />
471
+    <layout>
472
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2536349" />
473
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
474
+      <window_info id="Image Layers" order="2" />
475
+      <window_info id="Designer" order="3" />
476
+      <window_info id="UI Designer" order="4" />
477
+      <window_info id="Capture Tool" order="5" />
478
+      <window_info id="Favorites" order="6" side_tool="true" />
479
+      <window_info anchor="bottom" id="Message" order="0" />
480
+      <window_info anchor="bottom" id="Find" order="1" />
481
+      <window_info anchor="bottom" id="Run" order="2" weight="0.28082192" />
482
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
483
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
484
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
485
+      <window_info anchor="bottom" id="TODO" order="6" />
486
+      <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
487
+      <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
488
+      <window_info anchor="bottom" id="Terminal" order="9" />
489
+      <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
490
+      <window_info anchor="bottom" id="Messages" order="11" weight="0.32871288" />
491
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
492
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
493
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
494
+      <window_info anchor="right" id="Palette" order="3" />
495
+      <window_info anchor="right" id="Capture Analysis" order="4" />
496
+      <window_info anchor="right" id="Database" order="5" />
497
+      <window_info anchor="right" id="Theme Preview" order="6" />
498
+      <window_info anchor="right" id="Maven Projects" order="7" />
499
+      <window_info anchor="right" id="Palette&#9;" order="8" />
500
+      <window_info anchor="right" id="Coverage" order="9" side_tool="true" weight="0.3290735" />
501
+    </layout>
502
+  </component>
503
+  <component name="TypeScriptGeneratedFilesManager">
504
+    <option name="version" value="1" />
505
+  </component>
506
+  <component name="VcsContentAnnotationSettings">
507
+    <option name="myLimit" value="2678400000" />
508
+  </component>
509
+  <component name="editorHistoryManager">
510
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/LearnerTest.java" />
511
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPerson.java">
512
+      <provider selected="true" editor-type-id="text-editor">
513
+        <state relative-caret-position="465">
514
+          <caret line="32" column="5" selection-start-line="32" selection-start-column="5" selection-end-line="32" selection-end-column="5" />
515
+          <folding>
516
+            <element signature="imports" expanded="true" />
517
+          </folding>
518
+        </state>
519
+      </provider>
520
+    </entry>
521
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Learner.java">
522
+      <provider selected="true" editor-type-id="text-editor">
523
+        <state relative-caret-position="60">
524
+          <caret line="4" column="37" selection-start-line="4" selection-start-column="37" selection-end-line="4" selection-end-column="37" />
525
+        </state>
526
+      </provider>
527
+    </entry>
528
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Student.java">
529
+      <provider selected="true" editor-type-id="text-editor">
530
+        <state relative-caret-position="225">
531
+          <caret line="17" column="27" selection-start-line="17" selection-start-column="27" selection-end-line="17" selection-end-column="27" />
532
+        </state>
533
+      </provider>
534
+    </entry>
535
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/StudentTest.java">
536
+      <provider selected="true" editor-type-id="text-editor">
537
+        <state relative-caret-position="435">
538
+          <caret line="32" selection-start-line="32" selection-end-line="32" />
539
+          <folding>
540
+            <element signature="imports" expanded="true" />
541
+          </folding>
542
+        </state>
543
+      </provider>
544
+    </entry>
545
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Teacher.java">
546
+      <provider selected="true" editor-type-id="text-editor">
547
+        <state relative-caret-position="75">
548
+          <caret line="5" column="57" selection-start-line="5" selection-start-column="57" selection-end-line="5" selection-end-column="57" />
549
+        </state>
550
+      </provider>
551
+    </entry>
552
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Person.java">
553
+      <provider selected="true" editor-type-id="text-editor">
554
+        <state>
555
+          <caret column="31" selection-start-column="31" selection-end-column="31" />
556
+          <folding>
557
+            <element signature="e#179#180#0" expanded="true" />
558
+            <element signature="e#204#205#0" expanded="true" />
559
+          </folding>
560
+        </state>
561
+      </provider>
562
+    </entry>
563
+    <entry file="file://$PROJECT_DIR$/src/main/java/io/zipcoder/interfaces/Instructor.java">
564
+      <provider selected="true" editor-type-id="text-editor">
565
+        <state relative-caret-position="255">
566
+          <caret line="19" column="9" selection-start-line="19" selection-start-column="9" selection-end-line="19" selection-end-column="9" />
567
+        </state>
568
+      </provider>
569
+    </entry>
570
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/InstructorTest.java">
571
+      <provider selected="true" editor-type-id="text-editor">
572
+        <state relative-caret-position="630">
573
+          <caret line="43" column="5" selection-start-line="43" selection-start-column="5" selection-end-line="43" selection-end-column="5" />
574
+          <folding>
575
+            <element signature="imports" expanded="true" />
576
+          </folding>
577
+        </state>
578
+      </provider>
579
+    </entry>
580
+    <entry file="file://$PROJECT_DIR$/src/test/java/io/zipcoder/interfaces/TestPeople.java">
581
+      <provider selected="true" editor-type-id="text-editor">
582
+        <state relative-caret-position="75">
583
+          <caret line="5" selection-start-line="5" selection-end-line="5" />
584
+        </state>
585
+      </provider>
586
+    </entry>
587
+  </component>
588
+</project>

+ 16
- 0
interfaces-1.iml View File

@@ -0,0 +1,16 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_5">
4
+    <output url="file://$MODULE_DIR$/target/classes" />
5
+    <output-test url="file://$MODULE_DIR$/target/test-classes" />
6
+    <content url="file://$MODULE_DIR$">
7
+      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8
+      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
9
+      <excludeFolder url="file://$MODULE_DIR$/target" />
10
+    </content>
11
+    <orderEntry type="inheritedJdk" />
12
+    <orderEntry type="sourceFolder" forTests="false" />
13
+    <orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
14
+    <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
15
+  </component>
16
+</module>

+ 23
- 0
src/main/java/io/zipcoder/interfaces/Instructor.java View File

@@ -0,0 +1,23 @@
1
+package io.zipcoder.interfaces;
2
+
3
+public class Instructor extends Person implements Teacher  {
4
+    public Instructor(long ID) {
5
+        super(ID);
6
+    }
7
+
8
+    public void teach(Learner learner, double numberOfHours) {
9
+
10
+        learner.learn(numberOfHours);
11
+
12
+    }
13
+
14
+    public void lecture(Learner[] learners, double numberOfHours) {
15
+
16
+
17
+        for(int i=0; i<learners.length; i++)
18
+        {
19
+           learners[i].learn(numberOfHours/learners.length);
20
+        }
21
+
22
+    }
23
+}

+ 7
- 0
src/main/java/io/zipcoder/interfaces/Learner.java View File

@@ -0,0 +1,7 @@
1
+package io.zipcoder.interfaces;
2
+
3
+public interface Learner {
4
+
5
+    void learn(double numberOfHours);
6
+
7
+}

+ 20
- 0
src/main/java/io/zipcoder/interfaces/Person.java View File

@@ -2,4 +2,24 @@ package io.zipcoder.interfaces;
2 2
 
3 3
 public class Person {
4 4
 
5
+    final long ID;
6
+    String name;
7
+
8
+    public Person(long ID) {
9
+        this.ID = ID;
10
+    }
11
+
12
+    public long getID()
13
+    {
14
+        return ID;
15
+    }
16
+
17
+    public String getName() {
18
+
19
+        return name;
20
+    }
21
+
22
+    public void setName(String name) {
23
+        this.name=name;
24
+    }
5 25
 }

+ 22
- 0
src/main/java/io/zipcoder/interfaces/Student.java View File

@@ -0,0 +1,22 @@
1
+package io.zipcoder.interfaces;
2
+
3
+public class Student extends Person implements Learner {
4
+
5
+
6
+    double totalStudyTime=0;
7
+
8
+    public Student(long ID) {
9
+        super(ID);
10
+    }
11
+
12
+    public void learn(double numberOfHours) {
13
+
14
+        totalStudyTime +=numberOfHours;
15
+
16
+    }
17
+
18
+    public double getTotalStudyTime() {
19
+
20
+        return totalStudyTime;
21
+    }
22
+}

+ 7
- 0
src/main/java/io/zipcoder/interfaces/Teacher.java View File

@@ -0,0 +1,7 @@
1
+package io.zipcoder.interfaces;
2
+
3
+public interface Teacher {
4
+
5
+    void teach(Learner learner, double numberOfHours);
6
+    void lecture(Learner[] learners, double numberOfHours);
7
+}

+ 45
- 0
src/test/java/io/zipcoder/interfaces/InstructorTest.java View File

@@ -0,0 +1,45 @@
1
+package io.zipcoder.interfaces;
2
+
3
+import org.junit.Assert;
4
+import org.junit.Test;
5
+
6
+public class InstructorTest {
7
+
8
+    @Test
9
+    public void testImplementation()
10
+    {
11
+        Instructor instructor = new Instructor(2);
12
+        Assert.assertTrue(instructor instanceof Teacher);
13
+    }
14
+
15
+    @Test
16
+    public void testInheritance()
17
+    {
18
+        Instructor instructor = new Instructor(3);
19
+        Assert.assertTrue(instructor instanceof Person);
20
+    }
21
+
22
+    @Test
23
+    public void testTeach()
24
+    {
25
+        Instructor instructor = new Instructor(3);
26
+        double newHours = 5;
27
+        Learner l = new Student(2);
28
+        instructor.teach(l,newHours);
29
+        double actual = ((Student) l).getTotalStudyTime();
30
+        double expected = 5;
31
+        Assert.assertEquals(expected,actual,1);
32
+    }
33
+
34
+    @Test
35
+    public void testLecture()
36
+    {
37
+    Instructor instructor = new Instructor(1);
38
+    Student student = new Student(1);
39
+    Student[] arrayStudent = {student};
40
+    instructor.lecture(arrayStudent,4);
41
+    double expected =4;
42
+    double actual = student.getTotalStudyTime();
43
+    Assert.assertEquals(expected,actual,1);
44
+    }
45
+}

+ 35
- 0
src/test/java/io/zipcoder/interfaces/StudentTest.java View File

@@ -0,0 +1,35 @@
1
+package io.zipcoder.interfaces;
2
+
3
+import org.junit.Assert;
4
+import org.junit.Test;
5
+
6
+import static org.hamcrest.core.IsInstanceOf.instanceOf;
7
+
8
+public class StudentTest {
9
+
10
+    @Test
11
+    public void testImplementation()
12
+    {
13
+    Student student = new Student(1);
14
+    Assert.assertTrue(student instanceof  Person);
15
+    }
16
+
17
+    @Test
18
+    public void testInterface()
19
+    {
20
+        Student student = new Student(1);
21
+        Assert.assertTrue(student instanceof Learner);
22
+    }
23
+    @Test
24
+    public void testLearn()
25
+    {
26
+        Student student = new Student(1);
27
+
28
+        student.learn(3);
29
+        double actual = student.getTotalStudyTime();
30
+        double expected =3;
31
+        Assert.assertEquals(expected,actual,1);
32
+    }
33
+
34
+
35
+}

+ 7
- 0
src/test/java/io/zipcoder/interfaces/TestPeople.java View File

@@ -0,0 +1,7 @@
1
+package io.zipcoder.interfaces;
2
+
3
+import org.junit.Test;
4
+
5
+public class TestPeople {
6
+
7
+}

+ 30
- 0
src/test/java/io/zipcoder/interfaces/TestPerson.java View File

@@ -1,5 +1,35 @@
1 1
 package io.zipcoder.interfaces;
2 2
 
3
+import org.junit.Assert;
4
+import org.junit.Test;
5
+
3 6
 public class TestPerson {
4 7
 
8
+    @Test
9
+    public void personTest()
10
+    {
11
+        Person person = new Person(1);
12
+        Assert.assertNotNull(person);
13
+    }
14
+
15
+
16
+    @Test
17
+    public void getIdTest()
18
+    {
19
+        Person person = new Person(2);
20
+        long expected = 2;
21
+        long actual = person.getID();
22
+        Assert.assertEquals(expected,actual);
23
+    }
24
+
25
+    @Test
26
+    public void getNameTest()
27
+    {
28
+        Person person = new Person(3);
29
+        String expected = "jose";
30
+        person.setName(expected);
31
+        String actual = person.getName();
32
+        Assert.assertEquals(expected,actual);
33
+    }
34
+
5 35
 }