ThuyKhong 6 jaren geleden
bovenliggende
commit
9d0d5932ea

+ 1
- 0
.idea/.name Bestand weergeven

@@ -0,0 +1 @@
1
+generics

+ 16
- 0
.idea/compiler.xml Bestand weergeven

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

+ 13
- 0
.idea/libraries/Maven__junit_junit_4_12.xml Bestand weergeven

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

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

@@ -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_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
11
+    <output url="file://$PROJECT_DIR$/classes" />
12
+  </component>
13
+</project>

+ 8
- 0
.idea/modules.xml Bestand weergeven

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

+ 6
- 0
.idea/vcs.xml Bestand weergeven

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

+ 532
- 0
.idea/workspace.xml Bestand weergeven

@@ -0,0 +1,532 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="5ce3e933-4f4b-4b30-b0a6-9b792238846c" name="Default Changelist" comment="">
5
+      <change afterPath="$PROJECT_DIR$/src/main/java/MyArrayList.java" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/src/main/java/MyMap.java" afterDir="false" />
7
+      <change afterPath="$PROJECT_DIR$/src/main/java/MySet.java" afterDir="false" />
8
+      <change afterPath="$PROJECT_DIR$/src/test/java/TestMyArrayList.java" afterDir="false" />
9
+      <change afterPath="$PROJECT_DIR$/src/test/java/TestMyMap.java" afterDir="false" />
10
+      <change afterPath="$PROJECT_DIR$/src/test/java/TestMySet.java" afterDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/src/main/java/.deleteme" beforeDir="false" />
12
+      <change beforePath="$PROJECT_DIR$/src/test/java/.deleteme" beforeDir="false" />
13
+    </list>
14
+    <ignored path="$PROJECT_DIR$/target/" />
15
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
16
+    <option name="SHOW_DIALOG" value="false" />
17
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
18
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
19
+    <option name="LAST_RESOLUTION" value="IGNORE" />
20
+  </component>
21
+  <component name="FUSProjectUsageTrigger">
22
+    <session id="1210413710">
23
+      <usages-collector id="statistics.lifecycle.project">
24
+        <counts>
25
+          <entry key="project.closed" value="1" />
26
+          <entry key="project.open.time.0" value="1" />
27
+          <entry key="project.open.time.1" value="1" />
28
+          <entry key="project.opened" value="2" />
29
+        </counts>
30
+      </usages-collector>
31
+      <usages-collector id="statistics.file.extensions.open">
32
+        <counts>
33
+          <entry key="java" value="7" />
34
+        </counts>
35
+      </usages-collector>
36
+      <usages-collector id="statistics.file.types.open">
37
+        <counts>
38
+          <entry key="JAVA" value="7" />
39
+        </counts>
40
+      </usages-collector>
41
+      <usages-collector id="statistics.file.extensions.edit">
42
+        <counts>
43
+          <entry key="java" value="9745" />
44
+        </counts>
45
+      </usages-collector>
46
+      <usages-collector id="statistics.file.types.edit">
47
+        <counts>
48
+          <entry key="JAVA" value="9745" />
49
+        </counts>
50
+      </usages-collector>
51
+    </session>
52
+  </component>
53
+  <component name="FileEditorManager">
54
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
55
+      <file pinned="false" current-in-tab="false">
56
+        <entry file="file://$PROJECT_DIR$/src/main/java/MyArrayList.java">
57
+          <provider selected="true" editor-type-id="text-editor">
58
+            <state relative-caret-position="-195">
59
+              <caret line="56" column="44" lean-forward="true" selection-start-line="56" selection-start-column="44" selection-end-line="56" selection-end-column="44" />
60
+              <folding>
61
+                <element signature="e#158#159#0" expanded="true" />
62
+                <element signature="e#200#201#0" expanded="true" />
63
+                <element signature="e#263#264#0" expanded="true" />
64
+                <element signature="e#308#309#0" expanded="true" />
65
+                <element signature="e#398#399#0" expanded="true" />
66
+                <element signature="e#426#427#0" expanded="true" />
67
+                <element signature="e#2295#2296#0" expanded="true" />
68
+                <element signature="e#2332#2333#0" expanded="true" />
69
+              </folding>
70
+            </state>
71
+          </provider>
72
+        </entry>
73
+      </file>
74
+      <file pinned="false" current-in-tab="false">
75
+        <entry file="file://$PROJECT_DIR$/src/test/java/TestMyArrayList.java">
76
+          <provider selected="true" editor-type-id="text-editor">
77
+            <state relative-caret-position="90">
78
+              <caret line="6" selection-start-line="6" selection-end-line="6" />
79
+              <folding>
80
+                <element signature="imports" expanded="true" />
81
+              </folding>
82
+            </state>
83
+          </provider>
84
+        </entry>
85
+      </file>
86
+      <file pinned="false" current-in-tab="false">
87
+        <entry file="file://$PROJECT_DIR$/src/main/java/MySet.java">
88
+          <provider selected="true" editor-type-id="text-editor">
89
+            <state relative-caret-position="155">
90
+              <caret line="32" column="33" selection-start-line="32" selection-start-column="33" selection-end-line="32" selection-end-column="33" />
91
+              <folding>
92
+                <element signature="e#863#864#0" expanded="true" />
93
+                <element signature="e#904#905#0" expanded="true" />
94
+                <element signature="e#1609#1610#0" expanded="true" />
95
+                <element signature="e#1641#1642#0" expanded="true" />
96
+                <element signature="e#1665#1666#0" expanded="true" />
97
+                <element signature="e#1703#1704#0" expanded="true" />
98
+              </folding>
99
+            </state>
100
+          </provider>
101
+        </entry>
102
+      </file>
103
+      <file pinned="false" current-in-tab="false">
104
+        <entry file="file://$PROJECT_DIR$/src/test/java/TestMySet.java">
105
+          <provider selected="true" editor-type-id="text-editor">
106
+            <state relative-caret-position="1380">
107
+              <caret line="92" column="5" selection-start-line="92" selection-start-column="5" selection-end-line="92" selection-end-column="5" />
108
+              <folding>
109
+                <element signature="imports" expanded="true" />
110
+              </folding>
111
+            </state>
112
+          </provider>
113
+        </entry>
114
+      </file>
115
+      <file pinned="false" current-in-tab="false">
116
+        <entry file="file://$PROJECT_DIR$/src/main/java/MyMap.java">
117
+          <provider selected="true" editor-type-id="text-editor">
118
+            <state relative-caret-position="240">
119
+              <caret line="57" column="9" lean-forward="true" selection-start-line="57" selection-start-column="9" selection-end-line="57" selection-end-column="9" />
120
+              <folding>
121
+                <element signature="e#578#579#0" expanded="true" />
122
+                <element signature="e#610#611#0" expanded="true" />
123
+                <element signature="e#1065#1066#0" expanded="true" />
124
+                <element signature="e#1103#1104#0" expanded="true" />
125
+                <element signature="e#1283#1284#0" expanded="true" />
126
+                <element signature="e#1316#1317#0" expanded="true" />
127
+              </folding>
128
+            </state>
129
+          </provider>
130
+        </entry>
131
+      </file>
132
+      <file pinned="false" current-in-tab="true">
133
+        <entry file="file://$PROJECT_DIR$/src/test/java/TestMyMap.java">
134
+          <provider selected="true" editor-type-id="text-editor">
135
+            <state relative-caret-position="191">
136
+              <caret line="71" column="28" lean-forward="true" selection-start-line="71" selection-start-column="28" selection-end-line="71" selection-end-column="28" />
137
+              <folding>
138
+                <element signature="imports" expanded="true" />
139
+              </folding>
140
+            </state>
141
+          </provider>
142
+        </entry>
143
+      </file>
144
+    </leaf>
145
+  </component>
146
+  <component name="FileTemplateManagerImpl">
147
+    <option name="RECENT_TEMPLATES">
148
+      <list>
149
+        <option value="Class" />
150
+      </list>
151
+    </option>
152
+  </component>
153
+  <component name="Git.Settings">
154
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
155
+  </component>
156
+  <component name="IdeDocumentHistory">
157
+    <option name="CHANGED_PATHS">
158
+      <list>
159
+        <option value="$PROJECT_DIR$/src/main/java/Entry.java" />
160
+        <option value="$PROJECT_DIR$/src/main/java/MyArrayList.java" />
161
+        <option value="$PROJECT_DIR$/src/main/java/MySet.java" />
162
+        <option value="$PROJECT_DIR$/src/test/java/TestMySet.java" />
163
+        <option value="$PROJECT_DIR$/src/test/java/TestMyArrayList.java" />
164
+        <option value="$PROJECT_DIR$/src/test/java/TestMyMap.java" />
165
+        <option value="$PROJECT_DIR$/src/main/java/MyMap.java" />
166
+      </list>
167
+    </option>
168
+  </component>
169
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
170
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
171
+  <component name="JsGulpfileManager">
172
+    <detection-done>true</detection-done>
173
+    <sorting>DEFINITION_ORDER</sorting>
174
+  </component>
175
+  <component name="ProjectFrameBounds">
176
+    <option name="x" value="13" />
177
+    <option name="y" value="23" />
178
+    <option name="width" value="1003" />
179
+    <option name="height" value="797" />
180
+  </component>
181
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
182
+  <component name="ProjectView">
183
+    <navigator proportions="" version="1">
184
+      <foldersAlwaysOnTop value="true" />
185
+    </navigator>
186
+    <panes>
187
+      <pane id="PackagesPane" />
188
+      <pane id="ProjectPane">
189
+        <subPane>
190
+          <expand>
191
+            <path>
192
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
193
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
194
+            </path>
195
+            <path>
196
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
197
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
198
+              <item name="src" type="462c0819:PsiDirectoryNode" />
199
+            </path>
200
+            <path>
201
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
202
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
203
+              <item name="src" type="462c0819:PsiDirectoryNode" />
204
+              <item name="main" type="462c0819:PsiDirectoryNode" />
205
+            </path>
206
+            <path>
207
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
208
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
209
+              <item name="src" type="462c0819:PsiDirectoryNode" />
210
+              <item name="main" type="462c0819:PsiDirectoryNode" />
211
+              <item name="java" type="462c0819:PsiDirectoryNode" />
212
+            </path>
213
+            <path>
214
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
215
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
216
+              <item name="src" type="462c0819:PsiDirectoryNode" />
217
+              <item name="test" type="462c0819:PsiDirectoryNode" />
218
+            </path>
219
+            <path>
220
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
221
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
222
+              <item name="src" type="462c0819:PsiDirectoryNode" />
223
+              <item name="test" type="462c0819:PsiDirectoryNode" />
224
+              <item name="java" type="462c0819:PsiDirectoryNode" />
225
+            </path>
226
+          </expand>
227
+          <select />
228
+        </subPane>
229
+      </pane>
230
+      <pane id="Scope" />
231
+    </panes>
232
+  </component>
233
+  <component name="PropertiesComponent">
234
+    <property name="WebServerToolWindowFactoryState" value="false" />
235
+    <property name="aspect.path.notification.shown" value="true" />
236
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542340026320" />
237
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
238
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
239
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
240
+  </component>
241
+  <component name="RunDashboard">
242
+    <option name="ruleStates">
243
+      <list>
244
+        <RuleState>
245
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
246
+        </RuleState>
247
+        <RuleState>
248
+          <option name="name" value="StatusDashboardGroupingRule" />
249
+        </RuleState>
250
+      </list>
251
+    </option>
252
+  </component>
253
+  <component name="RunManager" selected="JUnit.TestMyMap.testRemove_givenKey">
254
+    <configuration name="TestMyMap.testGet" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
255
+      <module name="generics" />
256
+      <option name="PACKAGE_NAME" value="" />
257
+      <option name="MAIN_CLASS_NAME" value="TestMyMap" />
258
+      <option name="METHOD_NAME" value="testGet" />
259
+      <option name="TEST_OBJECT" value="method" />
260
+      <method v="2">
261
+        <option name="Make" enabled="true" />
262
+      </method>
263
+    </configuration>
264
+    <configuration name="TestMyMap.testRemove" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
265
+      <module name="generics" />
266
+      <option name="PACKAGE_NAME" value="" />
267
+      <option name="MAIN_CLASS_NAME" value="TestMyMap" />
268
+      <option name="METHOD_NAME" value="testRemove" />
269
+      <option name="TEST_OBJECT" value="method" />
270
+      <method v="2">
271
+        <option name="Make" enabled="true" />
272
+      </method>
273
+    </configuration>
274
+    <configuration name="TestMyMap.testRemove_givenKey" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
275
+      <module name="generics" />
276
+      <option name="PACKAGE_NAME" value="" />
277
+      <option name="MAIN_CLASS_NAME" value="TestMyMap" />
278
+      <option name="METHOD_NAME" value="testRemove_givenKey" />
279
+      <option name="TEST_OBJECT" value="method" />
280
+      <method v="2">
281
+        <option name="Make" enabled="true" />
282
+      </method>
283
+    </configuration>
284
+    <configuration name="TestMyMap.testRemove_givenKeyAndValue" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
285
+      <module name="generics" />
286
+      <option name="PACKAGE_NAME" value="" />
287
+      <option name="MAIN_CLASS_NAME" value="TestMyMap" />
288
+      <option name="METHOD_NAME" value="testRemove_givenKeyAndValue" />
289
+      <option name="TEST_OBJECT" value="method" />
290
+      <method v="2">
291
+        <option name="Make" enabled="true" />
292
+      </method>
293
+    </configuration>
294
+    <configuration name="TestMyMap.testReplace" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
295
+      <module name="generics" />
296
+      <option name="PACKAGE_NAME" value="" />
297
+      <option name="MAIN_CLASS_NAME" value="TestMyMap" />
298
+      <option name="METHOD_NAME" value="testReplace" />
299
+      <option name="TEST_OBJECT" value="method" />
300
+      <method v="2">
301
+        <option name="Make" enabled="true" />
302
+      </method>
303
+    </configuration>
304
+    <list>
305
+      <item itemvalue="JUnit.TestMyMap.testGet" />
306
+      <item itemvalue="JUnit.TestMyMap.testRemove" />
307
+      <item itemvalue="JUnit.TestMyMap.testRemove_givenKeyAndValue" />
308
+      <item itemvalue="JUnit.TestMyMap.testRemove_givenKey" />
309
+      <item itemvalue="JUnit.TestMyMap.testReplace" />
310
+    </list>
311
+    <recent_temporary>
312
+      <list>
313
+        <item itemvalue="JUnit.TestMyMap.testRemove_givenKey" />
314
+        <item itemvalue="JUnit.TestMyMap.testReplace" />
315
+        <item itemvalue="JUnit.TestMyMap.testRemove_givenKeyAndValue" />
316
+        <item itemvalue="JUnit.TestMyMap.testRemove" />
317
+        <item itemvalue="JUnit.TestMyMap.testGet" />
318
+      </list>
319
+    </recent_temporary>
320
+  </component>
321
+  <component name="SvnConfiguration">
322
+    <configuration />
323
+  </component>
324
+  <component name="TaskManager">
325
+    <task active="true" id="Default" summary="Default task">
326
+      <changelist id="5ce3e933-4f4b-4b30-b0a6-9b792238846c" name="Default Changelist" comment="" />
327
+      <created>1542147385624</created>
328
+      <option name="number" value="Default" />
329
+      <option name="presentableId" value="Default" />
330
+      <updated>1542147385624</updated>
331
+      <workItem from="1542147387263" duration="9758000" />
332
+      <workItem from="1542232637405" duration="26016000" />
333
+    </task>
334
+    <servers />
335
+  </component>
336
+  <component name="TestHistory">
337
+    <history-entry file="TestMyMap_testContainsValue_whenFalse - 2018.11.15 at 22h 27m 33s.xml">
338
+      <configuration name="TestMyMap.testContainsValue_whenFalse" configurationId="JUnit" />
339
+    </history-entry>
340
+    <history-entry file="TestMyMap_testClear - 2018.11.15 at 22h 28m 35s.xml">
341
+      <configuration name="TestMyMap.testClear" configurationId="JUnit" />
342
+    </history-entry>
343
+    <history-entry file="TestMyMap_testGet - 2018.11.15 at 22h 30m 41s.xml">
344
+      <configuration name="TestMyMap.testGet" configurationId="JUnit" />
345
+    </history-entry>
346
+    <history-entry file="TestMyMap_testRemove - 2018.11.15 at 22h 32m 53s.xml">
347
+      <configuration name="TestMyMap.testRemove" configurationId="JUnit" />
348
+    </history-entry>
349
+    <history-entry file="TestMyMap_testRemove - 2018.11.15 at 22h 34m 32s.xml">
350
+      <configuration name="TestMyMap.testRemove" configurationId="JUnit" />
351
+    </history-entry>
352
+    <history-entry file="TestMyMap_testRemove_givenKeyAndValue - 2018.11.15 at 22h 35m 43s.xml">
353
+      <configuration name="TestMyMap.testRemove_givenKeyAndValue" configurationId="JUnit" />
354
+    </history-entry>
355
+    <history-entry file="TestMyMap_testRemove_givenKey - 2018.11.15 at 22h 35m 45s.xml">
356
+      <configuration name="TestMyMap.testRemove_givenKey" configurationId="JUnit" />
357
+    </history-entry>
358
+    <history-entry file="TestMyMap_testRemove_givenKey - 2018.11.15 at 22h 36m 16s.xml">
359
+      <configuration name="TestMyMap.testRemove_givenKey" configurationId="JUnit" />
360
+    </history-entry>
361
+    <history-entry file="TestMyMap_testRemove_givenKey - 2018.11.15 at 22h 37m 08s.xml">
362
+      <configuration name="TestMyMap.testRemove_givenKey" configurationId="JUnit" />
363
+    </history-entry>
364
+    <history-entry file="TestMyMap_testReplace - 2018.11.15 at 22h 42m 05s.xml">
365
+      <configuration name="TestMyMap.testReplace" configurationId="JUnit" />
366
+    </history-entry>
367
+  </component>
368
+  <component name="TimeTrackingManager">
369
+    <option name="totallyTimeSpent" value="35774000" />
370
+  </component>
371
+  <component name="TodoView">
372
+    <todo-panel id="selected-file">
373
+      <is-autoscroll-to-source value="true" />
374
+    </todo-panel>
375
+    <todo-panel id="all">
376
+      <are-packages-shown value="true" />
377
+      <is-autoscroll-to-source value="true" />
378
+    </todo-panel>
379
+  </component>
380
+  <component name="ToolWindowManager">
381
+    <frame x="-20" y="23" width="1003" height="797" extended-state="0" />
382
+    <editor active="true" />
383
+    <layout>
384
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.19042663" />
385
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
386
+      <window_info id="Image Layers" order="2" />
387
+      <window_info id="Designer" order="3" />
388
+      <window_info id="UI Designer" order="4" />
389
+      <window_info id="Capture Tool" order="5" />
390
+      <window_info id="Favorites" order="6" side_tool="true" />
391
+      <window_info anchor="bottom" id="Message" order="0" />
392
+      <window_info anchor="bottom" id="Find" order="1" />
393
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32991204" />
394
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
395
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
396
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
397
+      <window_info anchor="bottom" id="TODO" order="6" weight="0.32991204" />
398
+      <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
399
+      <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
400
+      <window_info anchor="bottom" id="Terminal" order="9" />
401
+      <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
402
+      <window_info anchor="bottom" id="Messages" order="11" weight="0.32991204" />
403
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
404
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
405
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
406
+      <window_info anchor="right" id="Palette" order="3" />
407
+      <window_info anchor="right" id="Capture Analysis" order="4" />
408
+      <window_info anchor="right" id="Database" order="5" />
409
+      <window_info anchor="right" id="Theme Preview" order="6" />
410
+      <window_info anchor="right" id="Palette&#9;" order="7" />
411
+      <window_info anchor="right" id="Maven Projects" order="8" />
412
+    </layout>
413
+  </component>
414
+  <component name="TypeScriptGeneratedFilesManager">
415
+    <option name="version" value="1" />
416
+  </component>
417
+  <component name="VcsContentAnnotationSettings">
418
+    <option name="myLimit" value="2678400000" />
419
+  </component>
420
+  <component name="editorHistoryManager">
421
+    <entry file="file://$PROJECT_DIR$/src/main/java/Entry.java">
422
+      <provider selected="true" editor-type-id="text-editor">
423
+        <state relative-caret-position="75">
424
+          <caret line="6" column="27" lean-forward="true" selection-start-line="6" selection-start-column="27" selection-end-line="6" selection-end-column="27" />
425
+          <folding>
426
+            <element signature="e#173#174#0" expanded="true" />
427
+            <element signature="e#199#200#0" expanded="true" />
428
+            <element signature="e#235#236#0" expanded="true" />
429
+            <element signature="e#265#266#0" expanded="true" />
430
+            <element signature="e#295#296#0" expanded="true" />
431
+            <element signature="e#322#323#0" expanded="true" />
432
+            <element signature="e#363#364#0" expanded="true" />
433
+            <element signature="e#396#397#0" expanded="true" />
434
+          </folding>
435
+        </state>
436
+      </provider>
437
+    </entry>
438
+    <entry file="file://$PROJECT_DIR$/src/main/java/MySet.java">
439
+      <provider selected="true" editor-type-id="text-editor">
440
+        <state relative-caret-position="155">
441
+          <caret line="32" column="33" selection-start-line="32" selection-start-column="33" selection-end-line="32" selection-end-column="33" />
442
+          <folding>
443
+            <element signature="e#863#864#0" expanded="true" />
444
+            <element signature="e#904#905#0" expanded="true" />
445
+            <element signature="e#1609#1610#0" expanded="true" />
446
+            <element signature="e#1641#1642#0" expanded="true" />
447
+            <element signature="e#1665#1666#0" expanded="true" />
448
+            <element signature="e#1703#1704#0" expanded="true" />
449
+          </folding>
450
+        </state>
451
+      </provider>
452
+    </entry>
453
+    <entry file="file://$PROJECT_DIR$/src/main/java/MyArrayList.java">
454
+      <provider selected="true" editor-type-id="text-editor">
455
+        <state relative-caret-position="-195">
456
+          <caret line="56" column="44" lean-forward="true" selection-start-line="56" selection-start-column="44" selection-end-line="56" selection-end-column="44" />
457
+          <folding>
458
+            <element signature="e#158#159#0" expanded="true" />
459
+            <element signature="e#200#201#0" expanded="true" />
460
+            <element signature="e#263#264#0" expanded="true" />
461
+            <element signature="e#308#309#0" expanded="true" />
462
+            <element signature="e#398#399#0" expanded="true" />
463
+            <element signature="e#426#427#0" expanded="true" />
464
+            <element signature="e#2295#2296#0" expanded="true" />
465
+            <element signature="e#2332#2333#0" expanded="true" />
466
+          </folding>
467
+        </state>
468
+      </provider>
469
+    </entry>
470
+    <entry file="file://$PROJECT_DIR$/src/test/java/TestMySet.java">
471
+      <provider selected="true" editor-type-id="text-editor">
472
+        <state relative-caret-position="1380">
473
+          <caret line="92" column="5" selection-start-line="92" selection-start-column="5" selection-end-line="92" selection-end-column="5" />
474
+          <folding>
475
+            <element signature="imports" expanded="true" />
476
+          </folding>
477
+        </state>
478
+      </provider>
479
+    </entry>
480
+    <entry file="file://$PROJECT_DIR$/src/test/java/TestMyArrayList.java">
481
+      <provider selected="true" editor-type-id="text-editor">
482
+        <state relative-caret-position="90">
483
+          <caret line="6" selection-start-line="6" selection-end-line="6" />
484
+          <folding>
485
+            <element signature="imports" expanded="true" />
486
+          </folding>
487
+        </state>
488
+      </provider>
489
+    </entry>
490
+    <entry file="file://$PROJECT_DIR$/src/main/java/MyMap.java">
491
+      <provider selected="true" editor-type-id="text-editor">
492
+        <state relative-caret-position="240">
493
+          <caret line="57" column="9" lean-forward="true" selection-start-line="57" selection-start-column="9" selection-end-line="57" selection-end-column="9" />
494
+          <folding>
495
+            <element signature="e#578#579#0" expanded="true" />
496
+            <element signature="e#610#611#0" expanded="true" />
497
+            <element signature="e#1065#1066#0" expanded="true" />
498
+            <element signature="e#1103#1104#0" expanded="true" />
499
+            <element signature="e#1283#1284#0" expanded="true" />
500
+            <element signature="e#1316#1317#0" expanded="true" />
501
+          </folding>
502
+        </state>
503
+      </provider>
504
+    </entry>
505
+    <entry file="file://$PROJECT_DIR$/src/test/java/TestMyMap.java">
506
+      <provider selected="true" editor-type-id="text-editor">
507
+        <state relative-caret-position="191">
508
+          <caret line="71" column="28" lean-forward="true" selection-start-line="71" selection-start-column="28" selection-end-line="71" selection-end-column="28" />
509
+          <folding>
510
+            <element signature="imports" expanded="true" />
511
+          </folding>
512
+        </state>
513
+      </provider>
514
+    </entry>
515
+  </component>
516
+  <component name="masterDetails">
517
+    <states>
518
+      <state key="ProjectJDKs.UI">
519
+        <settings>
520
+          <last-edited>1.8</last-edited>
521
+          <splitter-proportions>
522
+            <option name="proportions">
523
+              <list>
524
+                <option value="0.2" />
525
+              </list>
526
+            </option>
527
+          </splitter-proportions>
528
+        </settings>
529
+      </state>
530
+    </states>
531
+  </component>
532
+</project>

