Ben Blinebury vor 6 Jahren
Ursprung
Commit
c6a131bf43

+ 17
- 0
.idea/ZCW-Lambdas.iml Datei anzeigen

@@ -0,0 +1,17 @@
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_8">
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/main/resources" type="java-resource" />
9
+      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
10
+      <excludeFolder url="file://$MODULE_DIR$/target" />
11
+    </content>
12
+    <orderEntry type="inheritedJdk" />
13
+    <orderEntry type="sourceFolder" forTests="false" />
14
+    <orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
15
+    <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
16
+  </component>
17
+</module>

+ 16
- 0
.idea/compiler.xml Datei anzeigen

@@ -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="ZCW-Lambdas" />
10
+      </profile>
11
+    </annotationProcessing>
12
+    <bytecodeTargetLevel>
13
+      <module name="ZCW-Lambdas" target="8" />
14
+    </bytecodeTargetLevel>
15
+  </component>
16
+</project>

+ 13
- 0
.idea/libraries/Maven__junit_junit_4_12.xml Datei anzeigen

@@ -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 Datei anzeigen

@@ -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>

+ 14
- 0
.idea/misc.xml Datei anzeigen

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

+ 8
- 0
.idea/modules.xml Datei anzeigen

@@ -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$/.idea/ZCW-Lambdas.iml" filepath="$PROJECT_DIR$/.idea/ZCW-Lambdas.iml" />
6
+    </modules>
7
+  </component>
8
+</project>

+ 6
- 0
.idea/vcs.xml Datei anzeigen

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

+ 470
- 0
.idea/workspace.xml Datei anzeigen

