#36 woat Ahmad Rusdi

Açık
woat master içindeki woat/ZCW-MetricConversions-BlueJ:master işlemelerini 1 ile birleştirmek istiyor

+ 13
- 0
.idea/compiler.xml Dosyayı Görüntüle

@@ -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="MetricConversions" />
10
+      </profile>
11
+    </annotationProcessing>
12
+  </component>
13
+</project>

+ 6
- 0
.idea/encodings.xml Dosyayı Görüntüle

@@ -0,0 +1,6 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="Encoding">
4
+    <file url="file://$PROJECT_DIR$" charset="UTF-8" />
5
+  </component>
6
+</project>

+ 14
- 0
.idea/misc.xml Dosyayı Görüntüle

@@ -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 Dosyayı Görüntüle

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

+ 460
- 0
.idea/workspace.xml Dosyayı Görüntüle

@@ -0,0 +1,460 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="ChangeListManager">
4
+    <list default="true" id="384b8fda-4c02-4d16-a198-671592e30fa1" name="Default" comment="">
5
+      <change beforePath="$PROJECT_DIR$/ConversionTool.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/metric/ConversionTool.java" afterDir="false" />
6
+      <change beforePath="$PROJECT_DIR$/ConversionToolSpec.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/metric/ConversionToolSpec.java" afterDir="false" />
7
+    </list>
8
+    <ignored path="$PROJECT_DIR$/out/" />
9
+    <ignored path="$PROJECT_DIR$/target/" />
10
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
11
+    <option name="TRACKING_ENABLED" value="true" />
12
+    <option name="SHOW_DIALOG" value="false" />
13
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
14
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
15
+    <option name="LAST_RESOLUTION" value="IGNORE" />
16
+  </component>
17
+  <component name="FileEditorManager">
18
+    <splitter split-orientation="horizontal" split-proportion="0.5">
19
+      <split-first>
20
+        <leaf>
21
+          <file leaf-file-name="ConversionTool.java" pinned="false" current-in-tab="true">
22
+            <entry file="file://$PROJECT_DIR$/src/main/java/metric/ConversionTool.java">
23
+              <provider selected="true" editor-type-id="text-editor">
24
+                <state relative-caret-position="256">
25
+                  <caret line="28" column="33" selection-start-line="28" selection-start-column="33" selection-end-line="28" selection-end-column="33" />
26
+                  <folding>
27
+                    <element signature="e#157#158#0" expanded="true" />
28
+                    <element signature="e#212#213#0" expanded="true" />
29
+                    <element signature="e#272#273#0" expanded="true" />
30
+                    <element signature="e#322#323#0" expanded="true" />
31
+                    <element signature="e#373#374#0" expanded="true" />
32
+                    <element signature="e#405#406#0" expanded="true" />
33
+                    <element signature="e#472#473#0" expanded="true" />
34
+                    <element signature="e#518#519#0" expanded="true" />
35
+                    <element signature="e#633#634#0" expanded="true" />
36
+                    <element signature="e#674#675#0" expanded="true" />
37
+                    <element signature="e#738#739#0" expanded="true" />
38
+                    <element signature="e#785#786#0" expanded="true" />
39
+                    <element signature="e#776#777#0" expanded="true" />
40
+                    <element signature="e#808#809#0" expanded="true" />
41
+                    <element signature="e#868#869#0" expanded="true" />
42
+                    <element signature="e#914#915#0" expanded="true" />
43
+                  </folding>
44
+                </state>
45
+              </provider>
46
+            </entry>
47
+          </file>
48
+        </leaf>
49
+      </split-first>
50
+      <split-second>
51
+        <leaf>
52
+          <file leaf-file-name="ConversionToolSpec.java" pinned="false" current-in-tab="true">
53
+            <entry file="file://$PROJECT_DIR$/src/test/java/metric/ConversionToolSpec.java">
54
+              <provider selected="true" editor-type-id="text-editor">
55
+                <state relative-caret-position="-901">
56
+                  <caret line="5" column="14" selection-start-line="5" selection-start-column="14" selection-end-line="5" selection-end-column="14" />
57
+                  <folding>
58
+                    <element signature="imports" expanded="true" />
59
+                  </folding>
60
+                </state>
61
+              </provider>
62
+            </entry>
63
+          </file>
64
+        </leaf>
65
+      </split-second>
66
+    </splitter>
67
+  </component>
68
+  <component name="Git.Settings">
69
+    <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
70
+  </component>
71
+  <component name="IdeDocumentHistory">
72
+    <option name="CHANGED_PATHS">
73
+      <list>
74
+        <option value="$PROJECT_DIR$/src/test/java/metric/ConversionToolSpec.java" />
75
+        <option value="$PROJECT_DIR$/src/main/java/metric/ConversionTool.java" />
76
+      </list>
77
+    </option>
78
+  </component>
79
+  <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
80
+  <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
81
+  <component name="JsGulpfileManager">
82
+    <detection-done>true</detection-done>
83
+    <sorting>DEFINITION_ORDER</sorting>
84
+  </component>
85
+  <component name="MavenImportPreferences">
86
+    <option name="importingSettings">
87
+      <MavenImportingSettings>
88
+        <option name="importAutomatically" value="true" />
89
+      </MavenImportingSettings>
90
+    </option>
91
+  </component>
92
+  <component name="NodePackageJsonFileManager">
93
+    <packageJsonPaths />
94
+  </component>
95
+  <component name="ProjectFrameBounds">
96
+    <option name="x" value="640" />
97
+    <option name="y" value="4" />
98
+    <option name="width" value="636" />
99
+    <option name="height" value="792" />
100
+  </component>
101
+  <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
102
+  <component name="ProjectView">
103
+    <navigator proportions="" version="1">
104
+      <foldersAlwaysOnTop value="true" />
105
+    </navigator>
106
+    <panes>
107
+      <pane id="ProjectPane">
108
+        <subPane>
109
+          <expand>
110
+            <path>
111
+              <item name="MetricConversions" type="b2602c69:ProjectViewProjectNode" />
112
+              <item name="MetricConversions" type="462c0819:PsiDirectoryNode" />
113
+            </path>
114
+            <path>
115
+              <item name="MetricConversions" type="b2602c69:ProjectViewProjectNode" />
116
+              <item name="MetricConversions" type="462c0819:PsiDirectoryNode" />
117
+              <item name="src" type="462c0819:PsiDirectoryNode" />
118
+            </path>
119
+            <path>
120
+              <item name="MetricConversions" type="b2602c69:ProjectViewProjectNode" />
121
+              <item name="MetricConversions" type="462c0819:PsiDirectoryNode" />
122
+              <item name="src" type="462c0819:PsiDirectoryNode" />
123
+              <item name="main" type="462c0819:PsiDirectoryNode" />
124
+            </path>
125
+            <path>
126
+              <item name="MetricConversions" type="b2602c69:ProjectViewProjectNode" />
127
+              <item name="MetricConversions" type="462c0819:PsiDirectoryNode" />
128
+              <item name="src" type="462c0819:PsiDirectoryNode" />
129
+              <item name="main" type="462c0819:PsiDirectoryNode" />
130
+              <item name="java" type="462c0819:PsiDirectoryNode" />
131
+            </path>
132
+            <path>
133
+              <item name="MetricConversions" type="b2602c69:ProjectViewProjectNode" />
134
+              <item name="MetricConversions" type="462c0819:PsiDirectoryNode" />
135
+              <item name="src" type="462c0819:PsiDirectoryNode" />
136
+              <item name="main" type="462c0819:PsiDirectoryNode" />
137
+              <item name="java" type="462c0819:PsiDirectoryNode" />
138
+              <item name="metric" type="462c0819:PsiDirectoryNode" />
139
+            </path>
140
+            <path>
141
+              <item name="MetricConversions" type="b2602c69:ProjectViewProjectNode" />
142
+              <item name="MetricConversions" type="462c0819:PsiDirectoryNode" />
143
+              <item name="src" type="462c0819:PsiDirectoryNode" />
144
+              <item name="test" type="462c0819:PsiDirectoryNode" />
145
+            </path>
146
+            <path>
147
+              <item name="MetricConversions" type="b2602c69:ProjectViewProjectNode" />
148
+              <item name="MetricConversions" type="462c0819:PsiDirectoryNode" />
149
+              <item name="src" type="462c0819:PsiDirectoryNode" />
150
+              <item name="test" type="462c0819:PsiDirectoryNode" />
151
+              <item name="java" type="462c0819:PsiDirectoryNode" />
152
+            </path>
153
+            <path>
154
+              <item name="MetricConversions" type="b2602c69:ProjectViewProjectNode" />
155
+              <item name="MetricConversions" type="462c0819:PsiDirectoryNode" />
156
+              <item name="src" type="462c0819:PsiDirectoryNode" />
157
+              <item name="test" type="462c0819:PsiDirectoryNode" />
158
+              <item name="java" type="462c0819:PsiDirectoryNode" />
159
+              <item name="metric" type="462c0819:PsiDirectoryNode" />
160
+            </path>
161
+          </expand>
162
+          <select />
163
+        </subPane>
164
+      </pane>
165
+      <pane id="Scope" />
166
+      <pane id="AndroidView" />
167
+      <pane id="PackagesPane" />
168
+    </panes>
169
+  </component>
170
+  <component name="PropertiesComponent">
171
+    <property name="WebServerToolWindowFactoryState" value="false" />
172
+    <property name="aspect.path.notification.shown" value="true" />
173
+    <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
174
+    <property name="nodejs_npm_path_reset_for_default_project" value="true" />
175
+  </component>
176
+  <component name="RecentsManager">
177
+    <key name="MoveFile.RECENT_KEYS">
178
+      <recent name="$PROJECT_DIR$/src/test/java/metric" />
179
+      <recent name="$PROJECT_DIR$/src/main/java/metric" />
180
+    </key>
181
+  </component>
182
+  <component name="RunDashboard">
183
+    <option name="ruleStates">
184
+      <list>
185
+        <RuleState>
186
+          <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
187
+        </RuleState>
188
+        <RuleState>
189
+          <option name="name" value="StatusDashboardGroupingRule" />
190
+        </RuleState>
191
+      </list>
192
+    </option>
193
+  </component>
194
+  <component name="RunManager" selected="JUnit.ConversionToolSpec.shouldConvertFahrenheitToCelsius">
195
+    <configuration default="true" type="Application" factoryName="Application">
196
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
197
+    </configuration>
198
+    <configuration name="ConversionToolSpec" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
199
+      <module name="MetricConversions" />
200
+      <extension name="coverage">
201
+        <pattern>
202
+          <option name="PATTERN" value="metric.*" />
203
+          <option name="ENABLED" value="true" />
204
+        </pattern>
205
+      </extension>
206
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
207
+      <option name="ALTERNATIVE_JRE_PATH" />
208
+      <option name="PACKAGE_NAME" value="metric" />
209
+      <option name="MAIN_CLASS_NAME" value="metric.ConversionToolSpec" />
210
+      <option name="METHOD_NAME" />
211
+      <option name="TEST_OBJECT" value="class" />
212
+      <option name="VM_PARAMETERS" value="-ea" />
213
+      <option name="PARAMETERS" />
214
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
215
+      <option name="PASS_PARENT_ENVS" value="true" />
216
+      <option name="TEST_SEARCH_SCOPE">
217
+        <value defaultName="singleModule" />
218
+      </option>
219
+      <patterns />
220
+    </configuration>
221
+    <configuration name="ConversionToolSpec.shouldConvertCentimetersToInches" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
222
+      <module name="MetricConversions" />
223
+      <extension name="coverage">
224
+        <pattern>
225
+          <option name="PATTERN" value="metric.*" />
226
+          <option name="ENABLED" value="true" />
227
+        </pattern>
228
+      </extension>
229
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
230
+      <option name="ALTERNATIVE_JRE_PATH" />
231
+      <option name="PACKAGE_NAME" value="metric" />
232
+      <option name="MAIN_CLASS_NAME" value="metric.ConversionToolSpec" />
233
+      <option name="METHOD_NAME" value="shouldConvertCentimetersToInches" />
234
+      <option name="TEST_OBJECT" value="method" />
235
+      <option name="VM_PARAMETERS" value="-ea" />
236
+      <option name="PARAMETERS" />
237
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
238
+      <option name="PASS_PARENT_ENVS" value="true" />
239
+      <option name="TEST_SEARCH_SCOPE">
240
+        <value defaultName="singleModule" />
241
+      </option>
242
+      <patterns />
243
+    </configuration>
244
+    <configuration name="ConversionToolSpec.shouldConvertFahrenheitToCelsius" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
245
+      <module name="MetricConversions" />
246
+      <extension name="coverage">
247
+        <pattern>
248
+          <option name="PATTERN" value="metric.*" />
249
+          <option name="ENABLED" value="true" />
250
+        </pattern>
251
+      </extension>
252
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
253
+      <option name="ALTERNATIVE_JRE_PATH" />
254
+      <option name="PACKAGE_NAME" value="metric" />
255
+      <option name="MAIN_CLASS_NAME" value="metric.ConversionToolSpec" />
256
+      <option name="METHOD_NAME" value="shouldConvertFahrenheitToCelsius" />
257
+      <option name="TEST_OBJECT" value="method" />
258
+      <option name="VM_PARAMETERS" value="-ea" />
259
+      <option name="PARAMETERS" />
260
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
261
+      <option name="PASS_PARENT_ENVS" value="true" />
262
+      <option name="TEST_SEARCH_SCOPE">
263
+        <value defaultName="singleModule" />
264
+      </option>
265
+      <patterns />
266
+    </configuration>
267
+    <configuration default="true" type="JUnit" factoryName="JUnit">
268
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
269
+      <option name="ALTERNATIVE_JRE_PATH" />
270
+      <option name="PACKAGE_NAME" />
271
+      <option name="MAIN_CLASS_NAME" />
272
+      <option name="METHOD_NAME" />
273
+      <option name="TEST_OBJECT" value="class" />
274
+      <option name="VM_PARAMETERS" value="-ea" />
275
+      <option name="PARAMETERS" />
276
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
277
+      <option name="PASS_PARENT_ENVS" value="true" />
278
+      <option name="TEST_SEARCH_SCOPE">
279
+        <value defaultName="singleModule" />
280
+      </option>
281
+      <patterns />
282
+    </configuration>
283
+    <configuration default="true" type="TestNG" factoryName="TestNG">
284
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
285
+      <option name="ALTERNATIVE_JRE_PATH" />
286
+      <option name="SUITE_NAME" />
287
+      <option name="PACKAGE_NAME" />
288
+      <option name="MAIN_CLASS_NAME" />
289
+      <option name="METHOD_NAME" />
290
+      <option name="GROUP_NAME" />
291
+      <option name="TEST_OBJECT" value="CLASS" />
292
+      <option name="VM_PARAMETERS" value="-ea" />
293
+      <option name="PARAMETERS" />
294
+      <option name="WORKING_DIRECTORY" value="%MODULE_WORKING_DIR%" />
295
+      <option name="OUTPUT_DIRECTORY" />
296
+      <option name="PASS_PARENT_ENVS" value="true" />
297
+      <option name="TEST_SEARCH_SCOPE">
298
+        <value defaultName="singleModule" />
299
+      </option>
300
+      <option name="USE_DEFAULT_REPORTERS" value="false" />
301
+      <option name="PROPERTIES_FILE" />
302
+      <properties />
303
+      <listeners />
304
+    </configuration>
305
+    <list>
306
+      <item itemvalue="JUnit.ConversionToolSpec" />
307
+      <item itemvalue="JUnit.ConversionToolSpec.shouldConvertCentimetersToInches" />
308
+      <item itemvalue="JUnit.ConversionToolSpec.shouldConvertFahrenheitToCelsius" />
309
+    </list>
310
+    <recent_temporary>
311
+      <list>
312
+        <item itemvalue="JUnit.ConversionToolSpec.shouldConvertFahrenheitToCelsius" />
313
+        <item itemvalue="JUnit.ConversionToolSpec" />
314
+        <item itemvalue="JUnit.ConversionToolSpec.shouldConvertCentimetersToInches" />
315
+      </list>
316
+    </recent_temporary>
317
+  </component>
318
+  <component name="SvnConfiguration">
319
+    <configuration />
320
+  </component>
321
+  <component name="TaskManager">
322
+    <task active="true" id="Default" summary="Default task">
323
+      <changelist id="384b8fda-4c02-4d16-a198-671592e30fa1" name="Default" comment="" />
324
+      <created>1529524835145</created>
325
+      <option name="number" value="Default" />
326
+      <option name="presentableId" value="Default" />
327
+      <updated>1529524835145</updated>
328
+      <workItem from="1529524836778" duration="1308000" />
329
+    </task>
330
+    <servers />
331
+  </component>
332
+  <component name="TestHistory">
333
+    <history-entry file="ConversionToolSpec - 2018.06.20 at 16h 09m 55s.xml">
334
+      <configuration name="ConversionToolSpec" configurationId="JUnit" />
335
+    </history-entry>
336
+    <history-entry file="ConversionToolSpec - 2018.06.20 at 16h 27m 40s.xml">
337
+      <configuration name="ConversionToolSpec" configurationId="JUnit" />
338
+    </history-entry>
339
+    <history-entry file="ConversionToolSpec - 2018.06.20 at 16h 28m 07s.xml">
340
+      <configuration name="ConversionToolSpec" configurationId="JUnit" />
341
+    </history-entry>
342
+    <history-entry file="ConversionToolSpec - 2018.06.20 at 16h 31m 54s.xml">
343
+      <configuration name="ConversionToolSpec" configurationId="JUnit" />
344
+    </history-entry>
345
+    <history-entry file="ConversionToolSpec - 2018.06.20 at 16h 32m 12s.xml">
346
+      <configuration name="ConversionToolSpec" configurationId="JUnit" />
347
+    </history-entry>
348
+    <history-entry file="ConversionToolSpec - 2018.06.20 at 16h 33m 41s.xml">
349
+      <configuration name="ConversionToolSpec" configurationId="JUnit" />
350
+    </history-entry>
351
+    <history-entry file="ConversionToolSpec_shouldConvertFahrenheitToCelsius - 2018.06.20 at 16h 34m 55s.xml">
352
+      <configuration name="ConversionToolSpec.shouldConvertFahrenheitToCelsius" configurationId="JUnit" />
353
+    </history-entry>
354
+  </component>
355
+  <component name="TimeTrackingManager">
356
+    <option name="totallyTimeSpent" value="1308000" />
357
+  </component>
358
+  <component name="ToolWindowManager">
359
+    <frame x="4" y="4" width="1272" height="792" extended-state="6" />
360
+    <editor active="true" />
361
+    <layout>
362
+      <window_info anchor="right" id="Key Promoter X" />
363
+      <window_info anchor="right" id="Palette" />
364
+      <window_info anchor="bottom" id="TODO" order="6" />
365
+      <window_info anchor="bottom" id="Messages" weight="0.3294964" />
366
+      <window_info anchor="right" id="Palette&#9;" />
367
+      <window_info id="Image Layers" />
368
+      <window_info anchor="right" id="Capture Analysis" />
369
+      <window_info anchor="bottom" id="Event Log" side_tool="true" />
370
+      <window_info anchor="right" id="Maven Projects" />
371
+      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
372
+      <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.3294964" />
373
+      <window_info anchor="bottom" id="Version Control" />
374
+      <window_info anchor="bottom" id="Terminal" weight="0.3294964" />
375
+      <window_info id="Capture Tool" />
376
+      <window_info id="Designer" />
377
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2495935" />
378
+      <window_info anchor="right" id="Database" />
379
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
380
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
381
+      <window_info id="UI Designer" />
382
+      <window_info anchor="right" id="Theme Preview" />
383
+      <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
384
+      <window_info id="Favorites" side_tool="true" />
385
+      <window_info anchor="bottom" id="Find" order="1" />
386
+      <window_info anchor="right" id="Commander" order="0" weight="0.4" />
387
+      <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
388
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
389
+      <window_info anchor="bottom" id="Message" order="0" />
390
+      <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
391
+    </layout>
392
+  </component>
393
+  <component name="TypeScriptGeneratedFilesManager">
394
+    <option name="version" value="1" />
395
+  </component>
396
+  <component name="VcsContentAnnotationSettings">
397
+    <option name="myLimit" value="2678400000" />
398
+  </component>
399
+  <component name="XDebuggerManager">
400
+    <breakpoint-manager>
401
+      <option name="time" value="2" />
402
+    </breakpoint-manager>
403
+  </component>
404
+  <component name="editorHistoryManager">
405
+    <entry file="file://$PROJECT_DIR$/pom.xml">
406
+      <provider selected="true" editor-type-id="text-editor" />
407
+    </entry>
408
+    <entry file="file://$PROJECT_DIR$/src/test/java/metric/ConversionToolSpec.java">
409
+      <provider selected="true" editor-type-id="text-editor">
410
+        <state relative-caret-position="-901">
411
+          <caret line="5" column="14" selection-start-line="5" selection-start-column="14" selection-end-line="5" selection-end-column="14" />
412
+          <folding>
413
+            <element signature="imports" expanded="true" />
414
+          </folding>
415
+        </state>
416
+      </provider>
417
+    </entry>
418
+    <entry file="file://$PROJECT_DIR$/src/main/java/metric/ConversionTool.java">
419
+      <provider selected="true" editor-type-id="text-editor">
420
+        <state relative-caret-position="256">
421
+          <caret line="28" column="33" selection-start-line="28" selection-start-column="33" selection-end-line="28" selection-end-column="33" />
422
+          <folding>
423
+            <element signature="e#157#158#0" expanded="true" />
424
+            <element signature="e#212#213#0" expanded="true" />
425
+            <element signature="e#272#273#0" expanded="true" />
426
+            <element signature="e#322#323#0" expanded="true" />
427
+            <element signature="e#373#374#0" expanded="true" />
428
+            <element signature="e#405#406#0" expanded="true" />
429
+            <element signature="e#472#473#0" expanded="true" />
430
+            <element signature="e#518#519#0" expanded="true" />
431
+            <element signature="e#633#634#0" expanded="true" />
432
+            <element signature="e#674#675#0" expanded="true" />
433
+            <element signature="e#738#739#0" expanded="true" />
434
+            <element signature="e#785#786#0" expanded="true" />
435
+            <element signature="e#776#777#0" expanded="true" />
436
+            <element signature="e#808#809#0" expanded="true" />
437
+            <element signature="e#868#869#0" expanded="true" />
438
+            <element signature="e#914#915#0" expanded="true" />
439
+          </folding>
440
+        </state>
441
+      </provider>
442
+    </entry>
443
+  </component>
444
+  <component name="masterDetails">
445
+    <states>
446
+      <state key="ProjectJDKs.UI">
447
+        <settings>
448
+          <last-edited>1.8</last-edited>
449
+          <splitter-proportions>
450
+            <option name="proportions">
451
+              <list>
452
+                <option value="0.2" />
453
+              </list>
454
+            </option>
455
+          </splitter-proportions>
456
+        </settings>
457
+      </state>
458
+    </states>
459
+  </component>
460
+</project>

