Browse Source

tests passing 100%

jacob andersen 6 years ago
parent
commit
d06bfa4060
2 changed files with 41 additions and 45 deletions
  1. 40
    44
      .idea/workspace.xml
  2. 1
    1
      src/test/java/MyArrayListTest.java

+ 40
- 44
.idea/workspace.xml View File

@@ -1,11 +1,7 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4
-    <list default="true" id="39145ab9-fd44-4f67-802b-bf742dac378f" 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>
4
+    <list default="true" id="39145ab9-fd44-4f67-802b-bf742dac378f" name="Default Changelist" comment="" />
9 5
     <ignored path="$PROJECT_DIR$/target/" />
10 6
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
11 7
     <option name="SHOW_DIALOG" value="false" />
@@ -14,7 +10,7 @@
14 10
     <option name="LAST_RESOLUTION" value="IGNORE" />
15 11
   </component>
16 12
   <component name="CoverageDataManager">
17
-    <SUITE FILE_PATH="coverage/generics$MyArrayListTest.ic" NAME="MyArrayListTest Coverage Results" MODIFIED="1542750913615" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
13
+    <SUITE FILE_PATH="coverage/generics$MyArrayListTest.ic" NAME="MyArrayListTest Coverage Results" MODIFIED="1542751352044" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
18 14
     <SUITE FILE_PATH="coverage/generics$MyArrayListTest_addTest.ic" NAME="MyArrayListTest.addTest Coverage Results" MODIFIED="1542730582418" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
19 15
     <SUITE FILE_PATH="coverage/generics$MyArrayListTest_getTest.ic" NAME="MyArrayListTest.getTest Coverage Results" MODIFIED="1542748413843" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
20 16
     <SUITE FILE_PATH="coverage/generics$MyArrayListTest_isEmptyTest.ic" NAME="MyArrayListTest.isEmptyTest Coverage Results" MODIFIED="1542652661295" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="idea" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" />
@@ -48,7 +44,7 @@
48 44
       <usages-collector id="statistics.spring.boot.run.usages" />
49 45
       <usages-collector id="statistics.file.types.edit">
50 46
         <counts>
51
-          <entry key="JAVA" value="4901" />
47
+          <entry key="JAVA" value="4909" />
52 48
         </counts>
53 49
       </usages-collector>
54 50
       <usages-collector id="statistics.file.extensions.open">
@@ -60,17 +56,17 @@
60 56
       </usages-collector>
61 57
       <usages-collector id="statistics.file.extensions.edit">
62 58
         <counts>
63
-          <entry key="java" value="4901" />
59
+          <entry key="java" value="4909" />
64 60
         </counts>
65 61
       </usages-collector>
66 62
     </session>
67 63
   </component>
68 64
   <component name="FileEditorManager">
69 65
     <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
70
-      <file pinned="false" current-in-tab="true">
66
+      <file pinned="false" current-in-tab="false">
71 67
         <entry file="file://$PROJECT_DIR$/src/main/java/MyArrayList.java">
72 68
           <provider selected="true" editor-type-id="text-editor">
73
-            <state relative-caret-position="306">
69
+            <state relative-caret-position="-282">
74 70
               <caret line="62" column="13" selection-start-line="62" selection-start-column="13" selection-end-line="62" selection-end-column="13" />
75 71
               <folding>
76 72
                 <element signature="imports" expanded="true" />
@@ -89,11 +85,11 @@
89 85
           </provider>
90 86
         </entry>
91 87
       </file>
92
-      <file pinned="false" current-in-tab="false">
88
+      <file pinned="false" current-in-tab="true">
93 89
         <entry file="file://$PROJECT_DIR$/src/test/java/MyArrayListTest.java">
94 90
           <provider selected="true" editor-type-id="text-editor">
95
-            <state relative-caret-position="525">
96
-              <caret line="35" selection-start-line="35" selection-end-line="35" />
91
+            <state relative-caret-position="390">
92
+              <caret line="26" column="56" selection-start-line="26" selection-start-column="56" selection-end-line="26" selection-end-column="56" />
97 93
               <folding>
98 94
                 <element signature="imports" expanded="true" />
99 95
               </folding>
@@ -117,8 +113,8 @@
117 113
     <option name="CHANGED_PATHS">
118 114
       <list>
119 115
         <option value="$PROJECT_DIR$/pom.xml" />
120
-        <option value="$PROJECT_DIR$/src/test/java/MyArrayListTest.java" />
121 116
         <option value="$PROJECT_DIR$/src/main/java/MyArrayList.java" />
117
+        <option value="$PROJECT_DIR$/src/test/java/MyArrayListTest.java" />
122 118
       </list>
123 119
     </option>
124 120
   </component>
@@ -195,7 +191,7 @@
195 191
   <component name="PropertiesComponent">
196 192
     <property name="WebServerToolWindowFactoryState" value="false" />
197 193
     <property name="aspect.path.notification.shown" value="true" />
198
-    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542750943115" />
194
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542751350772" />
199 195
     <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
200 196
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
201 197
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
@@ -286,26 +282,11 @@
286 282
       <workItem from="1542415574399" duration="920000" />
287 283
       <workItem from="1542502906234" duration="2774000" />
288 284
       <workItem from="1542633995805" duration="8303000" />
289
-      <workItem from="1542726706465" duration="17586000" />
285
+      <workItem from="1542726706465" duration="18090000" />
290 286
     </task>
291 287
     <servers />
292 288
   </component>
293 289
   <component name="TestHistory">