@@ -0,0 +1,470 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="bc65d578-6bfc-47d2-a7ee-c3d9495aa1fd" name="Default" comment="" />
5
+    <ignored path="$PROJECT_DIR$/target/" />
6
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
7
+    <option name="TRACKING_ENABLED" value="true" />
8
+    <option name="SHOW_DIALOG" value="false" />
9
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
10
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
11
+    <option name="LAST_RESOLUTION" value="IGNORE" />
12
+  </component>
13
+  <component name="FileEditorManager">
14
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
15
+      <file leaf-file-name="Members.java" pinned="false" current-in-tab="false">
16
+        <entry file="file://$PROJECT_DIR$/src/main/java/Members.java">
17
+          <provider selected="true" editor-type-id="text-editor">
18
+            <state relative-caret-position="90">
19
+              <caret line="6" column="6" selection-start-line="6" selection-start-column="6" selection-end-line="6" selection-end-column="6" />
20
+              <folding>
21
+                <element signature="imports" expanded="true" />
22
+                <element signature="e#123#124#0" expanded="true" />
23
+                <element signature="e#157#158#0" expanded="true" />
24
+                <element signature="e#211#212#0" expanded="true" />
25
+                <element signature="e#230#231#0" expanded="true" />
26
+                <element signature="e#279#280#0" expanded="true" />
27
+                <element signature="e#298#299#0" expanded="true" />
28
+              </folding>
29
+            </state>
30
+          </provider>
31
+        </entry>
32
+      </file>
33
+      <file leaf-file-name="MembersTest.java" pinned="false" current-in-tab="false">
34
+        <entry file="file://$PROJECT_DIR$/src/test/java/MembersTest.java">
35
+          <provider selected="true" editor-type-id="text-editor">
36
+            <state relative-caret-position="210">
37
+              <caret line="14" column="5" lean-forward="true" selection-start-line="14" selection-start-column="5" selection-end-line="14" selection-end-column="5" />
38
+              <folding>
39
+                <element signature="imports" expanded="true" />
40
+              </folding>
41
+            </state>
42
+          </provider>
43
+        </entry>
44
+      </file>
45
+      <file leaf-file-name="Person.java" pinned="false" current-in-tab="false">
46
+        <entry file="file://$PROJECT_DIR$/src/main/java/Person.java">
47
+          <provider selected="true" editor-type-id="text-editor">
48
+            <state relative-caret-position="538">
49
+              <caret line="59" column="25" selection-start-line="59" selection-start-column="25" selection-end-line="59" selection-end-column="25" />
50
+              <folding>
51
+                <element signature="imports" expanded="true" />
52
+                <element signature="e#515#516#0" expanded="true" />
53
+                <element signature="e#546#547#0" expanded="true" />
54
+                <element signature="e#578#579#0" expanded="true" />
55
+                <element signature="e#605#606#0" expanded="true" />
56
+                <element signature="e#645#646#0" expanded="true" />
57
+                <element signature="e#677#678#0" expanded="true" />
58
+                <element signature="e#715#716#0" expanded="true" />
59
+                <element signature="e#746#747#0" expanded="true" />
60
+                <element signature="e#797#798#0" expanded="true" />
61
+                <element signature="e#837#838#0" expanded="true" />
62
+                <element signature="e#867#868#0" expanded="true" />
63
+                <element signature="e#896#897#0" expanded="true" />
64
+                <element signature="e#937#938#0" expanded="true" />
65
+                <element signature="e#973#974#0" expanded="true" />
66
+                <element signature="e#1012#1013#0" expanded="true" />
67
+                <element signature="e#1047#1048#0" expanded="true" />
68
+                <element signature="e#1103#1104#0" expanded="true" />
69
+                <element signature="e#1151#1152#0" expanded="true" />
70
+                <element signature="e#1250#1251#0" expanded="true" />
71
+              </folding>
72
+            </state>
73
+          </provider>
74
+        </entry>
75
+      </file>
76
+      <file leaf-file-name="PersonTest.java" pinned="false" current-in-tab="true">
77
+        <entry file="file://$PROJECT_DIR$/src/test/java/PersonTest.java">
78
+          <provider selected="true" editor-type-id="text-editor">
79
+            <state relative-caret-position="570">
80
+              <caret line="38" column="39" selection-start-line="38" selection-start-column="39" selection-end-line="38" selection-end-column="39" />
81
+              <folding>
82
+                <element signature="imports" expanded="true" />
83
+              </folding>
84
+            </state>
85
+          </provider>
86
+        </entry>
87
+      </file>
88
+      <file leaf-file-name="CheckPerson.java" pinned="false" current-in-tab="false">
89
+        <entry file="file://$PROJECT_DIR$/src/main/java/CheckPerson.java">
90
+          <provider selected="true" editor-type-id="text-editor">
91
+            <state relative-caret-position="15">
92
+              <caret line="1" column="16" selection-start-line="1" selection-start-column="16" selection-end-line="1" selection-end-column="16" />
93
+            </state>
94
+          </provider>
95
+        </entry>
96
+      </file>
97
+    </leaf>
98
+  </component>
99
+  <component name="FileTemplateManagerImpl">
100
+    <option name="RECENT_TEMPLATES">
101
+      <list>
102
+        <option value="Class" />
103
+        <option value="Interface" />
104
+        <option value="Arquillian JUnit Test Class" />
105
+        <option value="JUnit4 Test Class" />
106
+      </list>
107
+    </option>
108
+  </component>
109
+  <component name="Git.Settings">
110
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
111
+  </component>
112
+  <component name="IdeDocumentHistory">
113
+    <option name="CHANGED_PATHS">
114
+      <list>
115
+        <option value="$PROJECT_DIR$/pom.xml" />
116
+        <option value="$PROJECT_DIR$/src/main/java/CheckPerson.java" />
117
+        <option value="$PROJECT_DIR$/src/main/java/Person.java" />
118
+        <option value="$PROJECT_DIR$/src/main/java/Members.java" />
119
+        <option value="$PROJECT_DIR$/src/test/java/MembersTest.java" />
120
+        <option value="$PROJECT_DIR$/src/test/java/PersonTest.java" />
121
+      </list>
122
+    </option>
123
+  </component>
124
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
125
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
126
+  <component name="JsGulpfileManager">
127
+    <detection-done>true</detection-done>
128
+    <sorting>DEFINITION_ORDER</sorting>
129
+  </component>
130
+  <component name="NodePackageJsonFileManager">
131
+    <packageJsonPaths />
132
+  </component>
133
+  <component name="ProjectFrameBounds" fullScreen="true">
134
+    <option name="width" value="1440" />
135
+    <option name="height" value="900" />
136
+  </component>
137
+  <component name="ProjectLevelVcsManager">
138
+    <ConfirmationsSetting value="1" id="Add" />
139
+  </component>
140
+  <component name="ProjectView">
141
+    <navigator proportions="" version="1">
142
+      <foldersAlwaysOnTop value="true" />
143
+    </navigator>
144
+    <panes>
145
+      <pane id="ProjectPane">
146
+        <subPane>
147
+          <expand>
148
+            <path>
149
+              <item name="ZCW-Lambdas" type="b2602c69:ProjectViewProjectNode" />
150
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
151
+            </path>
152
+            <path>
153
+              <item name="ZCW-Lambdas" type="b2602c69:ProjectViewProjectNode" />
154
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
155
+              <item name="src" type="462c0819:PsiDirectoryNode" />
156
+            </path>
157
+            <path>
158
+              <item name="ZCW-Lambdas" type="b2602c69:ProjectViewProjectNode" />
159
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
160
+              <item name="src" type="462c0819:PsiDirectoryNode" />
161
+              <item name="main" type="462c0819:PsiDirectoryNode" />
162
+            </path>
163
+            <path>
164
+              <item name="ZCW-Lambdas" type="b2602c69:ProjectViewProjectNode" />
165
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
166
+              <item name="src" type="462c0819:PsiDirectoryNode" />
167
+              <item name="main" type="462c0819:PsiDirectoryNode" />
168
+              <item name="java" type="462c0819:PsiDirectoryNode" />
169
+            </path>
170
+            <path>
171
+              <item name="ZCW-Lambdas" type="b2602c69:ProjectViewProjectNode" />
172
+              <item name="ZCW-Lambdas" type="462c0819:PsiDirectoryNode" />
173
+              <item name="src" type="462c0819:PsiDirectoryNode" />
174
+              <item name="test" type="462c0819:PsiDirectoryNode" />
175
+            </path>
176
+          </expand>
177
+          <select />
178
+        </subPane>
179
+      </pane>
180
+      <pane id="Scope" />
181
+      <pane id="AndroidView" />
182
+      <pane id="PackagesPane" />
183
+    </panes>
184
+  </component>
185
+  <component name="PropertiesComponent">
186
+    <property name="WebServerToolWindowFactoryState" value="false" />
187
+    <property name="aspect.path.notification.shown" value="true" />
188
+    <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrary" value="JUnit4" />
189
+    <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrarySuperClass.Arquillian JUnit4" value="" />
190
+    <property name="com.intellij.testIntegration.createTest.CreateTestDialog.defaultLibrarySuperClass.JUnit4" value="" />
191
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
192
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
193
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
194
+    <property name="settings.editor.selected.configurable" value="editor.preferences.import" />
195
+  </component>
196
+  <component name="RecentsManager">
197
+    <key name="CreateTestDialog.RecentsKey">
198
+      <recent name="" />
199
+    </key>
200
+    <key name="CreateTestDialog.Recents.Supers">
201
+      <recent name="" />
202
+    </key>
203
+  </component>
204
+  <component name="RunDashboard">
205
+    <option name="ruleStates">
206
+      <list>
207
+        <RuleState>
208
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
209
+        </RuleState>
210
+        <RuleState>
211
+          <option name="name" value="StatusDashboardGroupingRule" />
212
+        </RuleState>
213
+      </list>
214
+    </option>
215
+  </component>
216
+  <component name="RunManager" selected="JUnit.PersonTest">
217
+    <configuration default="true" type="Application" factoryName="Application">
218
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
219
+    </configuration>
220
+    <configuration name="MembersTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
221
+      <module name="ZCW-Lambdas" />
222
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
223
+      <option name="ALTERNATIVE_JRE_PATH" />
224
+      <option name="PACKAGE_NAME" value="" />
225
+      <option name="MAIN_CLASS_NAME" value="MembersTest" />
226
+      <option name="METHOD_NAME" />
227
+      <option name="TEST_OBJECT" value="class" />
228
+      <option name="VM_PARAMETERS" value="-ea" />
229
+      <option name="PARAMETERS" />
230
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
231
+      <option name="PASS_PARENT_ENVS" value="true" />
232
+      <option name="TEST_SEARCH_SCOPE">
233
+        <value defaultName="singleModule" />
234
+      </option>
235
+      <patterns />
236
+    </configuration>
237
+    <configuration name="PersonTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
238
+      <module name="ZCW-Lambdas" />
239
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
240
+      <option name="ALTERNATIVE_JRE_PATH" />
241
+      <option name="PACKAGE_NAME" value="" />
242
+      <option name="MAIN_CLASS_NAME" value="PersonTest" />
243
+      <option name="METHOD_NAME" />
244
+      <option name="TEST_OBJECT" value="class" />
245
+      <option name="VM_PARAMETERS" value="-ea" />
246
+      <option name="PARAMETERS" />
247
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
248
+      <option name="PASS_PARENT_ENVS" value="true" />
249
+      <option name="TEST_SEARCH_SCOPE">
250
+        <value defaultName="singleModule" />
251
+      </option>
252
+      <patterns />
253
+    </configuration>
254
+    <configuration default="true" type="JUnit" factoryName="JUnit">
255
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
256
+      <option name="ALTERNATIVE_JRE_PATH" />
257
+      <option name="PACKAGE_NAME" />
258
+      <option name="MAIN_CLASS_NAME" />
259
+      <option name="METHOD_NAME" />
260
+      <option name="TEST_OBJECT" value="class" />
261
+      <option name="VM_PARAMETERS" value="-ea" />
262
+      <option name="PARAMETERS" />
263
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
264
+      <option name="PASS_PARENT_ENVS" value="true" />
265
+      <option name="TEST_SEARCH_SCOPE">
266
+        <value defaultName="singleModule" />
267
+      </option>
268
+      <patterns />
269
+    </configuration>
270
+    <configuration default="true" type="TestNG" factoryName="TestNG">
271
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
272
+      <option name="ALTERNATIVE_JRE_PATH" />
273
+      <option name="SUITE_NAME" />
274
+      <option name="PACKAGE_NAME" />
275
+      <option name="MAIN_CLASS_NAME" />
276
+      <option name="METHOD_NAME" />
277
+      <option name="GROUP_NAME" />
278
+      <option name="TEST_OBJECT" value="CLASS" />
279
+      <option name="VM_PARAMETERS" value="-ea" />
280
+      <option name="PARAMETERS" />
281
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
282
+      <option name="OUTPUT_DIRECTORY" />
283
+      <option name="PASS_PARENT_ENVS" value="true" />
284
+      <option name="TEST_SEARCH_SCOPE">
285
+        <value defaultName="singleModule" />
286
+      </option>
287
+      <option name="USE_DEFAULT_REPORTERS" value="false" />
288
+      <option name="PROPERTIES_FILE" />
289
+      <properties />
290
+      <listeners />
291
+    </configuration>
292
+    <list>
293
+      <item itemvalue="JUnit.MembersTest" />
294
+      <item itemvalue="JUnit.PersonTest" />
295
+    </list>
296
+    <recent_temporary>
297
+      <list>
298
+        <item itemvalue="JUnit.PersonTest" />
299
+        <item itemvalue="JUnit.MembersTest" />
300
+      </list>
301
+    </recent_temporary>
302
+  </component>
303
+  <component name="SvnConfiguration">
304
+    <configuration />
305
+  </component>
306
+  <component name="TaskManager">
307
+    <task active="true" id="Default" summary="Default task">
308
+      <changelist id="bc65d578-6bfc-47d2-a7ee-c3d9495aa1fd" name="Default" comment="" />
309
+      <created>1529439289712</created>
310
+      <option name="number" value="Default" />
311
+      <option name="presentableId" value="Default" />
312
+      <updated>1529439289712</updated>
313
+      <workItem from="1529439291378" duration="703000" />
314
+      <workItem from="1530026300638" duration="4531000" />
315
+    </task>
316
+    <servers />
317
+  </component>
318
+  <component name="TestHistory">
319
+    <history-entry file="MembersTest - 2018.06.28 at 07h 22m 38s.xml">
320
+      <configuration name="MembersTest" configurationId="JUnit" />
321
+    </history-entry>
322
+    <history-entry file="PersonTest - 2018.06.28 at 07h 28m 19s.xml">
323
+      <configuration name="PersonTest" configurationId="JUnit" />
324
+    </history-entry>
325
+  </component>
326
+  <component name="TimeTrackingManager">
327
+    <option name="totallyTimeSpent" value="5234000" />
328
+  </component>
329
+  <component name="ToolWindowManager">
330
+    <frame x="0" y="0" width="1440" height="900" extended-state="0" />
331
+    <editor active="true" />
332
+    <layout>
333
+      <window_info anchor="right" id="Palette" order="3" />
334
+      <window_info anchor="bottom" id="TODO" order="6" />
335
+      <window_info anchor="bottom" id="Messages" />
336
+      <window_info anchor="right" id="Palette&#9;" order="3" />
337
+      <window_info id="Image Layers" order="2" />
338
+      <window_info anchor="right" id="Capture Analysis" order="3" />
339
+      <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
340
+      <window_info anchor="right" id="Maven Projects" order="3" />
341
+      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
342
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32969698" />
343
+      <window_info anchor="bottom" id="Version Control" order="7" />
344
+      <window_info anchor="bottom" id="Terminal" order="7" />
345
+      <window_info id="Capture Tool" order="2" />
346
+      <window_info id="Designer" order="2" />
347
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2532189" />
348
+      <window_info anchor="right" id="Database" order="3" />
349
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
350
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
351
+      <window_info id="UI Designer" order="2" />
352
+      <window_info anchor="right" id="Theme Preview" order="3" />
353
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
354
+      <window_info id="Favorites" order="2" side_tool="true" />
355
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
356
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
357
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
358
+      <window_info anchor="bottom" id="Message" order="0" />
359
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
360
+      <window_info anchor="bottom" id="Find" order="1" />
361
+    </layout>
362
+  </component>
363
+  <component name="TypeScriptGeneratedFilesManager">
364
+    <option name="version" value="1" />
365
+  </component>
366
+  <component name="VcsContentAnnotationSettings">
367
+    <option name="myLimit" value="2678400000" />
368
+  </component>
369
+  <component name="editorHistoryManager">
370
+    <entry file="file://$PROJECT_DIR$/README.md">
371
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
372
+        <state split_layout="SPLIT">
373
+          <first_editor relative-caret-position="1065">
374
+            <caret line="71" column="33" selection-start-line="71" selection-start-column="33" selection-end-line="71" selection-end-column="33" />
375
+          </first_editor>
376
+          <second_editor />
377
+        </state>
378
+      </provider>
379
+    </entry>
380
+    <entry file="file://$PROJECT_DIR$/pom.xml">
381
+      <provider selected="true" editor-type-id="text-editor">
382
+        <state relative-caret-position="165">
383
+          <caret line="11" column="10" selection-start-line="11" selection-start-column="10" selection-end-line="11" selection-end-column="10" />
384
+        </state>
385
+      </provider>
386
+    </entry>
387
+    <entry file="file://$PROJECT_DIR$/README.md">
388
+      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
389
+        <state split_layout="SPLIT">
390
+          <first_editor relative-caret-position="1065">
391
+            <caret line="71" column="33" selection-start-line="71" selection-start-column="33" selection-end-line="71" selection-end-column="33" />
392
+          </first_editor>
393
+          <second_editor />
394
+        </state>
395
+      </provider>
396
+    </entry>
397
+    <entry file="file://$PROJECT_DIR$/src/main/java/CheckPerson.java">
398
+      <provider selected="true" editor-type-id="text-editor">
399
+        <state relative-caret-position="15">
400
+          <caret line="1" column="16" selection-start-line="1" selection-start-column="16" selection-end-line="1" selection-end-column="16" />
401
+        </state>
402
+      </provider>
403
+    </entry>
404
+    <entry file="file://$PROJECT_DIR$/src/test/java/MembersTest.java">
405
+      <provider selected="true" editor-type-id="text-editor">
406
+        <state relative-caret-position="210">
407
+          <caret line="14" column="5" lean-forward="true" selection-start-line="14" selection-start-column="5" selection-end-line="14" selection-end-column="5" />
408
+          <folding>
409
+            <element signature="imports" expanded="true" />
410
+          </folding>
411
+        </state>
412
+      </provider>
413
+    </entry>
414
+    <entry file="file://$PROJECT_DIR$/src/main/java/Person.java">
415
+      <provider selected="true" editor-type-id="text-editor">
416
+        <state relative-caret-position="538">
417
+          <caret line="59" column="25" selection-start-line="59" selection-start-column="25" selection-end-line="59" selection-end-column="25" />
418
+          <folding>
419
+            <element signature="imports" expanded="true" />
420
+            <element signature="e#515#516#0" expanded="true" />
421
+            <element signature="e#546#547#0" expanded="true" />
422
+            <element signature="e#578#579#0" expanded="true" />
423
+            <element signature="e#605#606#0" expanded="true" />
424
+            <element signature="e#645#646#0" expanded="true" />
425
+            <element signature="e#677#678#0" expanded="true" />
426
+            <element signature="e#715#716#0" expanded="true" />
427
+            <element signature="e#746#747#0" expanded="true" />
428
+            <element signature="e#797#798#0" expanded="true" />
429
+            <element signature="e#837#838#0" expanded="true" />
430
+            <element signature="e#867#868#0" expanded="true" />
431
+            <element signature="e#896#897#0" expanded="true" />
432
+            <element signature="e#937#938#0" expanded="true" />
433
+            <element signature="e#973#974#0" expanded="true" />
434
+            <element signature="e#1012#1013#0" expanded="true" />
435
+            <element signature="e#1047#1048#0" expanded="true" />
436
+            <element signature="e#1103#1104#0" expanded="true" />
437
+            <element signature="e#1151#1152#0" expanded="true" />
438
+            <element signature="e#1250#1251#0" expanded="true" />
439
+          </folding>
440
+        </state>
441
+      </provider>
442
+    </entry>
443
+    <entry file="file://$PROJECT_DIR$/src/main/java/Members.java">
444
+      <provider selected="true" editor-type-id="text-editor">
445
+        <state relative-caret-position="90">
446
+          <caret line="6" column="6" selection-start-line="6" selection-start-column="6" selection-end-line="6" selection-end-column="6" />
447
+          <folding>
448
+            <element signature="imports" expanded="true" />
449
+            <element signature="e#123#124#0" expanded="true" />
450
+            <element signature="e#157#158#0" expanded="true" />
451
+            <element signature="e#211#212#0" expanded="true" />
452
+            <element signature="e#230#231#0" expanded="true" />
453
+            <element signature="e#279#280#0" expanded="true" />
454
+            <element signature="e#298#299#0" expanded="true" />
455
+          </folding>
456
+        </state>
457
+      </provider>
458
+    </entry>
459
+    <entry file="file://$PROJECT_DIR$/src/test/java/PersonTest.java">
460
+      <provider selected="true" editor-type-id="text-editor">
461
+        <state relative-caret-position="570">
462
+          <caret line="38" column="39" selection-start-line="38" selection-start-column="39" selection-end-line="38" selection-end-column="39" />
463
+          <folding>
464
+            <element signature="imports" expanded="true" />
465
+          </folding>
466
+        </state>
467
+      </provider>
468
+    </entry>
469
+  </component>
470
+</project>