+ 16
- 0
generics.iml Bestand weergeven

@@ -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_7">
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" name="Maven: junit:junit:4.12" level="project" />
14
+    <orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
15
+  </component>
16
+</module>

+ 0
- 0
src/main/java/.deleteme Bestand weergeven


+ 120
- 0
src/main/java/MyArrayList.java Bestand weergeven

@@ -0,0 +1,120 @@
1
+import java.util.Arrays;
2
+
3
+public class MyArrayList<T> {
4
+    private Object[] array;
5
+    private int size;
6
+    private int capacity;
7
+
8
+    public MyArrayList() {
9
+        this.array = new Object[0];
10
+    }
11
+
12
+    public MyArrayList(int size){
13
+        this.array = new Object[size];
14
+    }
15
+
16
+    public Object[] getArray(){
17
+        return array;
18
+    }
19
+
20
+    public void add(Object newObject) {
21
+        Object[] newArray = Arrays.copyOf(this.array, array.length + 1);
22
+        newArray[newArray.length-1] = newObject;
23
+        array = newArray;
24
+
25
+    }
26
+
27
+    public void add(int index, Object newObject){
28
+        Object[] newArray = Arrays.copyOf(this.array, array.length+1);
29
+        for (int i = 0; i < array.length-1; i++) {
30
+            if(i<index){
31
+                newArray[i] = array[i];
32
+            }else if(i>index){
33
+                newArray[i] = array[i-1];
34
+            }else{
35
+                newArray[i] = newObject;
36
+            }
37
+        }
38
+        array = newArray;
39
+    }
40
+
41
+    public Object get(int index){
42
+        Object o = null;
43
+        for (int i = 0; i < array.length; i++) {
44
+            if (i == index){
45
+                o = array[i];
46
+            }
47
+        }
48
+        return o;
49
+    }
50
+
51
+    public void remove(int index){
52
+        Object[] newArray = new Object[array.length-1];
53
+        for (int i = 0; i < array.length-1; i++) {
54
+            if(i>index) {
55
+                newArray[i] = array[i];
56
+            }if(i<index){
57
+                    newArray[i-1]= array[i];
58
+            }
59
+        }
60
+        array = newArray;
61
+    }
62
+    
63
+    public void remove (Object obj){
64
+        Object[] newArray = new Object[array.length-1];
65
+        int index = 0;
66
+        for (int i = 0; i < array.length-1; i++) {
67
+                if(array[i].equals(obj)){
68
+                    index = i;
69
+                }
70
+        }
71
+        remove(index);
72
+        array = newArray;
73
+    }
74
+
75
+    public int size(){
76
+        int count = 0;
77
+        for (int i = 0; i < array.length; i++) {
78
+            count = count+1;
79
+        }
80
+        return count;
81
+    }
82
+
83
+    public void set(int index, Object obj){
84
+        for (int i = 0; i < array.length; i++) {
85
+            if(i == index){
86
+                array[i] = obj;
87
+            }
88
+        }
89
+    }
90
+
91
+    public void clear(){
92
+        array = new Object[0];
93
+    }
94
+
95
+    public boolean isEmpty(){
96
+        if(array.length ==0){
97
+            return true;
98
+        } else
99
+            return false;
100
+    }
101
+
102
+    public boolean contains(Object o) {
103
+        if (array.length == 0) {
104
+            return false;
105
+        } else {
106
+            for (Object obj : getArray()) {
107
+                try {
108
+                    if (obj.equals(o)) {
109
+                        return true;
110
+                    }
111
+                }catch (NullPointerException e){
112
+
113
+                }
114
+            }
115
+            return false;
116
+        }
117
+    }
118
+
119
+
120
+}

