Bladeren bron

initial commit. MyArrayList add method done, tested 100% coverage.

jasamuels 6 jaren geleden
bovenliggende
commit
a00bb8e7f4
8 gewijzigde bestanden met toevoegingen van 514 en 2 verwijderingen
  1. 1
    0
      .idea/.name
  2. 13
    0
      .idea/compiler.xml
  3. 14
    0
      .idea/misc.xml
  4. 6
    0
      .idea/vcs.xml
  5. 386
    0
      .idea/workspace.xml
  6. 2
    2
      pom.xml
  7. 62
    0
      src/main/java/MyArrayList.java
  8. 30
    0
      src/test/java/MyArrayListTest.java

+ 1
- 0
.idea/.name Bestand weergeven

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

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

@@ -0,0 +1,13 @@
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
+  </component>
13
+</project>

+ 14
- 0
.idea/misc.xml Bestand weergeven

@@ -0,0 +1,14 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ExternalStorageConfigurationManager" enabled="true" />
4
+  <component name="MavenProjectsManager">
5
+    <option name="originalFiles">
6
+      <list>
7
+        <option value="$PROJECT_DIR$/pom.xml" />
8
+      </list>
9
+    </option>
10
+  </component>
11
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
12
+    <output url="file://$PROJECT_DIR$/out" />
13
+  </component>
14
+</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>

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