+ 32
- 0
pom.xml Datei anzeigen

@@ -0,0 +1,32 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project xmlns="http://maven.apache.org/POM/4.0.0"
3
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+    <modelVersion>4.0.0</modelVersion>
6
+
7
+    <groupId>groupId</groupId>
8
+    <artifactId>ZCW-Lambdas</artifactId>
9
+    <version>1.0-SNAPSHOT</version>
10
+    <build>
11
+        <plugins>
12
+            <plugin>
13
+                <groupId>org.apache.maven.plugins</groupId>
14
+                <artifactId>maven-compiler-plugin</artifactId>
15
+                <configuration>
16
+                    <source>8</source>
17
+                    <target>8</target>
18
+                </configuration>
19
+            </plugin>
20
+        </plugins>
21
+    </build>
22
+    <dependencies>
23
+        <dependency>
24
+            <groupId>junit</groupId>
25
+            <artifactId>junit</artifactId>
26
+            <version>RELEASE</version>
27
+            <scope>test</scope>
28
+        </dependency>
29
+    </dependencies>
30
+
31
+
32
+</project>

+ 3
- 0
src/main/java/CheckPerson.java Datei anzeigen

@@ -0,0 +1,3 @@
1
+interface CheckPerson {
2
+    boolean test(Person p);
3
+}