+ 81
- 0
src/main/java/MyMap.java Bestand weergeven

@@ -0,0 +1,81 @@
1
+public class MyMap<K,V>{
2
+    private MyArrayList<V> mapValue;
3
+    private MySet<K> mapKey;
4
+    private int size;
5
+
6
+
7
+    public MyMap(){
8
+        this.size = 0;
9
+        this.mapKey = new MySet<>();
10
+        this.mapValue = new MyArrayList<>();
11
+    }
12
+
13
+    public MyMap(int size){
14
+        this.size = size;
15
+        this.mapValue = new MyArrayList<>();
16
+        this.mapKey = new MySet<>();
17
+    }
18
+
19
+    public void put(K key, V value){
20
+        mapKey.add(key);
21
+        mapValue.add(value);
22
+    }
23
+
24
+    public boolean containsKey(K key){
25
+
26
+        return mapKey.contains(key);
27
+    }
28
+
29
+    public boolean containsValue(V value){
30
+        return mapValue.contains(value);
31
+    }
32
+
33
+    public void clear(){
34
+        mapKey.clear();
35
+        mapValue.clear();
36
+    }
37
+
38
+
39
+    public V get(K key){
40
+        int index = 0;
41
+        for (int i = 0; i < mapKey.size(); i++) {
42
+            if (mapKey.get(i).equals(key)){
43
+                index = i;
44
+            }
45
+        }
46
+        return (V)mapValue.get(index);
47
+    }
48
+
49
+    public boolean isEmpty(){
50
+        return mapKey.isEmpty();
51
+    }
52
+
53
+    public void remove(Object key){
54
+        for (int i = 0; i < mapKey.size(); i++) {
55
+            if(mapKey.get(i).equals(key)){
56
+                mapKey.remove(key);
57
+            }
58
+        }
59
+    }
60
+
61
+    public void remove(Object key, Object value){
62
+        for (int i = 0; i < mapKey.size(); i++) {
63
+            if(mapKey.get(i).equals(key)){
64
+                mapKey.remove(key);
65
+                mapValue.remove(value);
66
+            }
67
+        }
68
+    }
69
+
70
+    public void replace(K key, V value){
71
+        for (int i = 0; i < mapKey.size(); i++) {
72
+            if (mapKey.get(i).equals(key)){
73
+                mapValue.set(i, value);
74
+            }
75
+        }
76
+    }
77
+
78
+    public int size(){
79
+        return mapKey.size();
80
+    }
81
+}

