Xcuello 6 vuotta sitten
vanhempi
commit
d84a4abd93

+ 2
- 0
.idea/compiler.xml Näytä tiedosto

7
         <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
7
         <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
8
         <outputRelativeToContentRoot value="true" />
8
         <outputRelativeToContentRoot value="true" />
9
         <module name="bankaccountlab" />
9
         <module name="bankaccountlab" />
10
+        <module name="productmanager" />
10
       </profile>
11
       </profile>
11
     </annotationProcessing>
12
     </annotationProcessing>
12
     <bytecodeTargetLevel target="1.8">
13
     <bytecodeTargetLevel target="1.8">
13
       <module name="bankaccountlab" target="1.5" />
14
       <module name="bankaccountlab" target="1.5" />
15
+      <module name="productmanager" target="1.5" />
14
     </bytecodeTargetLevel>
16
     </bytecodeTargetLevel>
15
   </component>
17
   </component>
16
 </project>
18
 </project>

+ 13
- 0
.idea/libraries/Maven__junit_junit_4_12.xml Näytä tiedosto

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 Näytä tiedosto

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>

+ 1
- 1
.idea/modules.xml Näytä tiedosto

2
 <project version="4">
2
 <project version="4">
3
   <component name="ProjectModuleManager">
3
   <component name="ProjectModuleManager">
4
     <modules>
4
     <modules>
5
-      <module fileurl="file://$PROJECT_DIR$/bankaccountlab.iml" filepath="$PROJECT_DIR$/bankaccountlab.iml" />
5
+      <module fileurl="file://$PROJECT_DIR$/productmanager.iml" filepath="$PROJECT_DIR$/productmanager.iml" />
6
     </modules>
6
     </modules>
7
   </component>
7
   </component>
8
 </project>
8
 </project>

+ 416
- 387
.idea/workspace.xml Näytä tiedosto

1
 <?xml version="1.0" encoding="UTF-8"?>
1
 <?xml version="1.0" encoding="UTF-8"?>
2
 <project version="4">
2
 <project version="4">
3
   <component name="ChangeListManager">
3
   <component name="ChangeListManager">
4
-    <list default="true" id="268ab437-e0d5-4447-8401-9f321aad6d50" name="Default" comment="" />
4
+    <list default="true" id="268ab437-e0d5-4447-8401-9f321aad6d50" name="Default" comment="">
5
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__junit_junit_4_12.xml" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml" afterDir="false" />
7
+      <change afterPath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/Inventory.java" afterDir="false" />
8
+      <change afterPath="$PROJECT_DIR$/src/test/java/InventoryTest.java" afterDir="false" />
9
+      <change beforePath="$PROJECT_DIR$/.idea/compiler.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" />
10
+      <change beforePath="$PROJECT_DIR$/.idea/modules.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
12
+      <change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
13
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/MainApplication.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/MainApplication.java" afterDir="false" />
14
+      <change beforePath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/Product.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/Product.java" afterDir="false" />
15
+      <change beforePath="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/productmanager/ProductTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/productmanager/ProductTest.java" afterDir="false" />
16
+    </list>
5
     <ignored path="$PROJECT_DIR$/out/" />
17
     <ignored path="$PROJECT_DIR$/out/" />
6
     <ignored path="$PROJECT_DIR$/target/" />
18
     <ignored path="$PROJECT_DIR$/target/" />
7
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
19
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
8
-    <option name="TRACKING_ENABLED" value="true" />
9
     <option name="SHOW_DIALOG" value="false" />
20
     <option name="SHOW_DIALOG" value="false" />
10
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
21
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
11
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
22
     <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
12
     <option name="LAST_RESOLUTION" value="IGNORE" />
23
     <option name="LAST_RESOLUTION" value="IGNORE" />
13
   </component>
24
   </component>
14
-  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
25
+  <component name="FUSProjectUsageTrigger">
26
+    <session id="-1546935440">
27
+      <usages-collector id="statistics.lifecycle.project">
28
+        <counts>
29
+          <entry key="project.closed" value="32" />
30
+          <entry key="project.open.time.0" value="2" />
31
+          <entry key="project.open.time.1" value="26" />
32
+          <entry key="project.open.time.11" value="1" />
33
+          <entry key="project.open.time.2" value="2" />
34
+          <entry key="project.open.time.7" value="1" />
35
+          <entry key="project.opened" value="32" />
36
+        </counts>
37
+      </usages-collector>
38
+      <usages-collector id="statistics.file.extensions.edit">
39
+        <counts>
40
+          <entry key="java" value="3537" />
41
+        </counts>
42
+      </usages-collector>
43
+      <usages-collector id="statistics.file.types.edit">
44
+        <counts>
45
+          <entry key="JAVA" value="3537" />
46
+        </counts>
47
+      </usages-collector>
48
+      <usages-collector id="statistics.file.extensions.open">
49
+        <counts>
50
+          <entry key="java" value="3" />
51
+        </counts>
52
+      </usages-collector>
53
+      <usages-collector id="statistics.file.types.open">
54
+        <counts>
55
+          <entry key="JAVA" value="3" />
56
+        </counts>
57
+      </usages-collector>
58
+      <usages-collector id="statistics.spring.boot.mvc.usages" />
59
+      <usages-collector id="statistics.spring.boot.run.usages" />
60
+      <usages-collector id="statistics.js.language.service.starts" />
61
+      <usages-collector id="statistics.vcs.git.usages" />
62
+    </session>
63
+  </component>
15
   <component name="FileEditorManager">
64
   <component name="FileEditorManager">
16
-    <leaf>
17
-      <file leaf-file-name="pom.xml" pinned="false" current-in-tab="true">
18
-        <entry file="file://$PROJECT_DIR$/pom.xml">
65
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
66
+      <file pinned="false" current-in-tab="true">
67
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/MainApplication.java">
19
           <provider selected="true" editor-type-id="text-editor">
68
           <provider selected="true" editor-type-id="text-editor">
20
-            <state relative-caret-position="165">
21
-              <caret line="11" column="10" lean-forward="false" selection-start-line="11" selection-start-column="10" selection-end-line="11" selection-end-column="10" />
22
-              <folding />
69
+            <state relative-caret-position="240">
70
+              <caret line="16" column="57" selection-start-line="16" selection-start-column="57" selection-end-line="16" selection-end-column="57" />
71
+              <folding>
72
+                <element signature="imports" expanded="true" />
73
+                <element signature="e#353#362#0" expanded="true" />
74
+              </folding>
23
             </state>
75
             </state>
24
           </provider>
76
           </provider>
25
         </entry>
77
         </entry>
26
       </file>
78
       </file>
27
-      <file leaf-file-name="MainApplication.java" pinned="false" current-in-tab="false">
28
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/MainApplication.java">
79
+      <file pinned="false" current-in-tab="false">
80
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/Inventory.java">
29
           <provider selected="true" editor-type-id="text-editor">
81
           <provider selected="true" editor-type-id="text-editor">
30
-            <state relative-caret-position="75">
31
-              <caret line="5" column="28" lean-forward="false" selection-start-line="5" selection-start-column="28" selection-end-line="5" selection-end-column="28" />
32
-              <folding />
82
+            <state relative-caret-position="300">
83
+              <caret line="20" column="16" selection-start-line="20" selection-start-column="16" selection-end-line="20" selection-end-column="16" />
84
+              <folding>
85
+                <element signature="imports" expanded="true" />
86
+              </folding>
33
             </state>
87
             </state>
34
           </provider>
88
           </provider>
35
         </entry>
89
         </entry>
36
       </file>
90
       </file>
37
-      <file leaf-file-name="Product.java" pinned="false" current-in-tab="false">
38
-        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/Product.java">
91
+      <file pinned="false" current-in-tab="false">
92
+        <entry file="file://$PROJECT_DIR$/src/test/java/InventoryTest.java">
39
           <provider selected="true" editor-type-id="text-editor">