294
-    <history-entry file="MyArrayListTest - 2018.11.20 at 15h 55m 01s.xml">
295
-      <configuration name="MyArrayListTest" configurationId="JUnit" />
296
-    </history-entry>
297
-    <history-entry file="MyArrayListTest_addTest - 2018.11.20 at 16h 04m 18s.xml">
298
-      <configuration name="MyArrayListTest.addTest" configurationId="JUnit" />
299
-    </history-entry>
300
-    <history-entry file="MyArrayListTest_getTest - 2018.11.20 at 16h 05m 07s.xml">
301
-      <configuration name="MyArrayListTest.getTest" configurationId="JUnit" />
302
-    </history-entry>
303
-    <history-entry file="MyArrayListTest_getTest - 2018.11.20 at 16h 12m 39s.xml">
304
-      <configuration name="MyArrayListTest.getTest" configurationId="JUnit" />
305
-    </history-entry>
306
-    <history-entry file="MyArrayListTest_getTest - 2018.11.20 at 16h 13m 30s.xml">
307
-      <configuration name="MyArrayListTest.getTest" configurationId="JUnit" />
308
-    </history-entry>
309 290
     <history-entry file="MyArrayListTest_getTest - 2018.11.20 at 16h 13m 36s.xml">
310 291
       <configuration name="MyArrayListTest.getTest" configurationId="JUnit" />
311 292
     </history-entry>
@@ -321,9 +302,24 @@
321 302
     <history-entry file="MyArrayListTest - 2018.11.20 at 16h 48m 07s.xml">
322 303
       <configuration name="MyArrayListTest" configurationId="JUnit" />
323 304
     </history-entry>
305
+    <history-entry file="MyArrayListTest - 2018.11.20 at 16h 53m 07s.xml">
306
+      <configuration name="MyArrayListTest" configurationId="JUnit" />
307
+    </history-entry>
308
+    <history-entry file="MyArrayListTest - 2018.11.20 at 16h 54m 19s.xml">
309
+      <configuration name="MyArrayListTest" configurationId="JUnit" />
310
+    </history-entry>
311
+    <history-entry file="MyArrayListTest - 2018.11.20 at 16h 54m 57s.xml">
312
+      <configuration name="MyArrayListTest" configurationId="JUnit" />
313
+    </history-entry>
314
+    <history-entry file="MyArrayListTest - 2018.11.20 at 16h 55m 16s.xml">
315
+      <configuration name="MyArrayListTest" configurationId="JUnit" />
316
+    </history-entry>
317
+    <history-entry file="MyArrayListTest - 2018.11.20 at 16h 55m 45s.xml">
318
+      <configuration name="MyArrayListTest" configurationId="JUnit" />
319
+    </history-entry>
324 320
   </component>
325 321
   <component name="TimeTrackingManager">
326
-    <option name="totallyTimeSpent" value="41072000" />
322
+    <option name="totallyTimeSpent" value="41576000" />
327 323
   </component>
328 324
   <component name="ToolWindowManager">
329 325
     <frame x="0" y="-1080" width="1920" height="1080" extended-state="0" />
@@ -357,7 +353,7 @@
357 353
       <window_info anchor="right" id="Palette&#9;" order="6" />
358 354
       <window_info anchor="right" id="Database" order="7" />
359 355
       <window_info anchor="right" id="Maven Projects" order="8" />
360
-      <window_info anchor="right" id="Coverage" order="9" side_tool="true" visible="true" weight="0.21671991" />
356
+      <window_info active="true" anchor="right" id="Coverage" order="9" side_tool="true" visible="true" weight="0.21671991" />
361 357
     </layout>
362 358
   </component>
363 359
   <component name="TypeScriptGeneratedFilesManager">
@@ -409,19 +405,9 @@
409 405
         </state>
410 406
       </provider>
411 407
     </entry>
412
-    <entry file="file://$PROJECT_DIR$/src/test/java/MyArrayListTest.java">
413
-      <provider selected="true" editor-type-id="text-editor">
414
-        <state relative-caret-position="525">
415
-          <caret line="35" selection-start-line="35" selection-end-line="35" />
416
-          <folding>
417
-            <element signature="imports" expanded="true" />
418
-          </folding>
419
-        </state>
420
-      </provider>
421
-    </entry>
422 408
     <entry file="file://$PROJECT_DIR$/src/main/java/MyArrayList.java">
423 409
       <provider selected="true" editor-type-id="text-editor">
424
-        <state relative-caret-position="306">
410
+        <state relative-caret-position="-282">
425 411
           <caret line="62" column="13" selection-start-line="62" selection-start-column="13" selection-end-line="62" selection-end-column="13" />
426 412
           <folding>
427 413
             <element signature="imports" expanded="true" />
@@ -439,5 +425,15 @@
439 425
         </state>
440 426
       </provider>
441 427
     </entry>
428
+    <entry file="file://$PROJECT_DIR$/src/test/java/MyArrayListTest.java">
429
+      <provider selected="true" editor-type-id="text-editor">
430
+        <state relative-caret-position="390">
431
+          <caret line="26" column="56" selection-start-line="26" selection-start-column="56" selection-end-line="26" selection-end-column="56" />
432
+          <folding>
433
+            <element signature="imports" expanded="true" />
434
+          </folding>
435
+        </state>
436
+      </provider>
437
+    </entry>
442 438
   </component>
443 439
 </project>

+ 1
- 1
src/test/java/MyArrayListTest.java View File

@@ -7,7 +7,7 @@ public class MyArrayListTest {
7 7
     {
8 8
         //Given
9 9
 
10
-        MyArrayList <String> newlist = new MyArrayList();
10
+        MyArrayList <String> newlist = new MyArrayList(2);
11 11
 
12 12
         //When
13 13
         newlist.add("eric");