+ 29
- 0
src/main/java/Members.java Datei anzeigen

@@ -0,0 +1,29 @@
1
+import java.time.Period;
2
+import java.util.ArrayList;
3
+import java.util.List;
4
+
5
+public class Members {
6
+
7
+    List<Person> members;
8
+
9
+
10
+    public Members() {
11
+        members = new ArrayList<Person>();
12
+    }
13
+
14
+    public void add(Person person){
15
+        this.members.add(person);
16
+    }
17
+
18
+    public void remove(Person person) {
19
+        this.members.remove(person);
20
+    }
21
+
22
+    public void printLambda(List<Person>members, CheckPerson tester){
23
+        members.forEach(person ->  {
24
+            if(tester.test(person)) {
25
+                person.printPerson();
26
+            }});
27
+        }
28
+    CheckPerson memberSexMale = p -> (p.gender.equals(Person.Sex.MALE));
29
+    }

+ 69
- 0
src/main/java/Person.java Datei anzeigen

@@ -0,0 +1,69 @@
1
+import java.time.LocalDate;
2
+import java.time.Period;
3
+import java.util.ArrayList;
4
+import java.util.List;
5
+
6
+public class Person {
7
+
8
+    public enum Sex {
9
+        MALE, FEMALE
10
+    }
11
+
12
+    String name;
13
+    LocalDate birthday;
14
+    Sex gender;
15
+    String emailAddress;
16
+
17
+    public Person(String name, LocalDate birthday, Sex gender, String emailAddress){
18
+        this.name = name;
19
+        this.birthday = birthday;
20
+        this.gender = gender;
21
+        this.emailAddress = emailAddress;
22
+    }
23
+
24
+    public Person(String name){
25
+        this.name = name;
26
+    }
27
+
28
+    public String getName() {
29
+        return name;
30
+    }
31
+
32
+    public void setName(String name) {
33
+        this.name = name;
34
+    }
35
+
36
+    public LocalDate getBirthday() {
37
+        return birthday;
38
+    }
39
+
40
+    public void setBirthday(LocalDate birthday) {
41
+        this.birthday = birthday;
42
+    }
43
+
44
+    public Sex getGender() {
45
+        return gender;
46
+    }
47
+
48
+    public void setGender(Sex gender) {
49
+        this.gender = gender;
50
+    }
51
+
52
+    public String getEmailAddress() {
53
+        return emailAddress;
54
+    }
55
+
56
+    public void setEmailAddress(String emailAddress) {
57
+        this.emailAddress = emailAddress;
58
+    }
59
+
60
+    public int getAge() {
61
+        return ( LocalDate.now().getYear() - birthday.getYear());
62
+    }
63
+
64
+    public void printPerson() {
65
+        String personPrint = this.name + ": " + this.emailAddress;
66
+        System.out.println(personPrint);
67
+    }
68
+
69
+}