93
           <provider selected="true" editor-type-id="text-editor">
40
-            <state relative-caret-position="75">
41
-              <caret line="5" column="20" lean-forward="false" selection-start-line="5" selection-start-column="20" selection-end-line="5" selection-end-column="20" />
42
-              <folding />
94
+            <state relative-caret-position="352">
95
+              <caret line="106" column="23" selection-start-line="106" selection-start-column="23" selection-end-line="106" selection-end-column="23" />
96
+              <folding>
97
+                <element signature="imports" expanded="true" />
98
+              </folding>
43
             </state>
99
             </state>
44
           </provider>
100
           </provider>
45
         </entry>
101
         </entry>
46
       </file>
102
       </file>
47
-      <file leaf-file-name="ProductTest.java" pinned="false" current-in-tab="false">
103
+      <file pinned="false" current-in-tab="false">
48
         <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/productmanager/ProductTest.java">
104
         <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/productmanager/ProductTest.java">
49
           <provider selected="true" editor-type-id="text-editor">
105
           <provider selected="true" editor-type-id="text-editor">
50
-            <state relative-caret-position="75">
51
-              <caret line="5" column="24" lean-forward="false" selection-start-line="5" selection-start-column="24" selection-end-line="5" selection-end-column="24" />
52
-              <folding />
106
+            <state relative-caret-position="525">
107
+              <caret line="35" column="60" lean-forward="true" selection-start-line="35" selection-start-column="38" selection-end-line="35" selection-end-column="60" />
108
+              <folding>
109
+                <element signature="imports" expanded="true" />
110
+              </folding>
53
             </state>
111
             </state>
54
           </provider>
112
           </provider>
55
         </entry>
113
         </entry>
56
       </file>
114
       </file>
57
-      <file leaf-file-name=".gitignore" pinned="false" current-in-tab="false">
58
-        <entry file="file://$PROJECT_DIR$/.gitignore">
115
+      <file pinned="false" current-in-tab="false">
116
+        <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/Product.java">
59
           <provider selected="true" editor-type-id="text-editor">
117
           <provider selected="true" editor-type-id="text-editor">
60
-            <state relative-caret-position="90">
61
-              <caret line="6" column="5" lean-forward="false" selection-start-line="6" selection-start-column="5" selection-end-line="6" selection-end-column="5" />
62
-              <folding />
63
-            </state>
64
-          </provider>
65
-        </entry>
66
-      </file>
67
-      <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
68
-        <entry file="file://$PROJECT_DIR$/README.md">
69
-          <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
70
-            <state split_layout="SPLIT">
71
-              <first_editor relative-caret-position="285">
72
-                <caret line="19" column="27" lean-forward="false" selection-start-line="19" selection-start-column="27" selection-end-line="19" selection-end-column="27" />
73
-                <folding />
74
-              </first_editor>
75
-              <second_editor />
118
+            <state relative-caret-position="690">
119
+              <caret line="46" selection-start-line="46" selection-end-line="46" />
76
             </state>
120
             </state>
77
           </provider>
121
           </provider>
78
         </entry>
122
         </entry>
89
   <component name="Git.Settings">
133
   <component name="Git.Settings">
90
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
134
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
91
   </component>
135
   </component>
92
-  <component name="GradleLocalSettings">
93
-    <option name="externalProjectsViewState">
94
-      <projects_view />
95
-    </option>
96
-  </component>
97
   <component name="IdeDocumentHistory">
136
   <component name="IdeDocumentHistory">
98
     <option name="CHANGED_PATHS">
137
     <option name="CHANGED_PATHS">
99
       <list>
138
       <list>
100
         <option value="$PROJECT_DIR$/.gitignore" />
139
         <option value="$PROJECT_DIR$/.gitignore" />
101
         <option value="$PROJECT_DIR$/README.md" />
140
         <option value="$PROJECT_DIR$/README.md" />
102
         <option value="$PROJECT_DIR$/pom.xml" />
141
         <option value="$PROJECT_DIR$/pom.xml" />
142
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/Product.java" />
143
+        <option value="$PROJECT_DIR$/src/test/java/com/zipcodewilmington/productmanager/ProductTest.java" />
144
+        <option value="$PROJECT_DIR$/src/test/java/InventoryTest.java" />
145
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/Inventory.java" />
146
+        <option value="$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/MainApplication.java" />
103
       </list>
147
       </list>
104
     </option>
148
     </option>
105
   </component>
149
   </component>
106
-  <component name="ProjectFrameBounds">
150
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
151
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
152
+  <component name="JsGulpfileManager">
153
+    <detection-done>true</detection-done>
154
+    <sorting>DEFINITION_ORDER</sorting>
155
+  </component>
156
+  <component name="MavenImportPreferences">
157
+    <option name="importingSettings">
158
+      <MavenImportingSettings>
159
+        <option name="importAutomatically" value="true" />
160
+      </MavenImportingSettings>
161
+    </option>
162
+  </component>
163
+  <component name="ProjectFrameBounds" extendedState="6">
107
     <option name="y" value="23" />
164
     <option name="y" value="23" />
108
-    <option name="width" value="1920" />
109
-    <option name="height" value="1053" />
165
+    <option name="width" value="1280" />
166
+    <option name="height" value="707" />
110
   </component>
167
   </component>
111
   <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
168
   <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
112
   <component name="ProjectView">
169
   <component name="ProjectView">
113
-    <navigator currentView="ProjectPane" proportions="" version="1">
114
-      <flattenPackages />
115
-      <showMembers />
116
-      <showModules />
117
-      <showLibraryContents />
118
-      <hideEmptyPackages />
119
-      <abbreviatePackageNames />
120
-      <autoscrollToSource />
121
-      <autoscrollFromSource />
122
-      <sortByType />
123
-      <manualOrder />
170
+    <navigator proportions="" version="1">
124
       <foldersAlwaysOnTop value="true" />
171
       <foldersAlwaysOnTop value="true" />
125
     </navigator>
172
     </navigator>
126
     <panes>
173
     <panes>
127
       <pane id="ProjectPane">
174
       <pane id="ProjectPane">
128
         <subPane>
175
         <subPane>