+ 91
- 0
src/main/java/MySet.java Bestand weergeven

@@ -0,0 +1,91 @@
1
+import java.util.Arrays;
2
+
3
+public class MySet<E> {
4
+    private MyArrayList<E> set;
5
+
6
+    public MySet() {
7
+        this.set = new MyArrayList<>(0);
8
+
9
+    }
10
+
11
+    public void MySet(){}
12
+
13
+    public void add(Object obj) {
14
+        if (set.contains(obj)) {
15
+            throw new IllegalArgumentException("Value already exist in set");
16
+        }else{
17
+            set.add(obj);
18
+        }
19
+    }
20
+
21
+    public Object get(int index){
22
+        Object o = null;
23
+        for (int i = 0; i < set.size(); i++) {
24
+            if (i == index){
25
+                o = set.get(i);
26
+            }
27
+        }
28
+        return o;
29
+    }
30
+
31
+    public void addAll(MyArrayList<Object> e){
32
+
33
+        for (int i = set.size()-2; i < e.size(); i++) {
34
+            if (contains(e.get(i))){
35
+                throw new IllegalArgumentException(e.get(i)+" already exist in set");
36
+            }else{
37
+                set.add(e.get(i));
38
+            }
39
+        }
40
+    }
41
+
42
+    public void clear(){
43
+        set = new MyArrayList<>();
44
+    }
45
+
46
+    public boolean contains(Object o){
47
+
48
+        return this.set.contains(o);
49
+    }
50
+
51
+    public boolean containsAll(MyArrayList<E> myArrayList){
52
+
53
+        for (int i = 0; i < myArrayList.size(); i++) {
54
+            if(contains(myArrayList.get(i))){
55
+                return true;
56
+            }
57
+        }
58
+        return false;
59
+    }
60
+
61
+    public boolean equals(Object o){
62
+        Object objO = new Object();
63
+        if(o.equals(objO)){
64
+            return true;
65
+        }else{
66
+            return false;
67
+        }
68
+    }
69
+
70
+    public boolean isEmpty(){
71
+
72
+        return this.set.isEmpty();
73
+    }
74
+
75
+    public void remove(Object o){
76
+      this.set.remove(o);
77
+    }
78
+
79
+    public int size(){
80
+        return this.set.size();
81
+    }
82
+
83
+    public Object[] toArray(){
84
+        Object[] result=new Object[set.size()];
85
+        for (int i = 0; i < set.size(); i++) {
86
+            result[i] = set.get(i);
87
+        }
88
+
89
+        return result;
90
+    }
91
+}