@@ -0,0 +1,386 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="2eeaadab-5121-4f8c-9df4-6e07385b37e8" name="Default Changelist" comment="">
5
+      <change afterPath="$PROJECT_DIR$/src/main/java/MyArrayList.java" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/src/test/java/MyArrayListTest.java" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
8
+    </list>
9
+    <ignored path="$PROJECT_DIR$/target/" />
10
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
11
+    <option name="SHOW_DIALOG" value="false" />
12
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
13
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
14
+    <option name="LAST_RESOLUTION" value="IGNORE" />
15
+  </component>
16
+  <component name="CoverageDataManager">
17
+    <SUITE FILE_PATH="coverage/generics$MyArrayListTest_addTest.ic" NAME="MyArrayListTest.addTest Coverage Results" MODIFIED="1542750815105" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
18
+  </component>
19
+  <component name="DockManager">
20
+    <window id="1">
21
+      <content type="file-editors">
22
+        <state>
23
+          <leaf>
24
+            <file pinned="false" current-in-tab="true">
25
+              <entry file="file://$PROJECT_DIR$/src/main/java/MyArrayList.java">
26
+                <provider selected="true" editor-type-id="text-editor">
27
+                  <state relative-caret-position="204">
28
+                    <caret line="15" column="8" lean-forward="true" selection-start-line="15" selection-start-column="8" selection-end-line="15" selection-end-column="8" />
29
+                    <folding>
30
+                      <element signature="e#120#121#0" expanded="true" />
31
+                      <element signature="e#162#163#0" expanded="true" />
32
+                      <element signature="e#784#785#0" expanded="true" />
33
+                      <element signature="e#816#817#0" expanded="true" />
34
+                    </folding>
35
+                  </state>
36
+                </provider>
37
+              </entry>
38
+            </file>
39
+          </leaf>
40
+        </state>
41
+      </content>
42
+    </window>
43
+  </component>
44
+  <component name="FUSProjectUsageTrigger">
45
+    <session id="1287465751">
46
+      <usages-collector id="statistics.lifecycle.project">
47
+        <counts>
48
+          <entry key="project.closed" value="1" />
49
+          <entry key="project.open.time.0" value="1" />
50
+          <entry key="project.open.time.1" value="1" />
51
+          <entry key="project.opened" value="2" />
52
+        </counts>
53
+      </usages-collector>
54
+      <usages-collector id="statistics.file.extensions.open">
55
+        <counts>
56
+          <entry key="class" value="1" />
57
+          <entry key="java" value="8" />
58
+        </counts>
59
+      </usages-collector>
60
+      <usages-collector id="statistics.file.types.open">
61
+        <counts>
62
+          <entry key="CLASS" value="1" />
63
+          <entry key="JAVA" value="8" />
64
+        </counts>
65
+      </usages-collector>
66
+      <usages-collector id="statistics.file.extensions.edit">
67
+        <counts>
68
+          <entry key="java" value="1849" />
69
+        </counts>
70
+      </usages-collector>
71
+      <usages-collector id="statistics.file.types.edit">
72
+        <counts>
73
+          <entry key="JAVA" value="1849" />
74
+        </counts>
75
+      </usages-collector>
76
+    </session>
77
+  </component>
78
+  <component name="FileEditorManager">
79
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
80
+      <file pinned="false" current-in-tab="true">
81
+        <entry file="file://$PROJECT_DIR$/src/test/java/MyArrayListTest.java">
82
+          <provider selected="true" editor-type-id="text-editor">
83
+            <state relative-caret-position="465">
84
+              <caret line="31" lean-forward="true" selection-start-line="31" selection-end-line="31" />
85
+              <folding>
86
+                <element signature="imports" expanded="true" />
87
+              </folding>
88
+            </state>
89
+          </provider>
90
+        </entry>
91
+      </file>
92
+    </leaf>
93
+  </component>
94
+  <component name="FileTemplateManagerImpl">
95
+    <option name="RECENT_TEMPLATES">
96
+      <list>
97
+        <option value="Class" />
98
+      </list>
99
+    </option>
100
+  </component>
101
+  <component name="Git.Settings">
102
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
103
+  </component>
104
+  <component name="IdeDocumentHistory">
105
+    <option name="CHANGED_PATHS">
106
+      <list>
107
+        <option value="$PROJECT_DIR$/src/main/java/Program.java" />
108
+        <option value="$PROJECT_DIR$/src/test/java/ProgramTest.java" />
109
+        <option value="$PROJECT_DIR$/src/test/java/MyArrayListTest.java" />
110
+        <option value="$PROJECT_DIR$/src/main/java/MyArrayList.java" />
111
+      </list>
112
+    </option>
113
+  </component>
114
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
115
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
116
+  <component name="JsGulpfileManager">
117
+    <detection-done>true</detection-done>
118
+    <sorting>DEFINITION_ORDER</sorting>
119
+  </component>
120
+  <component name="MavenImportPreferences">
121
+    <option name="importingSettings">
122
+      <MavenImportingSettings>
123
+        <option name="importAutomatically" value="true" />
124
+      </MavenImportingSettings>
125
+    </option>
126
+  </component>
127
+  <component name="ProjectFrameBounds">
128
+    <option name="x" value="654" />
129
+    <option name="y" value="-1057" />
130
+    <option name="width" value="960" />
131
+    <option name="height" value="1057" />
132
+  </component>
133
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true">
134
+    <ConfirmationsSetting value="2" id="Add" />
135
+  </component>
136
+  <component name="ProjectView">
137
+    <navigator proportions="" version="1">
138
+      <foldersAlwaysOnTop value="true" />
139
+    </navigator>
140
+    <panes>
141
+      <pane id="PackagesPane" />
142
+      <pane id="Scope" />
143
+      <pane id="ProjectPane">
144
+        <subPane>
145
+          <expand>
146
+            <path>
147
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
148
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
149
+            </path>
150
+            <path>
151
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
152
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
153
+              <item name="src" type="462c0819:PsiDirectoryNode" />
154
+            </path>
155
+            <path>
156
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
157
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
158
+              <item name="src" type="462c0819:PsiDirectoryNode" />
159
+              <item name="main" type="462c0819:PsiDirectoryNode" />
160
+            </path>
161
+            <path>
162
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
163
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
164
+              <item name="src" type="462c0819:PsiDirectoryNode" />
165
+              <item name="main" type="462c0819:PsiDirectoryNode" />
166
+              <item name="java" type="462c0819:PsiDirectoryNode" />
167
+            </path>
168
+            <path>
169
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
170
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
171
+              <item name="src" type="462c0819:PsiDirectoryNode" />
172
+              <item name="test" type="462c0819:PsiDirectoryNode" />
173
+            </path>
174
+            <path>
175
+              <item name="generics" type="b2602c69:ProjectViewProjectNode" />
176
+              <item name="CR-MicroLabs-Generics-MyArrayList" type="462c0819:PsiDirectoryNode" />
177
+              <item name="src" type="462c0819:PsiDirectoryNode" />
178
+              <item name="test" type="462c0819:PsiDirectoryNode" />
179
+              <item name="java" type="462c0819:PsiDirectoryNode" />
180
+            </path>
181
+          </expand>
182
+          <select />
183
+        </subPane>
184
+      </pane>
185
+    </panes>
186
+  </component>
187
+  <component name="PropertiesComponent">
188
+    <property name="WebServerToolWindowFactoryState" value="false" />
189
+    <property name="aspect.path.notification.shown" value="true" />
190
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542750814879" />
191
+    <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
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
+  </component>
195
+  <component name="RunDashboard">
196
+    <option name="ruleStates">
197
+      <list>
198
+        <RuleState>
199
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
200
+        </RuleState>
201
+        <RuleState>
202
+          <option name="name" value="StatusDashboardGroupingRule" />
203
+        </RuleState>
204
+      </list>
205
+    </option>
206
+  </component>
207
+  <component name="RunManager" selected="JUnit.MyArrayListTest.addTest">
208
+    <configuration name="MyArrayListTest.addTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
209
+      <module name="generics" />
210
+      <option name="PACKAGE_NAME" value="" />
211
+      <option name="MAIN_CLASS_NAME" value="MyArrayListTest" />
212
+      <option name="METHOD_NAME" value="addTest" />
213
+      <option name="TEST_OBJECT" value="method" />
214
+      <method v="2">
215
+        <option name="Make" enabled="true" />
216
+      </method>
217
+    </configuration>
218
+    <configuration name="ProgramTest.TestCase4" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
219
+      <module name="generics" />
220
+      <option name="PACKAGE_NAME" value="" />
221
+      <option name="MAIN_CLASS_NAME" value="ProgramTest" />
222
+      <option name="METHOD_NAME" value="TestCase4" />
223
+      <option name="TEST_OBJECT" value="method" />
224
+      <method v="2">
225
+        <option name="Make" enabled="true" />
226
+      </method>
227
+    </configuration>
228
+    <list>
229
+      <item itemvalue="JUnit.ProgramTest.TestCase4" />
230
+      <item itemvalue="JUnit.MyArrayListTest.addTest" />
231
+    </list>
232
+    <recent_temporary>
233
+      <list>
234
+        <item itemvalue="JUnit.MyArrayListTest.addTest" />
235
+        <item itemvalue="JUnit.ProgramTest.TestCase4" />
236
+      </list>
237
+    </recent_temporary>
238
+  </component>
239
+  <component name="SvnConfiguration">
240
+    <configuration />
241
+  </component>
242
+  <component name="TaskManager">
243
+    <task active="true" id="Default" summary="Default task">
244
+      <changelist id="2eeaadab-5121-4f8c-9df4-6e07385b37e8" name="Default Changelist" comment="" />
245
+      <created>1542726854451</created>
246
+      <option name="number" value="Default" />
247
+      <option name="presentableId" value="Default" />
248
+      <updated>1542726854451</updated>
249
+      <workItem from="1542726855981" duration="2759000" />
250
+      <workItem from="1542732517986" duration="5180000" />
251
+    </task>
252
+    <servers />
253
+  </component>
254
+  <component name="TestHistory">
255
+    <history-entry file="ProgramTest_TestCase4 - 2018.11.20 at 12h 02m 04s.xml">
256
+      <configuration name="ProgramTest.TestCase4" configurationId="JUnit" />
257
+    </history-entry>
258
+    <history-entry file="ProgramTest_TestCase4 - 2018.11.20 at 12h 03m 00s.xml">
259
+      <configuration name="ProgramTest.TestCase4" configurationId="JUnit" />
260
+    </history-entry>
261
+    <history-entry file="ProgramTest_TestCase4 - 2018.11.20 at 12h 03m 16s.xml">
262
+      <configuration name="ProgramTest.TestCase4" configurationId="JUnit" />
263
+    </history-entry>
264
+    <history-entry file="ProgramTest_TestCase4 - 2018.11.20 at 12h 03m 44s.xml">
265
+      <configuration name="ProgramTest.TestCase4" configurationId="JUnit" />
266
+    </history-entry>
267
+    <history-entry file="MyArrayListTest_addTest - 2018.11.20 at 16h 28m 00s.xml">
268
+      <configuration name="MyArrayListTest.addTest" configurationId="JUnit" />
269
+    </history-entry>
270
+    <history-entry file="MyArrayListTest_addTest - 2018.11.20 at 16h 46m 30s.xml">
271
+      <configuration name="MyArrayListTest.addTest" configurationId="JUnit" />
272
+    </history-entry>
273
+  </component>
274
+  <component name="TimeTrackingManager">
275
+    <option name="totallyTimeSpent" value="7939000" />
276
+  </component>
277
+  <component name="ToolWindowManager">
278
+    <frame x="654" y="-1057" width="960" height="1057" extended-state="0" />
279
+    <editor active="true" />
280
+    <layout>
281
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.25381264" />
282
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
283
+      <window_info id="Image Layers" order="2" />
284
+      <window_info id="Designer" order="3" />
285
+      <window_info id="UI Designer" order="4" />
286
+      <window_info id="Capture Tool" order="5" />
287
+      <window_info id="Favorites" order="6" side_tool="true" />
288
+      <window_info anchor="bottom" id="Messages" />
289
+      <window_info anchor="bottom" id="Message" order="0" />
290
+      <window_info anchor="bottom" id="Find" order="1" visible="true" weight="0.4660767" />
291
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.22287968" />
292
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
293
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
294
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
295
+      <window_info anchor="bottom" id="TODO" order="6" />
296
+      <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
297
+      <window_info anchor="bottom" id="Terminal" order="8" />
298
+      <window_info anchor="bottom" id="Event Log" order="9" side_tool="true" />
299
+      <window_info anchor="bottom" id="Version Control" order="10" show_stripe_button="false" />
300
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
301
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
302
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
303
+      <window_info anchor="right" id="Palette" order="3" />
304
+      <window_info anchor="right" id="Capture Analysis" order="4" />
305
+      <window_info anchor="right" id="Theme Preview" order="5" />
306
+      <window_info anchor="right" id="Palette&#9;" order="6" />
307
+      <window_info anchor="right" id="Database" order="7" />
308
+      <window_info anchor="right" id="Maven Projects" order="8" />
309
+    </layout>
310
+  </component>
311
+  <component name="TypeScriptGeneratedFilesManager">
312
+    <option name="version" value="1" />
313
+  </component>
314
+  <component name="VcsContentAnnotationSettings">
315
+    <option name="myLimit" value="2678400000" />
316
+  </component>
317
+  <component name="editorHistoryManager">
318
+    <entry file="file://$PROJECT_DIR$/src/test/java/MyArrayList.java" />
319
+    <entry file="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/org/junit/Assert.class">
320
+      <provider selected="true" editor-type-id="text-editor">
321
+        <state relative-caret-position="132">
322
+          <caret line="38" selection-start-line="38" selection-end-line="38" />
323
+        </state>
324
+      </provider>
325
+    </entry>
326
+    <entry file="file://$PROJECT_DIR$/src/test/java/ProgramTest.java">
327
+      <provider selected="true" editor-type-id="text-editor">
328
+        <state relative-caret-position="165">
329
+          <caret line="11" column="102" selection-start-line="11" selection-start-column="102" selection-end-line="11" selection-end-column="102" />
330
+          <folding>
331
+            <element signature="imports" expanded="true" />
332
+          </folding>
333
+        </state>
334
+      </provider>
335
+    </entry>
336
+    <entry file="file://$PROJECT_DIR$/src/main/java/Program.java">
337
+      <provider selected="true" editor-type-id="text-editor">
338
+        <state relative-caret-position="240">
339
+          <caret line="16" lean-forward="true" selection-start-line="16" selection-end-line="16" />
340
+          <folding>
341
+            <element signature="imports" expanded="true" />
342
+          </folding>
343
+        </state>
344
+      </provider>
345
+    </entry>
346
+    <entry file="file://$PROJECT_DIR$/src/test/java/MyArrayListTest.java">
347
+      <provider selected="true" editor-type-id="text-editor">
348
+        <state relative-caret-position="465">
349
+          <caret line="31" lean-forward="true" selection-start-line="31" selection-end-line="31" />
350
+          <folding>
351
+            <element signature="imports" expanded="true" />
352
+          </folding>
353
+        </state>
354
+      </provider>
355
+    </entry>
356
+    <entry file="file://$PROJECT_DIR$/src/main/java/MyArrayList.java">
357
+      <provider selected="true" editor-type-id="text-editor">
358
+        <state relative-caret-position="204">
359
+          <caret line="15" column="8" lean-forward="true" selection-start-line="15" selection-start-column="8" selection-end-line="15" selection-end-column="8" />
360
+          <folding>
361
+            <element signature="e#120#121#0" expanded="true" />
362
+            <element signature="e#162#163#0" expanded="true" />
363
+            <element signature="e#784#785#0" expanded="true" />
364
+            <element signature="e#816#817#0" expanded="true" />
365
+          </folding>
366
+        </state>
367
+      </provider>
368
+    </entry>
369
+  </component>
370
+  <component name="masterDetails">
371
+    <states>
372
+      <state key="ProjectJDKs.UI">
373
+        <settings>
374
+          <last-edited>1.8</last-edited>
375
+          <splitter-proportions>
376
+            <option name="proportions">
377
+              <list>
378
+                <option value="0.2" />
379
+              </list>
380
+            </option>
381
+          </splitter-proportions>
382
+        </settings>
383
+      </state>
384
+    </states>
385
+  </component>
386
+</project>