129
-          <PATH>
130
-            <PATH_ELEMENT>
131
-              <option name="myItemId" value="bankaccountlab" />
132
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
133
-            </PATH_ELEMENT>
134
-            <PATH_ELEMENT>
135
-              <option name="myItemId" value="bankaccountlab" />
136
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
137
-            </PATH_ELEMENT>
138
-          </PATH>
139
-          <PATH>
140
-            <PATH_ELEMENT>
141
-              <option name="myItemId" value="bankaccountlab" />
142
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
143
-            </PATH_ELEMENT>
144
-            <PATH_ELEMENT>
145
-              <option name="myItemId" value="bankaccountlab" />
146
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
147
-            </PATH_ELEMENT>
148
-            <PATH_ELEMENT>
149
-              <option name="myItemId" value="src" />
150
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
151
-            </PATH_ELEMENT>
152
-            <PATH_ELEMENT>
153
-              <option name="myItemId" value="test" />
154
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
155
-            </PATH_ELEMENT>
156
-            <PATH_ELEMENT>
157
-              <option name="myItemId" value="java" />
158
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
159
-            </PATH_ELEMENT>
160
-            <PATH_ELEMENT>
161
-              <option name="myItemId" value="com" />
162
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
163
-            </PATH_ELEMENT>
164
-            <PATH_ELEMENT>
165
-              <option name="myItemId" value="zipcodewilmington" />
166
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
167
-            </PATH_ELEMENT>
168
-            <PATH_ELEMENT>
169
-              <option name="myItemId" value="productmanager" />
170
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
171
-            </PATH_ELEMENT>
172
-          </PATH>
173
-          <PATH>
174
-            <PATH_ELEMENT>
175
-              <option name="myItemId" value="bankaccountlab" />
176
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
177
-            </PATH_ELEMENT>
178
-            <PATH_ELEMENT>
179
-              <option name="myItemId" value="bankaccountlab" />
180
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
181
-            </PATH_ELEMENT>
182
-            <PATH_ELEMENT>
183
-              <option name="myItemId" value="src" />
184
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
185
-            </PATH_ELEMENT>
186
-            <PATH_ELEMENT>
187
-              <option name="myItemId" value="main" />
188
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
189
-            </PATH_ELEMENT>
190
-          </PATH>
191
-          <PATH>
192
-            <PATH_ELEMENT>
193
-              <option name="myItemId" value="bankaccountlab" />
194
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
195
-            </PATH_ELEMENT>
196
-            <PATH_ELEMENT>
197
-              <option name="myItemId" value="bankaccountlab" />
198
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
199
-            </PATH_ELEMENT>
200
-            <PATH_ELEMENT>
201
-              <option name="myItemId" value="src" />
202
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
203
-            </PATH_ELEMENT>
204
-            <PATH_ELEMENT>
205
-              <option name="myItemId" value="main" />
206
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
207
-            </PATH_ELEMENT>
208
-            <PATH_ELEMENT>
209
-              <option name="myItemId" value="java" />
210
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
211
-            </PATH_ELEMENT>
212
-            <PATH_ELEMENT>
213
-              <option name="myItemId" value="com" />
214
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
215
-            </PATH_ELEMENT>
216
-            <PATH_ELEMENT>
217
-              <option name="myItemId" value="zipcodewilmington" />
218
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
219
-            </PATH_ELEMENT>
220
-            <PATH_ELEMENT>
221
-              <option name="myItemId" value="productmanager" />
222
-              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
223
-            </PATH_ELEMENT>
224
-          </PATH>
176
+          <expand>
177
+            <path>
178
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="b2602c69:ProjectViewProjectNode" />
179
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="462c0819:PsiDirectoryNode" />
180
+            </path>
181
+            <path>
182
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="b2602c69:ProjectViewProjectNode" />
183
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="462c0819:PsiDirectoryNode" />
184
+              <item name="src" type="462c0819:PsiDirectoryNode" />
185
+            </path>
186
+            <path>
187
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="b2602c69:ProjectViewProjectNode" />
188
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="462c0819:PsiDirectoryNode" />
189
+              <item name="src" type="462c0819:PsiDirectoryNode" />
190
+              <item name="main" type="462c0819:PsiDirectoryNode" />
191
+            </path>
192
+            <path>
193
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="b2602c69:ProjectViewProjectNode" />
194
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="462c0819:PsiDirectoryNode" />
195
+              <item name="src" type="462c0819:PsiDirectoryNode" />
196
+              <item name="main" type="462c0819:PsiDirectoryNode" />
197
+              <item name="java" type="462c0819:PsiDirectoryNode" />
198
+            </path>
199
+            <path>
200
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="b2602c69:ProjectViewProjectNode" />
201
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="462c0819:PsiDirectoryNode" />
202
+              <item name="src" type="462c0819:PsiDirectoryNode" />
203
+              <item name="main" type="462c0819:PsiDirectoryNode" />
204
+              <item name="java" type="462c0819:PsiDirectoryNode" />
205
+              <item name="productmanager" type="462c0819:PsiDirectoryNode" />
206
+            </path>
207
+            <path>
208
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="b2602c69:ProjectViewProjectNode" />
209
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="462c0819:PsiDirectoryNode" />
210
+              <item name="src" type="462c0819:PsiDirectoryNode" />
211
+              <item name="test" type="462c0819:PsiDirectoryNode" />
212
+            </path>
213
+            <path>
214
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="b2602c69:ProjectViewProjectNode" />
215
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="462c0819:PsiDirectoryNode" />
216
+              <item name="src" type="462c0819:PsiDirectoryNode" />
217
+              <item name="test" type="462c0819:PsiDirectoryNode" />
218
+              <item name="java" type="462c0819:PsiDirectoryNode" />
219
+            </path>
220
+            <path>
221
+              <item name="CR-MesoLabs-Inheritance-ProductManager" type="b2602c69:ProjectViewProjectNode" />
222
+              <item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
223
+            </path>
224
+          </expand>
225
+          <select />
225
         </subPane>
226
         </subPane>
226
       </pane>
227
       </pane>
227
       <pane id="Scope" />
228
       <pane id="Scope" />
228
-      <pane id="Scratches" />
229
       <pane id="PackagesPane" />
229
       <pane id="PackagesPane" />
230
     </panes>
230
     </panes>
231
   </component>
231
   </component>
232
   <component name="PropertiesComponent">
232
   <component name="PropertiesComponent">
233
-    <property name="settings.editor.selected.configurable" value="reference.projectsettings.compiler.javacompiler" />
233
+    <property name="WebServerToolWindowFactoryState" value="false" />
234
+    <property name="aspect.path.notification.shown" value="true" />
235
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542224855153" />
236
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
234
     <property name="project.structure.last.edited" value="Project" />
237
     <property name="project.structure.last.edited" value="Project" />
235
     <property name="project.structure.proportion" value="0.0" />
238
     <property name="project.structure.proportion" value="0.0" />
236
     <property name="project.structure.side.proportion" value="0.2" />
239
     <property name="project.structure.side.proportion" value="0.2" />
240
+    <property name="settings.editor.selected.configurable" value="reference.projectsettings.compiler.javacompiler" />
237
   </component>
241
   </component>
238
   <component name="RunDashboard">
242
   <component name="RunDashboard">
239
     <option name="ruleStates">
243
     <option name="ruleStates">
247
       </list>
251
       </list>
248
     </option>
252
     </option>
249
   </component>
253
   </component>
250
-  <component name="RunManager">
251
-    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
252
-      <module name="" />
253
-      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
254
-      <option name="PROGRAM_PARAMETERS" />
255
-      <predefined_log_file id="idea.log" enabled="true" />
256
-      <method />
257
-    </configuration>
258
-    <configuration default="true" type="AndroidRunConfigurationType" factoryName="Android App">
259
-      <module name="" />
260
-      <option name="DEPLOY" value="true" />
261
-      <option name="ARTIFACT_NAME" value="" />
262
-      <option name="PM_INSTALL_OPTIONS" value="" />
263
-      <option name="ACTIVITY_EXTRA_FLAGS" value="" />
264
-      <option name="MODE" value="default_activity" />
265
-      <option name="TARGET_SELECTION_MODE" value="SHOW_DIALOG" />
266
-      <option name="PREFERRED_AVD" value="" />
267
-      <option name="CLEAR_LOGCAT" value="false" />
268
-      <option name="SHOW_LOGCAT_AUTOMATICALLY" value="false" />
269
-      <option name="SKIP_NOOP_APK_INSTALLATIONS" value="true" />
270
-      <option name="FORCE_STOP_RUNNING_APP" value="true" />
271
-      <option name="DEBUGGER_TYPE" value="Java" />
272
-      <option name="USE_LAST_SELECTED_DEVICE" value="false" />
273
-      <option name="PREFERRED_AVD" value="" />
274
-      <Java />
275
-      <Profilers>
276
-        <option name="ENABLE_ADVANCED_PROFILING" value="true" />
277
-        <option name="GAPID_ENABLED" value="false" />
278
-        <option name="GAPID_DISABLE_PCS" value="false" />
279
-        <option name="SUPPORT_LIB_ENABLED" value="true" />
280
-        <option name="INSTRUMENTATION_ENABLED" value="true" />
281
-      </Profilers>
282
-      <option name="DEEP_LINK" value="" />
283
-      <option name="ACTIVITY_CLASS" value="" />
284
-      <method />
285
-    </configuration>
254
+  <component name="RunManager" selected="JUnit.ProductTest">
286
     <configuration default="true" type="AndroidTestRunConfigurationType" factoryName="Android Tests">