+ 0
- 21
ConversionTool.java Dosyayı Görüntüle

@@ -1,21 +0,0 @@
1
-public class ConversionTool {
2
-
3
-
4
-    public static void main(String[] args){}
5
-
6
-    public static float CentimetersToInches(float centimeters){}
7
-
8
-    public static float InchesToCentimeters(float inches){}
9
-
10
-    public static float FeetToMeters(float feet){}
11
-
12
-    public static float MetersToFeet(float meters){}
13
-
14
-    public static float CelsiusToFahrenheit(float celsius){}
15
-
16
-    public static float FahrenheitToCelsius(float fahrenheit){}
17
-
18
-    public static float MphToKph(float mph){}
19
-
20
-    public static float KphToMph(float kph){}
21
-}

+ 2
- 0
MetricConversions.iml Dosyayı Görüntüle

@@ -0,0 +1,2 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<module type="JAVA_MODULE" version="4" />

+ 65
- 0
pom.xml Dosyayı Görüntüle

@@ -0,0 +1,65 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+
3
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
+  <modelVersion>4.0.0</modelVersion>
6
+
7
+  <groupId>metric</groupId>
8
+  <artifactId>bipbode</artifactId>
9
+  <version>1.0-SNAPSHOT</version>
10
+
11
+  <name>bipbode</name>
12
+  <!-- FIXME change it to the project's website -->
13
+  <url>http://www.example.com</url>
14
+
15
+  <properties>
16
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17
+    <maven.compiler.source>1.7</maven.compiler.source>
18
+    <maven.compiler.target>1.7</maven.compiler.target>
19
+  </properties>
20
+
21
+  <dependencies>
22
+    <dependency>
23
+      <groupId>junit</groupId>
24
+      <artifactId>junit</artifactId>
25
+      <version>4.11</version>
26
+      <scope>test</scope>
27
+    </dependency>
28
+  </dependencies>
29
+
30
+  <build>
31
+    <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
32
+      <plugins>
33
+        <plugin>
34
+          <artifactId>maven-clean-plugin</artifactId>
35
+          <version>3.0.0</version>
36
+        </plugin>
37
+        <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
38
+        <plugin>
39
+          <artifactId>maven-resources-plugin</artifactId>
40
+          <version>3.0.2</version>
41
+        </plugin>
42
+        <plugin>
43
+          <artifactId>maven-compiler-plugin</artifactId>
44
+          <version>3.7.0</version>
45
+        </plugin>
46
+        <plugin>
47
+          <artifactId>maven-surefire-plugin</artifactId>
48
+          <version>2.20.1</version>
49
+        </plugin>
50
+        <plugin>
51
+          <artifactId>maven-jar-plugin</artifactId>
52
+          <version>3.0.2</version>
53
+        </plugin>
54
+        <plugin>
55
+          <artifactId>maven-install-plugin</artifactId>
56
+          <version>2.5.2</version>
57
+        </plugin>
58
+        <plugin>
59
+          <artifactId>maven-deploy-plugin</artifactId>
60
+          <version>2.8.2</version>
61
+        </plugin>
62
+      </plugins>
63
+    </pluginManagement>
64
+  </build>
65
+</project>