+ 41
- 0
src/test/java/MembersTest.java Datei anzeigen

@@ -0,0 +1,41 @@
1
+import org.junit.Test;
2
+
3
+import java.util.List;
4
+
5
+import static org.junit.Assert.*;
6
+
7
+public class MembersTest {
8
+
9
+    @Test
10
+    public void add() {
11
+        Members test = new Members();
12
+        Person billy = new Person("Billy");
13
+        test.add(billy);
14
+        assertTrue(test.members.contains(billy));
15
+    }
16
+
17
+    @Test
18
+    public void printPersonsLambdaTest() {
19
+        Members test = new Members();
20
+        Person billy = new Person("Billy");
21
+        billy.setGender(Person.Sex.MALE);
22
+        test.add(billy);
23
+
24
+
25
+        assertTrue(test.memberSexMale.test(billy));
26
+
27
+    }
28
+
29
+
30
+    @Test
31
+    public void remove() {
32
+        Members test = new Members();
33
+        Person billy = new Person("Slap Shot");
34
+        Person timmy = new Person("Bronco");
35
+        test.add(billy);
36
+        test.add(timmy);
37
+        test.remove(billy);
38
+        assertTrue(!test.members.contains(billy));
39
+    }
40
+
41
+}

+ 42
- 0
src/test/java/PersonTest.java Datei anzeigen