255
     <configuration default="true" type="AndroidTestRunConfigurationType" factoryName="Android Tests">
287
       <module name="" />
256
       <module name="" />
288
       <option name="TESTING_TYPE" value="0" />
257
       <option name="TESTING_TYPE" value="0" />
310
       </Profilers>
279
       </Profilers>
311
       <method />
280
       <method />
312
     </configuration>
281
     </configuration>
282
+    <configuration default="true" type="executeSpecs" factoryName="Gauge Execution">
283
+      <setting name="environment" value="" />
284
+      <setting name="specsToExecute" value="" />
285
+      <setting name="tags" value="" />
286
+      <setting name="parallelNodes" value="" />
287
+      <setting name="execInParallel" value="false" />
288
+      <setting name="programParameters" value="" />
289
+      <setting name="workingDirectory" value="" />
290
+      <setting name="moduleName" value="" />
291
+      <envMap />
292
+      <setting name="rowsRange" value="" />
293
+      <method />
294
+    </configuration>
313
     <configuration default="true" type="Applet" factoryName="Applet">
295
     <configuration default="true" type="Applet" factoryName="Applet">
314
-      <option name="HTML_USED" value="false" />
315
-      <option name="WIDTH" value="400" />
316
-      <option name="HEIGHT" value="300" />
317
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
296
       <option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
318
-      <module />
319
-      <method />
297
+      <method v="2">
298
+        <option name="Make" enabled="true" />
299
+      </method>
320
     </configuration>
300
     </configuration>
321
     <configuration default="true" type="Application" factoryName="Application">
301
     <configuration default="true" type="Application" factoryName="Application">
322
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
323
-      <option name="MAIN_CLASS_NAME" />
324
-      <option name="VM_PARAMETERS" />
325
-      <option name="PROGRAM_PARAMETERS" />
326
       <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
302
       <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
327
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
328
-      <option name="ALTERNATIVE_JRE_PATH" />
329
-      <option name="ENABLE_SWING_INSPECTOR" value="false" />
330
-      <option name="ENV_VARIABLES" />
331
-      <option name="PASS_PARENT_ENVS" value="true" />
332
-      <module name="" />
333
-      <envs />
334
-      <method />
303
+      <method v="2">
304
+        <option name="Make" enabled="true" />
305
+      </method>
335
     </configuration>
306
     </configuration>
336
-    <configuration default="true" type="GradleRunConfiguration" factoryName="Gradle">
337
-      <ExternalSystemSettings>
338
-        <option name="executionName" />
339
-        <option name="externalProjectPath" />
340
-        <option name="externalSystemIdString" value="GRADLE" />
341
-        <option name="scriptParameters" />
342
-        <option name="taskDescriptions">
343
-          <list />
344
-        </option>
345
-        <option name="taskNames">
346
-          <list />
347
-        </option>
348
-        <option name="vmOptions" />
349
-      </ExternalSystemSettings>
350
-      <method />
307
+    <configuration name="ProductTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
308
+      <module name="productmanager" />
309
+      <extension name="coverage">
310
+        <pattern>
311
+          <option name="PATTERN" value="com.zipcodewilmington.productmanager.*" />
312
+          <option name="ENABLED" value="true" />
313
+        </pattern>
314
+      </extension>
315
+      <option name="PACKAGE_NAME" value="com.zipcodewilmington.productmanager" />
316
+      <option name="MAIN_CLASS_NAME" value="com.zipcodewilmington.productmanager.ProductTest" />
317
+      <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
318
+      <method v="2">
319
+        <option name="Make" enabled="true" />
320
+      </method>
351
     </configuration>
321
     </configuration>
352
-    <configuration default="true" type="JUnit" factoryName="JUnit">
353
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
354
-      <module name="" />
355
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
356
-      <option name="ALTERNATIVE_JRE_PATH" />
357
-      <option name="PACKAGE_NAME" />
358
-      <option name="MAIN_CLASS_NAME" />
359
-      <option name="METHOD_NAME" />
360
-      <option name="TEST_OBJECT" value="class" />
361
-      <option name="VM_PARAMETERS" value="-ea" />
362
-      <option name="PARAMETERS" />
322
+    <configuration name="ProductTest.getPriceTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
323
+      <module name="productmanager" />
324
+      <extension name="coverage">
325
+        <pattern>
326
+          <option name="PATTERN" value="com.zipcodewilmington.productmanager.*" />
327
+          <option name="ENABLED" value="true" />
328
+        </pattern>
329
+      </extension>
330
+      <option name="PACKAGE_NAME" value="com.zipcodewilmington.productmanager" />
331
+      <option name="MAIN_CLASS_NAME" value="com.zipcodewilmington.productmanager.ProductTest" />
332
+      <option name="METHOD_NAME" value="getPriceTest" />
333
+      <option name="TEST_OBJECT" value="method" />
363
       <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
334
       <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
364
-      <option name="ENV_VARIABLES" />
365
-      <option name="PASS_PARENT_ENVS" value="true" />
366
-      <option name="TEST_SEARCH_SCOPE">
367
-        <value defaultName="singleModule" />
368
-      </option>
369
-      <envs />
370
-      <patterns />
371
-      <method />
335
+      <method v="2">
336
+        <option name="Make" enabled="true" />
337
+      </method>
372
     </configuration>
338
     </configuration>
373
-    <configuration default="true" type="JarApplication" factoryName="JAR Application">
374
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
375
-      <envs />
376
-      <method />
339
+    <configuration name="ProductTest.setPriceTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
340
+      <module name="productmanager" />
341
+      <extension name="coverage">
342
+        <pattern>
343
+          <option name="PATTERN" value="com.zipcodewilmington.productmanager.*" />
344
+          <option name="ENABLED" value="true" />
345
+        </pattern>
346
+      </extension>
347
+      <option name="PACKAGE_NAME" value="com.zipcodewilmington.productmanager" />
348
+      <option name="MAIN_CLASS_NAME" value="com.zipcodewilmington.productmanager.ProductTest" />
349
+      <option name="METHOD_NAME" value="setPriceTest" />
350
+      <option name="TEST_OBJECT" value="method" />
351
+      <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
352
+      <method v="2">
353
+        <option name="Make" enabled="true" />
354
+      </method>
377
     </configuration>
355
     </configuration>
378
-    <configuration default="true" type="Java Scratch" factoryName="Java Scratch">
379
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
380
-      <option name="SCRATCH_FILE_ID" value="0" />
381
-      <option name="MAIN_CLASS_NAME" />
382
-      <option name="VM_PARAMETERS" />
383
-      <option name="PROGRAM_PARAMETERS" />
384
-      <option name="WORKING_DIRECTORY" />
385
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
386
-      <option name="ALTERNATIVE_JRE_PATH" />
387
-      <option name="ENABLE_SWING_INSPECTOR" value="false" />
388
-      <option name="ENV_VARIABLES" />
389
-      <option name="PASS_PARENT_ENVS" value="true" />
390
-      <module name="" />
391
-      <envs />
392
-      <method />
356
+    <configuration default="true" type="JUnit" factoryName="JUnit">
357
+      <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
358
+      <method v="2">
359
+        <option name="Make" enabled="true" />
360
+      </method>
393
     </configuration>
361
     </configuration>
394
     <configuration default="true" type="JetRunConfigurationType" factoryName="Kotlin">
362
     <configuration default="true" type="JetRunConfigurationType" factoryName="Kotlin">
395
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
396
-      <option name="MAIN_CLASS_NAME" />
363
+      <module name="bankaccountlab" />
397
       <option name="VM_PARAMETERS" />
364
       <option name="VM_PARAMETERS" />
398
       <option name="PROGRAM_PARAMETERS" />
365
       <option name="PROGRAM_PARAMETERS" />