+ 2
- 2
pom.xml Bestand weergeven

@@ -13,8 +13,8 @@
13 13
                 <groupId>org.apache.maven.plugins</groupId>
14 14
                 <artifactId>maven-compiler-plugin</artifactId>
15 15
                 <configuration>
16
-                    <source>1.7</source>
17
-                    <target>1.7</target>
16
+                    <source>8</source>
17
+                    <target>8</target>
18 18
                 </configuration>
19 19
             </plugin>
20 20
         </plugins>

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

@@ -0,0 +1,62 @@
1
+import java.util.Arrays;
2
+
3
+public class MyArrayList <T> {
4
+
5
+    T[] container;
6
+
7
+    public MyArrayList(T[] container) {
8
+        this.container = container;
9
+    }
10
+
11
+    public void add(T val){
12
+
13
+            T[] tempArray = Arrays.copyOf(container, container.length+1);
14
+            tempArray[tempArray.length - 1] = val;
15
+            container = tempArray;
16
+
17
+    }
18
+
19
+    public T get(int index){
20
+
21
+        return null;
22
+
23
+    }
24
+
25
+    public void remove(int index){
26
+
27
+
28
+    }
29
+
30
+    public void remove(T val){
31
+
32
+
33
+    }
34
+
35
+    public void set(int index, T val){
36
+
37
+
38
+    }
39
+
40
+    public void clear(){
41
+
42
+        //call garbage collector
43
+
44
+    }
45
+
46
+    public boolean isEmpty(){
47
+
48
+        return false;
49
+
50
+    }
51
+
52
+    public boolean contains(T val){
53
+
54
+        return false;
55
+
56
+    }
57
+
58
+    public T[] getter() {
59
+        return container;
60
+    }
61
+
62
+}

+ 30
- 0
src/test/java/MyArrayListTest.java Bestand weergeven

@@ -0,0 +1,30 @@
1
+import org.junit.Assert;
2
+import org.junit.Before;
3
+import org.junit.Test;
4
+
5
+public class MyArrayListTest {
6
+
7
+    MyArrayList<String> list;
8
+
9
+    @Before
10
+    public void setup() {
11
+
12
+        String[] expectedv1 = {"hello"};
13
+        list = new MyArrayList<>(expectedv1);
14
+
15
+    }
16
+
17
+    @Test
18
+    public void addTest(){
19
+
20
+        //Given
21
+        String[] expectedv2 = {"hello", "world"};
22
+
23
+
24
+        //Assert
25
+        list.add("world");
26
+        Assert.assertArrayEquals(list.getter(), expectedv2);
27
+
28
+    }
29
+
30
+}