@@ -0,0 +1,42 @@
1
+import org.junit.Test;
2
+import java.time.LocalDate;
3
+import static org.junit.Assert.*;
4
+
5
+public class PersonTest {
6
+     @Test
7
+     public void getSetName() {
8
+         Person test = new Person("Ben");
9
+         test.setName("Ben");
10
+         assertTrue(test.getName().equalsIgnoreCase("ben"));
11
+     }
12
+
13
+     @Test
14
+     public void getSetBirthday() {
15
+         Person test = new Person("Ben");
16
+         test.setBirthday(LocalDate.of(1981,12,21));
17
+         assertTrue(test.birthday.equals(LocalDate.of(1981,12,21)));
18
+     }
19
+
20
+     @Test
21
+     public void getSetGender() {
22
+         Person test = new Person("Ben");
23
+         test.setGender(Person.Sex.MALE);
24
+         assertTrue(test.getGender().equals(Person.Sex.MALE));
25
+     }
26
+
27
+
28
+     @Test
29
+     public void getSetEmailAddress() {
30
+         Person test = new Person("Dave");
31
+         test.setEmailAddress("totallyMeEmail@realEmail.com");
32
+         assertTrue(test.getEmailAddress().equalsIgnoreCase("totallyMeEmail@realEmail.com"));
33
+     }
34
+
35
+     @Test
36
+     public void getAge() {
37
+         Person test = new Person("Ben");
38
+         test.setBirthday(LocalDate.of(1981,12,21));
39
+         assertTrue(test.getAge() == 37);
40
+     }
41
+
42
+}

BIN
target/classes/CheckPerson.class Datei anzeigen


BIN
target/classes/Members.class Datei anzeigen


BIN
target/classes/Person$Sex.class Datei anzeigen


BIN
target/classes/Person.class Datei anzeigen


BIN
target/test-classes/MembersTest.class Datei anzeigen


BIN
target/test-classes/PersonTest.class Datei anzeigen