399
-      <option name="WORKING_DIRECTORY" />
400
       <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
366
       <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
401
       <option name="ALTERNATIVE_JRE_PATH" />
367
       <option name="ALTERNATIVE_JRE_PATH" />
402
       <option name="PASS_PARENT_ENVS" value="true" />
368
       <option name="PASS_PARENT_ENVS" value="true" />
403
-      <module name="bankaccountlab" />
404
-      <envs />
405
-      <method />
406
-    </configuration>
407
-    <configuration default="true" type="KotlinStandaloneScriptRunConfigurationType" factoryName="Kotlin script">
408
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
409
-      <option name="filePath" />
410
-      <option name="vmParameters" />
411
-      <option name="alternativeJrePath" />
412
-      <option name="programParameters" />
413
-      <option name="passParentEnvs" value="true" />
414
-      <option name="workingDirectory" />
415
-      <option name="isAlternativeJrePathEnabled" value="false" />
416
-      <envs />
417
-      <method />
418
-    </configuration>
419
-    <configuration default="true" type="Remote" factoryName="Remote">
420
-      <option name="USE_SOCKET_TRANSPORT" value="true" />
421
-      <option name="SERVER_MODE" value="false" />
422
-      <option name="SHMEM_ADDRESS" value="javadebug" />
423
-      <option name="HOST" value="localhost" />
424
-      <option name="PORT" value="5005" />
425
-      <method />
369
+      <option name="MAIN_CLASS_NAME" />
370
+      <option name="WORKING_DIRECTORY" />
371
+      <method v="2">
372
+        <option name="Make" enabled="true" />
373
+      </method>
426
     </configuration>
374
     </configuration>
427
     <configuration default="true" type="TestNG" factoryName="TestNG">
375
     <configuration default="true" type="TestNG" factoryName="TestNG">
428
-      <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
429
-      <module name="" />
430
-      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
431
-      <option name="ALTERNATIVE_JRE_PATH" />
432
-      <option name="SUITE_NAME" />
433
-      <option name="PACKAGE_NAME" />
434
-      <option name="MAIN_CLASS_NAME" />
435
-      <option name="METHOD_NAME" />
436
-      <option name="GROUP_NAME" />
437
-      <option name="TEST_OBJECT" value="CLASS" />
438
-      <option name="VM_PARAMETERS" value="-ea" />
439
-      <option name="PARAMETERS" />
440
       <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
376
       <option name="WORKING_DIRECTORY" value="$MODULE_DIR$" />
441
-      <option name="OUTPUT_DIRECTORY" />
442
-      <option name="ANNOTATION_TYPE" />
443
-      <option name="ENV_VARIABLES" />
444
-      <option name="PASS_PARENT_ENVS" value="true" />
445
-      <option name="TEST_SEARCH_SCOPE">
446
-        <value defaultName="singleModule" />
447
-      </option>
448
-      <option name="USE_DEFAULT_REPORTERS" value="false" />
449
-      <option name="PROPERTIES_FILE" />
450
-      <envs />
451
       <properties />
377
       <properties />
452
       <listeners />
378
       <listeners />
453
-      <method />
379
+      <method v="2">
380
+        <option name="Make" enabled="true" />
381
+      </method>
454
     </configuration>
382
     </configuration>
455
-    <configuration default="true" type="executeSpecs" factoryName="Gauge Execution">
456
-      <setting name="environment" value="" />
457
-      <setting name="specsToExecute" value="" />
458
-      <setting name="tags" value="" />
459
-      <setting name="parallelNodes" value="" />
460
-      <setting name="execInParallel" value="false" />
461
-      <setting name="programParameters" value="" />
462
-      <setting name="workingDirectory" value="" />
463
-      <setting name="moduleName" value="" />
464
-      <envMap />
465
-      <setting name="rowsRange" value="" />
466
-      <method />
383
+    <configuration default="true" type="#org.jetbrains.idea.devkit.run.PluginConfigurationType" factoryName="Plugin">
384
+      <module name="" />
385
+      <option name="VM_PARAMETERS" value="-Xmx512m -Xms256m -XX:MaxPermSize=250m -ea" />
386
+      <option name="PROGRAM_PARAMETERS" />
387
+      <predefined_log_file id="idea.log" enabled="true" />
388
+      <method v="2">
389
+        <option name="Make" enabled="true" />
390
+      </method>
467
     </configuration>
391
     </configuration>
392
+    <list>
393
+      <item itemvalue="JUnit.ProductTest.setPriceTest" />
394
+      <item itemvalue="JUnit.ProductTest" />
395
+      <item itemvalue="JUnit.ProductTest.getPriceTest" />
396
+    </list>
397
+    <recent_temporary>
398
+      <list>
399
+        <item itemvalue="JUnit.ProductTest" />
400
+        <item itemvalue="JUnit.ProductTest.getPriceTest" />
401
+        <item itemvalue="JUnit.ProductTest.setPriceTest" />
402
+      </list>
403
+    </recent_temporary>
468
   </component>
404
   </component>
469
-  <component name="ShelveChangesManager" show_recycled="false">
470
-    <option name="remove_strategy" value="false" />
405
+  <component name="SvnConfiguration">
406
+    <configuration />
471
   </component>
407
   </component>
472
   <component name="TaskManager">
408
   <component name="TaskManager">
473
     <task active="true" id="Default" summary="Default task">
409
     <task active="true" id="Default" summary="Default task">
476
       <option name="number" value="Default" />
412
       <option name="number" value="Default" />
477
       <option name="presentableId" value="Default" />
413
       <option name="presentableId" value="Default" />
478
       <updated>1515620835041</updated>
414
       <updated>1515620835041</updated>
415
+      <workItem from="1541459105301" duration="5249000" />
416
+      <workItem from="1541513417668" duration="741000" />
417
+      <workItem from="1541514956167" duration="25000" />
418
+      <workItem from="1541514992325" duration="35000" />
419
+      <workItem from="1541603676806" duration="14000" />
420
+      <workItem from="1541603715483" duration="11000" />
421
+      <workItem from="1541603748196" duration="38000" />
422
+      <workItem from="1541603816642" duration="19000" />
423
+      <workItem from="1541603896992" duration="11000" />
424
+      <workItem from="1541604047981" duration="81000" />
425
+      <workItem from="1541604193413" duration="8000" />
426
+      <workItem from="1541604298611" duration="19000" />
427
+      <workItem from="1541604476522" duration="41000" />
428
+      <workItem from="1541604547657" duration="14000" />
429
+      <workItem from="1541604606655" duration="24000" />
430
+      <workItem from="1541604998331" duration="46000" />
431
+      <workItem from="1541605088012" duration="9000" />
432
+      <workItem from="1541605259006" duration="37000" />
433
+      <workItem from="1541605312781" duration="18000" />
434
+      <workItem from="1541605360497" duration="34000" />
435
+      <workItem from="1541606139990" duration="18000" />
436
+      <workItem from="1541606914209" duration="10000" />
437
+      <workItem from="1541607428633" duration="15000" />
438
+      <workItem from="1542134729434" duration="6716000" />
439
+      <workItem from="1542222383214" duration="2467000" />
479
     </task>
440
     </task>
480
     <servers />
441
     <servers />
481
   </component>
442
   </component>