+ 0
- 0
src/test/java/.deleteme Bestand weergeven


+ 119
- 0
src/test/java/TestMyArrayList.java Bestand weergeven

@@ -0,0 +1,119 @@
1
+import org.junit.Assert;
2
+import org.junit.Before;
3
+import org.junit.Test;
4
+
5
+public class TestMyArrayList{
6
+    MyArrayList arrayList = new MyArrayList();
7
+
8
+
9
+    @Test
10
+    public void testAdd(){
11
+        Object item = new Object();
12
+        int expected = 1;
13
+        arrayList.add(item);
14
+        int actual = arrayList.size();
15
+
16
+        Assert.assertEquals(expected,actual);
17
+    }
18
+
19
+    @Test
20
+    public void testAdd_atSpecificIndex(){
21
+
22
+        Integer one = 1;
23
+        Integer two = 2;
24
+        arrayList.add(two);
25
+        arrayList.add(0,one);
26
+        Integer expected = 2;
27
+        Integer actual = (Integer)arrayList.size();
28
+
29
+        Assert.assertEquals(expected, actual);
30
+    }
31
+
32
+    @Test
33
+    public void testGet(){
34
+        arrayList.add(1);
35
+        Object actual = arrayList.get(0);
36
+        Assert.assertEquals(1, actual);
37
+    }
38
+
39
+    @Test
40
+    public void testRemove_byIndex(){
41
+        Integer one = 1;
42
+        Integer two = 2;
43
+        arrayList.add(one);
44
+        arrayList.add(two);
45
+        arrayList.remove(0);
46
+
47
+
48
+        Assert.assertEquals(1, arrayList.size());
49
+    }
50
+
51
+    @Test
52
+    public void testRemove_byObject(){
53
+        Object a = "a";
54
+        Object b = "b";
55
+        Object c = "c";
56
+        arrayList.add(a);
57
+        arrayList.add(b);
58
+        arrayList.add(c);
59
+        arrayList.remove(a);
60
+
61
+        Assert.assertEquals(2,arrayList.size());
62
+    }
63
+
64
+    @Test
65
+    public void testSet(){
66
+        Integer one = 1;
67
+        Integer two = 2;
68
+        Integer three = 3;
69
+
70
+        arrayList.add(three);
71
+        arrayList.add(two);
72
+        arrayList.add(three);
73
+        arrayList.set(0,one);
74
+
75
+        Assert.assertEquals(one,arrayList.get(0));
76
+    }
77
+
78
+    @Test
79
+    public void testClear(){
80
+
81
+        arrayList.clear();
82
+        int expected = 0;
83
+        int actual = arrayList.size();
84
+
85
+        Assert.assertEquals(expected,actual);
86
+    }
87
+
88
+    @Test
89
+    public void testIsEmpty(){
90
+
91
+        arrayList.clear();
92
+
93
+        Assert.assertTrue(arrayList.isEmpty());
94
+    }
95
+
96
+    @Test
97
+    public void testIsEmpty_whenItsNot(){
98
+
99
+        Integer one = 1;
100
+        arrayList.add(one);
101
+
102
+        Assert.assertFalse(arrayList.isEmpty());
103
+    }
104
+
105
+    @Test
106
+    public void testContains(){
107
+        String str = "Hello";
108
+        arrayList.add(str);
109
+
110
+        Assert.assertTrue(arrayList.contains(str));
111
+    }
112
+
113
+    @Test
114
+    public void testContains_whenItDoesnt(){
115
+        String str = "Hello";
116
+
117
+        Assert.assertFalse(arrayList.contains(str));
118
+    }
119
+}