+ 13
- 0
src/main/java/metric/App.java Dosyayı Görüntüle

@@ -0,0 +1,13 @@
1
+package metric;
2
+
3
+/**
4
+ * Hello world!
5
+ *
6
+ */
7
+public class App 
8
+{
9
+    public static void main( String[] args )
10
+    {
11
+        System.out.println( "Hello World!" );
12
+    }
13
+}

+ 39
- 0
src/main/java/metric/ConversionTool.java Dosyayı Görüntüle

@@ -0,0 +1,39 @@
1
+package metric;
2
+
3
+public class ConversionTool {
4
+
5
+
6
+    public static void main(String[] args){}
7
+
8
+    public static float CentimetersToInches(float centimeters){
9
+        return (float) (Math.max(centimeters, 0) * 0.393701);
10
+    }
11
+
12
+    public static float InchesToCentimeters(float inches){
13
+        return (float) (Math.max(inches, 0) / 0.393701);
14
+    }
15
+
16
+    public static float FeetToMeters(float feet){
17
+        return (float) (Math.max(feet, 0) * 0.3048);
18
+    }
19
+
20
+    public static float MetersToFeet(float meters){
21
+        return (float) (Math.max(meters, 0) / 0.3048);
22
+    }
23
+
24
+    public static float CelsiusToFahrenheit(float celsius){
25
+        return celsius * 9/5 + 32;
26
+    }
27
+
28
+    public static float FahrenheitToCelsius(float fahrenheit){
29
+        return (fahrenheit - 32) * 5/9;
30
+    }
31
+
32
+    public static float MphToKph(float mph){
33
+        return (float) (Math.max(mph, 0) * 1.60934);
34
+    }
35
+
36
+    public static float KphToMph(float kph){
37
+        return (float) (Math.max(kph, 0) / 1.60934);
38
+    }
39
+}

+ 20
- 0
src/test/java/metric/AppTest.java Dosyayı Görüntüle

@@ -0,0 +1,20 @@
1
+package metric;
2
+
3
+import static org.junit.Assert.assertTrue;
4
+
5
+import org.junit.Test;
6
+
7
+/**
8
+ * Unit test for simple App.
9
+ */
10
+public class AppTest 
11
+{
12
+    /**
13
+     * Rigorous Test :-)
14
+     */
15
+    @Test
16
+    public void shouldAnswerWithTrue()
17
+    {
18
+        assertTrue( true );
19
+    }
20
+}

ConversionToolSpec.java → src/test/java/metric/ConversionToolSpec.java Dosyayı Görüntüle

@@ -1,3 +1,5 @@
1
+package metric;
2
+
1 3
 import static org.junit.Assert.assertEquals;
2 4
 import org.junit.Test;
3 5
 

BIN
target/classes/metric/App.class Dosyayı Görüntüle


BIN
target/classes/metric/ConversionTool.class Dosyayı Görüntüle


BIN
target/test-classes/metric/AppTest.class Dosyayı Görüntüle


BIN
target/test-classes/metric/ConversionToolSpec.class Dosyayı Görüntüle