443
+  <component name="TestHistory">
444
+    <history-entry file="ProductTest_setPriceTest - 2018.11.05 at 19h 24m 15s.xml">
445
+      <configuration name="ProductTest.setPriceTest" configurationId="JUnit" />
446
+    </history-entry>
447
+    <history-entry file="ProductTest - 2018.11.05 at 19h 24m 39s.xml">
448
+      <configuration name="ProductTest" configurationId="JUnit" />
449
+    </history-entry>
450
+    <history-entry file="ProductTest - 2018.11.05 at 19h 25m 03s.xml">
451
+      <configuration name="ProductTest" configurationId="JUnit" />
452
+    </history-entry>
453
+    <history-entry file="ProductTest_getPriceTest - 2018.11.05 at 19h 27m 21s.xml">
454
+      <configuration name="ProductTest.getPriceTest" configurationId="JUnit" />
455
+    </history-entry>
456
+    <history-entry file="ProductTest_getPriceTest - 2018.11.05 at 19h 27m 44s.xml">
457
+      <configuration name="ProductTest.getPriceTest" configurationId="JUnit" />
458
+    </history-entry>
459
+    <history-entry file="ProductTest - 2018.11.06 at 09h 15m 51s.xml">
460
+      <configuration name="ProductTest" configurationId="JUnit" />
461
+    </history-entry>
462
+    <history-entry file="ProductTest - 2018.11.06 at 09h 17m 20s.xml">
463
+      <configuration name="ProductTest" configurationId="JUnit" />
464
+    </history-entry>
465
+  </component>
466
+  <component name="TimeTrackingManager">
467
+    <option name="totallyTimeSpent" value="15700000" />
468
+  </component>
482
   <component name="ToolWindowManager">
469
   <component name="ToolWindowManager">
483
-    <frame x="0" y="23" width="1920" height="1053" extended-state="6" />
470
+    <frame x="0" y="23" width="1280" height="701" extended-state="6" />
471
+    <editor active="true" />
484
     <layout>
472
     <layout>
485
-      <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
486
-      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
487
-      <window_info id="Nl-Palette" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
488
-      <window_info id="Palette&#9;" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
489
-      <window_info id="Image Layers" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
490
-      <window_info id="Capture Analysis" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
491
-      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
492
-      <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
493
-      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
494
-      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
495
-      <window_info id="Properties" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
496
-      <window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.3298647" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
497
-      <window_info id="Capture Tool" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
498
-      <window_info id="Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
499
-      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.24973376" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
500
-      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
501
-      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
502
-      <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
503
-      <window_info id="Theme Preview" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
504
-      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
505
-      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
506
-      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
507
-      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
508
-      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
509
-      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
510
-      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
511
-      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
473
+      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.39176092" />
474
+      <window_info id="Structure" order="1" weight="0.24959612" />
475
+      <window_info id="Nl-Palette" order="2" />
476
+      <window_info id="Favorites" order="3" side_tool="true" />
477
+      <window_info id="Image Layers" order="4" />
478
+      <window_info id="Designer" order="5" />
479
+      <window_info id="UI Designer" order="6" />
480
+      <window_info id="Capture Tool" order="7" />
481
+      <window_info anchor="bottom" id="Message" order="0" />
482
+      <window_info anchor="bottom" id="Find" order="1" />
483
+      <window_info anchor="bottom" id="Run" order="2" weight="0.54146343" />
484
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
485
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
486
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
487
+      <window_info anchor="bottom" id="TODO" order="6" />
488
+      <window_info anchor="bottom" id="Terminal" order="7" weight="0.328" />
489
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" weight="0.3296" />
490
+      <window_info anchor="bottom" id="Version Control" order="9" />
491
+      <window_info anchor="bottom" id="Messages" order="10" weight="0.3284553" />
492
+      <window_info anchor="bottom" id="Database Changes" order="11" show_stripe_button="false" />
493
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
494
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
495
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
496
+      <window_info anchor="right" id="Palette" order="3" />
497
+      <window_info anchor="right" id="Capture Analysis" order="4" />
498
+      <window_info anchor="right" id="Theme Preview" order="5" />
499
+      <window_info anchor="right" id="Properties" order="6" />
500
+      <window_info anchor="right" id="Palette&#9;" order="7" />
501
+      <window_info anchor="right" id="Maven Projects" order="8" />
502
+      <window_info anchor="right" id="Database" order="9" />
512
     </layout>
503
     </layout>
504
+    <layout-to-restore>
505
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.25767368" />
506
+      <window_info id="Structure" order="1" weight="0.25" />
507
+      <window_info id="Nl-Palette" order="2" />
508
+      <window_info id="Favorites" order="3" side_tool="true" />
509
+      <window_info id="Image Layers" order="4" />
510
+      <window_info id="Designer" order="5" />
511
+      <window_info id="UI Designer" order="6" />
512
+      <window_info id="Capture Tool" order="7" />
513
+      <window_info anchor="bottom" id="Message" order="0" />
514
+      <window_info anchor="bottom" id="Find" order="1" />
515
+      <window_info anchor="bottom" id="Run" order="2" />
516
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
517
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
518
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
519
+      <window_info anchor="bottom" id="TODO" order="6" />
520
+      <window_info active="true" anchor="bottom" id="Terminal" order="7" visible="true" weight="0.328" />
521
+      <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" />
522
+      <window_info anchor="bottom" id="Version Control" order="9" />
523
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
524
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
525
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
526
+      <window_info anchor="right" id="Palette" order="3" />
527
+      <window_info anchor="right" id="Capture Analysis" order="4" />
528
+      <window_info anchor="right" id="Theme Preview" order="5" />
529
+      <window_info anchor="right" id="Properties" order="6" />
530
+      <window_info anchor="right" id="Palette&#9;" order="7" />
531
+      <window_info anchor="right" id="Maven Projects" order="8" />
532
+    </layout-to-restore>
533
+  </component>
534
+  <component name="TypeScriptGeneratedFilesManager">
535
+    <option name="version" value="1" />
513
   </component>
536
   </component>
514
   <component name="VcsContentAnnotationSettings">
537
   <component name="VcsContentAnnotationSettings">
515
     <option name="myLimit" value="2678400000" />
538
     <option name="myLimit" value="2678400000" />
516
   </component>
539
   </component>
517
-  <component name="XDebuggerManager">
518
-    <breakpoint-manager />
519
-    <watches-manager />
520
-  </component>
521
   <component name="editorHistoryManager">
540
   <component name="editorHistoryManager">
522
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/MainApplication.java">
541
+    <entry file="file://$PROJECT_DIR$/.gitignore">
542
+      <provider selected="true" editor-type-id="text-editor" />
543
+    </entry>
544
+    <entry file="file://$PROJECT_DIR$/README.md">
545
+      <provider selected="true" editor-type-id="text-editor" />
546
+    </entry>
547
+    <entry file="file://$PROJECT_DIR$/pom.xml">
523
       <provider selected="true" editor-type-id="text-editor">
548
       <provider selected="true" editor-type-id="text-editor">
524
-        <state relative-caret-position="75">
525
-          <caret line="5" column="28" lean-forward="false" selection-start-line="5" selection-start-column="28" selection-end-line="5" selection-end-column="28" />
526
-          <folding />
549
+        <state relative-caret-position="165">
550
+          <caret line="11" column="10" selection-start-line="11" selection-start-column="10" selection-end-line="11" selection-end-column="10" />
527
         </state>
551
         </state>
528
       </provider>
552
       </provider>
529
     </entry>
553
     </entry>
530
-    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/Product.java">
554
+    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/productmanager/ProductTest.java">
531
       <provider selected="true" editor-type-id="text-editor">
555
       <provider selected="true" editor-type-id="text-editor">
532
-        <state relative-caret-position="75">
533
-          <caret line="5" column="20" lean-forward="false" selection-start-line="5" selection-start-column="20" selection-end-line="5" selection-end-column="20" />
534
-          <folding />
556
+        <state relative-caret-position="525">
557
+          <caret line="35" column="60" lean-forward="true" selection-start-line="35" selection-start-column="38" selection-end-line="35" selection-end-column="60" />
558
+          <folding>
559
+            <element signature="imports" expanded="true" />
560
+          </folding>
535
         </state>
561
         </state>
536
       </provider>
562
       </provider>
537
     </entry>
563
     </entry>
538
-    <entry file="file://$PROJECT_DIR$/src/test/java/com/zipcodewilmington/productmanager/ProductTest.java">
564
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/Product.java">
539
       <provider selected="true" editor-type-id="text-editor">