+ 84
- 0
src/test/java/TestMyMap.java Bestand weergeven

@@ -0,0 +1,84 @@
1
+import org.junit.Assert;
2
+import org.junit.Before;
3
+import org.junit.Test;
4
+
5
+public class TestMyMap<K,V>{
6
+    MyMap<String, Integer> myMap = new MyMap<>();
7
+
8
+    @Before
9
+    public void setup(){
10
+        myMap.put("One", 1);
11
+        myMap.put("Two", 2);
12
+        myMap.put("Three", 3);
13
+    }
14
+
15
+    @Test
16
+    public void testPut(){
17
+        myMap.put("Four", 4);
18
+
19
+        Assert.assertEquals(4,myMap.size());
20
+    }
21
+
22
+    @Test
23
+    public void testContainsKey_whenTrue(){
24
+
25
+        Assert.assertTrue(myMap.containsKey("One"));
26
+    }
27
+
28
+    @Test
29
+    public void testContainsKey_whenFalse(){
30
+
31
+        Assert.assertFalse(myMap.containsKey("Four"));
32
+    }
33
+
34
+    @Test
35
+    public void testContainsValue_whenTrue(){
36
+
37
+        Assert.assertTrue(myMap.containsValue(3));
38
+    }
39
+
40
+    @Test
41
+    public void testContainsValue_whenFalse(){
42
+
43
+        Assert.assertFalse(myMap.containsValue(5));
44
+    }
45
+
46
+    @Test
47
+    public void testClear(){
48
+        myMap.clear();
49
+
50
+        Assert.assertTrue(myMap.isEmpty());
51
+    }
52
+
53
+    @Test
54
+    public void testGet(){
55
+
56
+        Integer expected = 3;
57
+        Integer actual = myMap.get("Three");
58
+
59
+        Assert.assertEquals(expected,actual);
60
+    }
61
+
62
+    @Test
63
+    public void testRemove_givenKeyAndValue(){
64
+
65
+        myMap.remove("Three",3);
66
+
67
+        Assert.assertFalse(myMap.containsKey("Three"));
68
+    }
69
+
70
+    @Test
71
+    public void testRemove_givenKey(){
72
+        myMap.remove("One");
73
+
74
+        Assert.assertFalse(myMap.containsKey("One"));
75
+    }
76
+
77
+    @Test
78
+    public void testReplace(){
79
+        myMap.replace("Three", 4);
80
+
81
+        Integer expected = 4;
82
+        Assert.assertEquals(expected, myMap.get("Three"));
83
+    }
84
+}