565
       <provider selected="true" editor-type-id="text-editor">
540
-        <state relative-caret-position="75">
541
-          <caret line="5" column="24" lean-forward="false" selection-start-line="5" selection-start-column="24" selection-end-line="5" selection-end-column="24" />
542
-          <folding />
566
+        <state relative-caret-position="690">
567
+          <caret line="46" selection-start-line="46" selection-end-line="46" />
543
         </state>
568
         </state>
544
       </provider>
569
       </provider>
545
     </entry>
570
     </entry>
546
-    <entry file="file://$PROJECT_DIR$/.gitignore">
571
+    <entry file="file://$PROJECT_DIR$/src/test/java/InventoryTest.java">
547
       <provider selected="true" editor-type-id="text-editor">
572
       <provider selected="true" editor-type-id="text-editor">
548
-        <state relative-caret-position="90">
549
-          <caret line="6" column="5" lean-forward="false" selection-start-line="6" selection-start-column="5" selection-end-line="6" selection-end-column="5" />
550
-          <folding />
573
+        <state relative-caret-position="352">
574
+          <caret line="106" column="23" selection-start-line="106" selection-start-column="23" selection-end-line="106" selection-end-column="23" />
575
+          <folding>
576
+            <element signature="imports" expanded="true" />
577
+          </folding>
551
         </state>
578
         </state>
552
       </provider>
579
       </provider>
553
     </entry>
580
     </entry>
554
-    <entry file="file://$PROJECT_DIR$/README.md">
555
-      <provider selected="true" editor-type-id="split-provider[text-editor;markdown-preview-editor]">
556
-        <state split_layout="SPLIT">
557
-          <first_editor relative-caret-position="285">
558
-            <caret line="19" column="27" lean-forward="false" selection-start-line="19" selection-start-column="27" selection-end-line="19" selection-end-column="27" />
559
-            <folding />
560
-          </first_editor>
561
-          <second_editor />
581
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/Inventory.java">
582
+      <provider selected="true" editor-type-id="text-editor">
583
+        <state relative-caret-position="300">
584
+          <caret line="20" column="16" selection-start-line="20" selection-start-column="16" selection-end-line="20" selection-end-column="16" />
585
+          <folding>
586
+            <element signature="imports" expanded="true" />
587
+          </folding>
562
         </state>
588
         </state>
563
       </provider>
589
       </provider>
564
     </entry>
590
     </entry>
565
-    <entry file="file://$PROJECT_DIR$/pom.xml">
591
+    <entry file="file://$PROJECT_DIR$/src/main/java/com/zipcodewilmington/productmanager/MainApplication.java">
566
       <provider selected="true" editor-type-id="text-editor">
592
       <provider selected="true" editor-type-id="text-editor">
567
-        <state relative-caret-position="165">
568
-          <caret line="11" column="10" lean-forward="false" selection-start-line="11" selection-start-column="10" selection-end-line="11" selection-end-column="10" />
569
-          <folding />
593
+        <state relative-caret-position="240">
594
+          <caret line="16" column="57" selection-start-line="16" selection-start-column="57" selection-end-line="16" selection-end-column="57" />
595
+          <folding>
596
+            <element signature="imports" expanded="true" />
597
+            <element signature="e#353#362#0" expanded="true" />
598
+          </folding>
570
         </state>
599
         </state>
571
       </provider>
600
       </provider>
572
     </entry>
601
     </entry>

+ 8
- 0
pom.xml Näytä tiedosto

7
     <groupId>com.zipcodewilmington</groupId>
7
     <groupId>com.zipcodewilmington</groupId>
8
     <artifactId>productmanager</artifactId>
8
     <artifactId>productmanager</artifactId>
9
     <version>1.0-SNAPSHOT</version>
9
     <version>1.0-SNAPSHOT</version>
10
+    <dependencies>
11
+        <dependency>
12
+            <groupId>junit</groupId>
13
+            <artifactId>junit</artifactId>
14
+            <version>4.12</version>
15
+            <scope>test</scope>
16
+        </dependency>
17
+    </dependencies>
10
 
18
 
11
 
19
 
12
 </project>
20
 </project>

+ 53
- 0
src/main/java/com/zipcodewilmington/productmanager/Inventory.java Näytä tiedosto

1
+package com.zipcodewilmington.productmanager;
2
+
3
+import java.util.ArrayList;
4
+import java.util.List;
5
+
6
+public class Inventory {
7
+
8
+    List<Product> productList = new ArrayList<Product>();
9
+
10
+
11
+    public Inventory(List<Product> productList) {
12
+        
13
+    }
14
+
15
+    public List<Product> getProductList() {
16
+
17
+        return productList;
18
+
19
+    }
20
+
21
+    public void add(Product product) {
22
+
23
+        productList.add(product);
24
+
25
+    }
26
+
27
+
28
+    public boolean contains(Product product) {
29
+
30
+        return productList.contains(product);
31
+    }
32
+
33
+    public void remove(Product product) {
34
+
35
+    }
36
+
37
+    public int size() {
38
+
39
+        return productList.size();
40
+    }
41
+
42
+    public double getTotalValue() {
43
+
44
+        double sum = 0;
45
+
46
+        for (Product p: productList) {
47
+             sum += p.getQuantity() * p.getPrice();
48
+        }
49
+
50
+        return sum;
51
+
52
+    }
53
+}

+ 42
- 0
src/main/java/com/zipcodewilmington/productmanager/MainApplication.java Näytä tiedosto

1
 package com.zipcodewilmington.productmanager;
1
 package com.zipcodewilmington.productmanager;
2
 
2
 
3
+import javax.management.remote.rmi.RMIConnectionImpl;
4
+import java.util.ArrayList;
5
+import java.util.List;
6
+import java.util.Scanner;
7
+
3
 /**
8
 /**
4
  * Created by leon on 1/10/18.
9
  * Created by leon on 1/10/18.
5
  */
10
  */
6
 public class MainApplication {
11
 public class MainApplication {
12
+
13
+    public static void main(String[] args) {
14
+
15
+        List<Product> productList = new ArrayList<Product>();
16
+
17
+        Inventory inventory = new Inventory(productList);
18
+
19
+
20
+        Scanner scanner = new Scanner(System.in);
21
+
22
+        System.out.println("Welcome to the Inventory Manager\n");
23
+
24
+        System.out.println(new StringBuilder()
25
+                .append("From here you can ")
26
+                .append("[ view ]")
27
+                .append(" [ add ]")
28
+                .append("[ remove ]")
29
+                .append("products.")
30
+                .toString());
31
+
32
+        String userInput = scanner.nextLine();
33
+        if(userInput.equals("view")) {
34
+            // display inventory
35
+            String view = inventory.toString();
36
+            System.out.println(view);
37
+        }
38
+
39
+        if(userInput.equals("add")) {
40
+            //prompt user for product information
41
+            System.out.println("What's the price?");
42
+            Double price = Double.parseDouble(scanner.nextLine());
43
+            //add product into inventory
44
+
45
+        }
46
+    }
47
+
48
+
7
 }
49
 }

+ 65
- 1
src/main/java/com/zipcodewilmington/productmanager/Product.java Näytä tiedosto

4
  * Created by leon on 1/10/18.
4
  * Created by leon on 1/10/18.
5
  */
5
  */
6
 public class Product {
6
 public class Product {
7
-}
7
+
8
+    private double price;
9
+
10
+    private int id;
11
+
12
+    private int quantity;
13
+
14
+    private String name;
15
+
16
+    public  Product(double price, int id, int quantity, String name ) {
17
+
18
+        this.price = price;
19
+
20
+        this.id = id;
21
+
22
+        this.quantity = quantity;
23
+
24
+        this.name = name;
25
+
26
+    }
27
+
28
+    public double getPrice() {
29
+
30
+        return price;
31
+    }
32
+
33
+    public void setPrice(double price) {
34
+
35
+        this.price = price;
36
+    }
37
+
38
+    public int getId() {
39
+
40
+        return id;
41
+    }
42
+
43
+    public void setId(int id) {
44
+
45
+        this.id = id;
46
+    }
47
+
48
+    public int getQuantity() {
49
+
50
+        return quantity;
51
+    }
52
+
53
+    public void setQuantity(int quantity) {
54
+
55
+        this.quantity = quantity;
56
+    }
57
+
58
+    public String getName() {
59
+
60
+        return name;
61
+    }
62
+
63
+    public void setName(String name) {
64
+
65
+        this.name = name;
66
+    }
67
+
68
+
69
+
70
+
71
+}

+ 114
- 0
src/test/java/InventoryTest.java Näytä tiedosto

1
+import com.zipcodewilmington.productmanager.Inventory;
2
+import com.zipcodewilmington.productmanager.Product;
3
+import org.junit.Assert;
4
+import org.junit.Test;
5
+
6
+import java.util.ArrayList;
7
+import java.util.List;
8
+
9
+public class InventoryTest {
10
+
11
+
12
+    @Test
13
+    public void constructorTest() {
14
+
15
+        //Given
16
+        List<Product> productList = new ArrayList<Product>();
17
+
18
+        //When
19
+        Inventory inventory = new Inventory(productList);
20
+
21
+        //Then
22
+        Assert.assertEquals(productList, inventory.getProductList());
23
+    }
24
+    @Test
25
+    public void nullaryConstructorTest() {
26
+
27
+        //Given
28
+        List<Product> productList = new ArrayList<Product>();
29
+
30
+        //When
31
+        Inventory inventory = new Inventory(productList);
32
+
33
+        List<Product> actual = inventory.getProductList();
34
+
35
+        //Then
36
+        Assert.assertNotNull(productList);
37
+
38
+        Assert.assertEquals(productList,actual);
39
+    }
40
+    @Test
41
+    public void addTest() {
42
+
43
+        //Given
44
+        List<Product> productList = new ArrayList<Product>();
45
+
46
+        Inventory inventory = new Inventory(productList);
47
+
48
+        Product product = new Product(79.99, 2, 20, "Hoodie");
49
+
50
+        //When
51
+        inventory.add(product);
52
+
53
+        //Then
54
+        Assert.assertTrue(inventory.contains(product));
55
+    }
56
+    @Test
57
+    public void removeTest() {
58
+
59
+        //Given
60
+        List<Product> productList = new ArrayList<Product>();
61
+
62
+        Inventory inventory = new Inventory(productList);
63
+
64
+        Product product = new Product(79.99, 2, 20, "Hoodie");
65
+
66
+        //When
67
+        inventory.remove(product);
68
+
69
+        //Then
70
+        Assert.assertFalse(inventory.contains(product));
71
+
72
+
73
+
74
+    }
75
+    @Test
76
+    public void sizeTest() {
77
+
78
+        //Given
79
+        List<Product> productList = new ArrayList<Product>();
80
+
81
+        Inventory inventory = new Inventory(productList);
82
+
83
+        Product product = new Product(79.99, 2, 20, "Hoodie");
84
+
85
+        inventory.add(product);
86
+
87
+        int expected = 1;
88
+
89
+        //When
90
+        int actual = inventory.size();
91
+
92
+        //Then
93
+        Assert.assertEquals(expected,actual);
94
+    }
95
+    @Test
96
+    public void getTotalValue() {
97
+
98
+        //Given
99
+        List<Product> productList = new ArrayList<Product>();
100
+
101
+        Product product = new Product(79.99, 2, 20, "Hoodie");
102
+
103
+        Inventory inventory = new Inventory(productList);
104
+
105
+
106
+        //When
107
+        inventory.getTotalValue();
108
+
109
+
110
+        //Then
111
+    }
112
+
113
+
114
+}

+ 140
- 0
src/test/java/com/zipcodewilmington/productmanager/ProductTest.java Näytä tiedosto

1
 package com.zipcodewilmington.productmanager;
1
 package com.zipcodewilmington.productmanager;
2
 
2
 
3
+import org.junit.Assert;
4
+import org.junit.Test;
5
+
3
 /**
6
 /**
4
  * Created by leon on 1/10/18.
7
  * Created by leon on 1/10/18.
5
  */
8
  */
6
 public class ProductTest {
9
 public class ProductTest {
10
+
11
+    @Test
12
+    public void constructorTest() {
13
+
14
+        //Given
15
+        double price = 79.99;
16
+
17
+        int id = 2;
18
+
19
+        int quantity = 20;
20
+
21
+        String name = "Hoodie";
22
+
23
+        //When
24
+        Product product = new Product(price, id, quantity,name);
25
+
26
+
27
+        //Then
28
+        Assert.assertEquals(price,product.getPrice());
29
+        Assert.assertEquals(id, product.getId());
30
+        Assert.assertEquals(quantity,product.getQuantity());
31
+    }
32
+    @Test
33
+    public void setPriceTest() {
34
+
35
+        //Given
36
+        Product product = new Product(79.99, 2, 20, "Hoodie");
37
+
38
+        //When
39
+        product.setPrice(20.00);
40
+
41
+
42
+        //Then
43
+        Assert.assertEquals(20.00, product.getPrice(), 0);
44
+
45
+    }
46
+    @Test
47
+    public void setIdTest() {
48
+
49
+        //Given
50
+        Product product = new Product(79.99, 2, 20, "Hoodie");
51
+
52
+        //When
53
+        product.setId(2);
54
+
55
+        //Then
56
+        Assert.assertEquals(2, product.getId());
57
+
58
+    }
59
+    @Test
60
+    public void setQuantityTest() {
61
+
62
+        //Given
63
+        Product product = new Product(79.99, 2, 20, "Hoodie");
64
+
65
+        //When
66
+        product.setQuantity(20);
67
+
68
+
69
+        //Then
70
+        Assert.assertEquals(20, product.getQuantity());
71
+
72
+
73
+    }
74
+    @Test
75
+    public void setNameTest() {
76
+
77
+        //Given
78
+        Product product = new Product(79.99, 2, 20, "Hoodie");
79
+
80
+        //When
81
+        product.setName("Hoodie");
82
+
83
+
84
+        //Then
85
+        Assert.assertEquals("Hoodie", product.getName());
86
+
87
+
88
+    }
89
+    @Test
90
+    public void getQuantityTest() {
91
+
92
+        //Given
93
+        Product product = new Product(79.99, 2, 20, "Hoodie");
94
+
95
+
96
+        //When
97
+        product.getQuantity();
98
+
99
+
100
+
101
+        //Then
102
+        Assert.assertEquals(20, product.getQuantity());
103
+
104
+    }
105
+    @Test
106
+    public void getPriceTest() {
107
+
108
+        //Given
109
+        Product product = new Product(79.99, 2, 20, "Hoodie");
110
+
111
+        //When
112
+        product.getPrice();
113
+
114
+
115
+        //Then
116
+        Assert.assertEquals(79.99, product.getPrice(), 0);
117
+
118
+    }
119
+    @Test
120
+    public void getIdTest() {
121
+
122
+        //Given
123
+        Product product = new Product(79.99, 2, 20, "Hoodie");
124
+
125
+        //When
126
+        product.getId();
127
+
128
+        //Then
129
+        Assert.assertEquals(2, product.getId());
130
+
131
+    }
132
+    @Test
133
+    public void getNameTest() {
134
+
135
+        //Given
136
+        Product product = new Product(79.99, 2, 20, "Hoodie");
137
+
138
+        //When
139
+        product.getName();
140
+
141
+
142
+        //Then
143
+        Assert.assertEquals("Hoodie", product.getName());
144
+
145
+
146
+    }
7
 }
147
 }