+ 95
- 0
src/test/java/TestMySet.java Bestand weergeven

@@ -0,0 +1,95 @@
1
+import org.junit.Assert;
2
+import org.junit.Before;
3
+import org.junit.Test;
4
+
5
+public class TestMySet {
6
+    MySet set = new MySet();
7
+
8
+    @Before
9
+    public void setup(){
10
+        Integer one = 1;
11
+        Integer two = 2;
12
+        set.add(one);
13
+        set.add(two);
14
+    }
15
+
16
+    @Test
17
+    public void testAdd(){
18
+        Integer three = 3;
19
+
20
+        set.add(three);
21
+
22
+        Assert.assertEquals(3,set.size());
23
+    }
24
+
25
+    @Test(expected = IllegalArgumentException.class)
26
+    public void testAdd_duplicate(){
27
+        Integer one = 1;
28
+
29
+        set.add(one);
30
+
31
+    }
32
+
33
+    @Test
34
+    public void testAddAll(){
35
+        MyArrayList<Integer> integerCollection = new MyArrayList<>();
36
+        integerCollection.add(6);
37
+        integerCollection.add(3);
38
+
39
+        int size = 4;
40
+        set.addAll(integerCollection);
41
+
42
+        Assert.assertEquals(size, set.size());
43
+    }
44
+
45
+    @Test(expected = IllegalArgumentException.class)
46
+    public void testAddAll_withDuplicate(){
47
+        MyArrayList<Integer> integerCollection = new MyArrayList<>();
48
+        integerCollection.add(1);
49
+        integerCollection.add(3);
50
+        integerCollection.add(5);
51
+
52
+        Integer one = 1;
53
+        set.add(one);
54
+    }
55
+
56
+    @Test
57
+    public void testClear(){
58
+
59
+        set.clear();
60
+
61
+        Assert.assertTrue(set.isEmpty());
62
+    }
63
+
64
+    @Test
65
+    public void testContains(){
66
+
67
+        Assert.assertTrue(set.contains(1));
68
+    }
69
+
70
+    @Test
71
+    public void testContains_whenFalse(){
72
+
73
+        Assert.assertFalse(set.contains(3));
74
+    }
75
+
76
+    @Test
77
+    public void testContainAll(){
78
+        MyArrayList<Integer> integerCollection = new MyArrayList<>();
79
+        integerCollection.add(1);
80
+        integerCollection.add(2);
81
+
82
+        Assert.assertTrue(set.containsAll(integerCollection));
83
+    }
84
+
85
+    @Test
86
+    public void testContainAll_whenFalse(){
87
+        MyArrayList<Integer> integerCollection = new MyArrayList<>();
88
+
89
+        integerCollection.add(3);
90
+        integerCollection.add(5);
91
+
92
+        Assert.assertFalse(set.containsAll(integerCollection));
93
+    }
94
+
95
+}