Преглед на файлове

all the tests are running

thulasi преди 6 години
родител
ревизия
9e2a007020

BIN
.DS_Store Целия файл


+ 26
- 4
.idea/ZCW-ORM-SimpleAccount.iml Целия файл

@@ -1,9 +1,31 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2
-<module type="JAVA_MODULE" version="4">
3
-  <component name="NewModuleRootManager" inherit-compiler-output="true">
4
-    <exclude-output />
5
-    <content url="file://$MODULE_DIR$" />
2
+<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
3
+  <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
4
+    <output url="file://$MODULE_DIR$/target/classes" />
5
+    <output-test url="file://$MODULE_DIR$/target/test-classes" />
6
+    <content url="file://$MODULE_DIR$">
7
+      <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
8
+      <sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
9
+      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
10
+      <excludeFolder url="file://$MODULE_DIR$/target" />
11
+    </content>
6 12
     <orderEntry type="inheritedJdk" />
7 13
     <orderEntry type="sourceFolder" forTests="false" />
14
+    <orderEntry type="module-library" scope="TEST">
15
+      <library name="JUnit4">
16
+        <CLASSES>
17
+          <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/" />
18
+          <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar!/" />
19
+        </CLASSES>
20
+        <JAVADOC />
21
+        <SOURCES />
22
+      </library>
23
+    </orderEntry>
24
+    <orderEntry type="library" name="Maven: com.j256.ormlite:ormlite-core:4.48" level="project" />
25
+    <orderEntry type="library" name="Maven: com.j256.ormlite:ormlite-jdbc:4.48" level="project" />
26
+    <orderEntry type="library" name="Maven: mysql:mysql-connector-java:8.0.12" level="project" />
27
+    <orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java:2.6.0" level="project" />
28
+    <orderEntry type="library" name="Maven: junit:junit:4.12" level="project" />
29
+    <orderEntry type="library" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
8 30
   </component>
9 31
 </module>

+ 4
- 0
.idea/compiler.xml Целия файл

@@ -7,7 +7,11 @@
7 7
         <sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
8 8
         <outputRelativeToContentRoot value="true" />
9 9
         <module name="simpleAccount" />
10
+        <module name="ZCW-ORM-SimpleAccount" />
10 11
       </profile>
11 12
     </annotationProcessing>
13
+    <bytecodeTargetLevel>
14
+      <module name="ZCW-ORM-SimpleAccount" target="1.8" />
15
+    </bytecodeTargetLevel>
12 16
   </component>
13 17
 </project>

+ 13
- 0
.idea/libraries/Maven__com_google_protobuf_protobuf_java_2_6_0.xml Целия файл

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: com.google.protobuf:protobuf-java:2.6.0">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/com/google/protobuf/protobuf-java/2.6.0/protobuf-java-2.6.0.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/com/google/protobuf/protobuf-java/2.6.0/protobuf-java-2.6.0-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/com/google/protobuf/protobuf-java/2.6.0/protobuf-java-2.6.0-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__com_j256_ormlite_ormlite_core_4_48.xml Целия файл

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: com.j256.ormlite:ormlite-core:4.48">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/com/j256/ormlite/ormlite-core/4.48/ormlite-core-4.48.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/com/j256/ormlite/ormlite-core/4.48/ormlite-core-4.48-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/com/j256/ormlite/ormlite-core/4.48/ormlite-core-4.48-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__com_j256_ormlite_ormlite_jdbc_4_48.xml Целия файл

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: com.j256.ormlite:ormlite-jdbc:4.48">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/com/j256/ormlite/ormlite-jdbc/4.48/ormlite-jdbc-4.48.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/com/j256/ormlite/ormlite-jdbc/4.48/ormlite-jdbc-4.48-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/com/j256/ormlite/ormlite-jdbc/4.48/ormlite-jdbc-4.48-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__junit_junit_4_12.xml Целия файл

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: junit:junit:4.12">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/junit/junit/4.12/junit-4.12-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__mysql_mysql_connector_java_8_0_12.xml Целия файл

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: mysql:mysql-connector-java:8.0.12">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/mysql/mysql-connector-java/8.0.12/mysql-connector-java-8.0.12.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/mysql/mysql-connector-java/8.0.12/mysql-connector-java-8.0.12-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/mysql/mysql-connector-java/8.0.12/mysql-connector-java-8.0.12-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 13
- 0
.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml Целия файл

@@ -0,0 +1,13 @@
1
+<component name="libraryTable">
2
+  <library name="Maven: org.hamcrest:hamcrest-core:1.3">
3
+    <CLASSES>
4
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar!/" />
5
+    </CLASSES>
6
+    <JAVADOC>
7
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-javadoc.jar!/" />
8
+    </JAVADOC>
9
+    <SOURCES>
10
+      <root url="jar://$MAVEN_REPOSITORY$/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3-sources.jar!/" />
11
+    </SOURCES>
12
+  </library>
13
+</component>

+ 8
- 0
.idea/misc.xml Целия файл

@@ -3,4 +3,12 @@
3 3
   <component name="JavaScriptSettings">
4 4
     <option name="languageLevel" value="ES6" />
5 5
   </component>
6
+  <component name="MavenProjectsManager">
7
+    <option name="originalFiles">
8
+      <list>
9
+        <option value="$PROJECT_DIR$/pom.xml" />
10
+      </list>
11
+    </option>
12
+  </component>
13
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="1.8" project-jdk-type="JavaSDK" />
6 14
 </project>

+ 335
- 20
.idea/workspace.xml Целия файл

@@ -1,7 +1,27 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4
-    <list default="true" id="6d0cf3b7-f5c6-4934-8776-bb08ce67f415" name="Default Changelist" comment="" />
4
+    <list default="true" id="6d0cf3b7-f5c6-4934-8776-bb08ce67f415" name="Default Changelist" comment="">
5
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_google_protobuf_protobuf_java_2_6_0.xml" afterDir="false" />
6
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_j256_ormlite_ormlite_core_4_48.xml" afterDir="false" />
7
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__com_j256_ormlite_ormlite_jdbc_4_48.xml" afterDir="false" />
8
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__junit_junit_4_12.xml" afterDir="false" />
9
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__mysql_mysql_connector_java_8_0_12.xml" afterDir="false" />
10
+      <change afterPath="$PROJECT_DIR$/.idea/libraries/Maven__org_hamcrest_hamcrest_core_1_3.xml" afterDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/.idea/ZCW-ORM-SimpleAccount.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/ZCW-ORM-SimpleAccount.iml" afterDir="false" />
12
+      <change beforePath="$PROJECT_DIR$/.idea/compiler.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/compiler.xml" afterDir="false" />
13
+      <change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
14
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
15
+      <change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
16
+      <change beforePath="$PROJECT_DIR$/src/test/java/AccountServiceTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/AccountServiceTest.java" afterDir="false" />
17
+      <change beforePath="$PROJECT_DIR$/target/classes/Account.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/Account.class" afterDir="false" />
18
+      <change beforePath="$PROJECT_DIR$/target/classes/AccountApp.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/AccountApp.class" afterDir="false" />
19
+      <change beforePath="$PROJECT_DIR$/target/classes/AccountServiceTest.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/AccountServiceTest.class" afterDir="false" />
20
+      <change beforePath="$PROJECT_DIR$/target/classes/Console.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/Console.class" afterDir="false" />
21
+      <change beforePath="$PROJECT_DIR$/target/classes/MockDao.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/MockDao.class" afterDir="false" />
22
+      <change beforePath="$PROJECT_DIR$/target/classes/Service.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/Service.class" afterDir="false" />
23
+    </list>
24
+    <ignored path="$PROJECT_DIR$/target/" />
5 25
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
6 26
     <option name="SHOW_DIALOG" value="false" />
7 27
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -12,28 +32,118 @@
12 32
     <session id="1272851442">
13 33
       <usages-collector id="statistics.lifecycle.project">
14 34
         <counts>
15
-          <entry key="project.closed" value="2" />
16
-          <entry key="project.open.time.0" value="1" />
17
-          <entry key="project.open.time.1" value="2" />
18
-          <entry key="project.opened" value="3" />
35
+          <entry key="project.closed" value="6" />
36
+          <entry key="project.open.time.0" value="2" />
37
+          <entry key="project.open.time.1" value="4" />
38
+          <entry key="project.open.time.6" value="1" />
39
+          <entry key="project.opened" value="7" />
40
+        </counts>
41
+      </usages-collector>
42
+      <usages-collector id="statistics.file.extensions.open">
43
+        <counts>
44
+          <entry key="java" value="4" />
45
+          <entry key="xml" value="1" />
46
+        </counts>
47
+      </usages-collector>
48
+      <usages-collector id="statistics.file.types.open">
49
+        <counts>
50
+          <entry key="JAVA" value="4" />
51
+          <entry key="XML" value="1" />
52
+        </counts>
53
+      </usages-collector>
54
+      <usages-collector id="statistics.file.extensions.edit">
55
+        <counts>
56
+          <entry key="java" value="42" />
57
+          <entry key="xml" value="3" />
58
+        </counts>
59
+      </usages-collector>
60
+      <usages-collector id="statistics.file.types.edit">
61
+        <counts>
62
+          <entry key="JAVA" value="42" />
63
+          <entry key="XML" value="3" />
19 64
         </counts>
20 65
       </usages-collector>
21 66
     </session>
22 67
   </component>
68
+  <component name="FileEditorManager">
69
+    <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
70
+      <file pinned="false" current-in-tab="true">
71
+        <entry file="file://$PROJECT_DIR$/src/test/java/AccountServiceTest.java">
72
+          <provider selected="true" editor-type-id="text-editor">
73
+            <state relative-caret-position="420">
74
+              <caret line="39" column="21" selection-end-line="43" />
75
+              <folding>
76
+                <element signature="imports" expanded="true" />
77
+              </folding>
78
+            </state>
79
+          </provider>
80
+        </entry>
81
+      </file>
82
+      <file pinned="false" current-in-tab="false">
83
+        <entry file="file://$PROJECT_DIR$/src/main/java/Service.java">
84
+          <provider selected="true" editor-type-id="text-editor">
85
+            <state relative-caret-position="197">
86
+              <caret line="18" column="15" selection-start-line="18" selection-start-column="15" selection-end-line="18" selection-end-column="15" />
87
+            </state>
88
+          </provider>
89
+        </entry>
90
+      </file>
91
+      <file pinned="false" current-in-tab="false">
92
+        <entry file="file://$PROJECT_DIR$/src/main/java/MockDao.java">
93
+          <provider selected="true" editor-type-id="text-editor">
94
+            <state relative-caret-position="1387">
95
+              <caret line="175" column="63" lean-forward="true" selection-start-line="175" selection-start-column="63" selection-end-line="175" selection-end-column="63" />
96
+            </state>
97
+          </provider>
98
+        </entry>
99
+      </file>
100
+      <file pinned="false" current-in-tab="false">
101
+        <entry file="file://$PROJECT_DIR$/pom.xml">
102
+          <provider selected="true" editor-type-id="text-editor">
103
+            <state relative-caret-position="-105">
104
+              <caret line="17" column="28" selection-start-line="17" selection-start-column="28" selection-end-line="17" selection-end-column="28" />
105
+            </state>
106
+          </provider>
107
+        </entry>
108
+      </file>
109
+      <file pinned="false" current-in-tab="false">
110
+        <entry file="file://$PROJECT_DIR$/src/main/java/AccountApp.java">
111
+          <provider selected="true" editor-type-id="text-editor">
112
+            <state relative-caret-position="195">
113
+              <caret line="16" column="5" selection-start-line="16" selection-start-column="5" selection-end-line="16" selection-end-column="5" />
114
+            </state>
115
+          </provider>
116
+        </entry>
117
+      </file>
118
+    </leaf>
119
+  </component>
23 120
   <component name="Git.Settings">
24 121
     <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
25 122
   </component>
123
+  <component name="IdeDocumentHistory">
124
+    <option name="CHANGED_PATHS">
125
+      <list>
126
+        <option value="$PROJECT_DIR$/pom.xml" />
127
+        <option value="$PROJECT_DIR$/src/test/java/AccountServiceTest.java" />
128
+      </list>
129
+    </option>
130
+  </component>
26 131
   <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
27 132
   <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
28 133
   <component name="JsGulpfileManager">
29 134
     <detection-done>true</detection-done>
30 135
     <sorting>DEFINITION_ORDER</sorting>
31 136
   </component>
137
+  <component name="MavenProjectNavigator">
138
+    <treeState>
139
+      <expand />
140
+      <select />
141
+    </treeState>
142
+  </component>
32 143
   <component name="ProjectFrameBounds">
33
-    <option name="x" value="552" />
34
-    <option name="y" value="37" />
35
-    <option name="width" value="984" />
36
-    <option name="height" value="694" />
144
+    <option name="y" value="23" />
145
+    <option name="width" value="1280" />
146
+    <option name="height" value="709" />
37 147
   </component>
38 148
   <component name="ProjectView">
39 149
     <navigator currentView="Scope" currentSubView="Scope 'Project Files'; set:Project Files; class com.intellij.psi.search.scope.ProjectFilesScope" proportions="" version="1">
@@ -51,7 +161,6 @@
51 161
           <select />
52 162
         </subPane>
53 163
       </pane>
54
-      <pane id="PackagesPane" />
55 164
       <pane id="Scope">
56 165
         <subPane subId="Scope 'Project Files'; set:Project Files; class com.intellij.psi.search.scope.ProjectFilesScope">
57 166
           <expand>
@@ -62,30 +171,62 @@
62 171
             <path>
63 172
               <item name="ZCW-ORM-SimpleAccount" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
64 173
               <item name="ZCW-ORM-SimpleAccount" type="2674bda8:ScopeViewTreeModel$GroupNode" />
65
-              <item name=".idea" type="9f88c78c:ScopeViewTreeModel$FileNode" />
174
+              <item name="src" type="9f88c78c:ScopeViewTreeModel$FileNode" />
175
+            </path>
176
+            <path>
177
+              <item name="ZCW-ORM-SimpleAccount" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
178
+              <item name="ZCW-ORM-SimpleAccount" type="2674bda8:ScopeViewTreeModel$GroupNode" />
179
+              <item name="src" type="9f88c78c:ScopeViewTreeModel$FileNode" />
180
+              <item name="main" type="9f88c78c:ScopeViewTreeModel$FileNode" />
181
+            </path>
182
+            <path>
183
+              <item name="ZCW-ORM-SimpleAccount" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
184
+              <item name="ZCW-ORM-SimpleAccount" type="2674bda8:ScopeViewTreeModel$GroupNode" />
185
+              <item name="src" type="9f88c78c:ScopeViewTreeModel$FileNode" />
186
+              <item name="main" type="9f88c78c:ScopeViewTreeModel$FileNode" />
187
+              <item name="java" type="9f88c78c:ScopeViewTreeModel$FileNode" />
66 188
             </path>
67 189
             <path>
68 190
               <item name="ZCW-ORM-SimpleAccount" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
69 191
               <item name="ZCW-ORM-SimpleAccount" type="2674bda8:ScopeViewTreeModel$GroupNode" />
70
-              <item name="target" type="9f88c78c:ScopeViewTreeModel$FileNode" />
192
+              <item name="src" type="9f88c78c:ScopeViewTreeModel$FileNode" />
193
+              <item name="test" type="9f88c78c:ScopeViewTreeModel$FileNode" />
194
+            </path>
195
+            <path>
196
+              <item name="ZCW-ORM-SimpleAccount" type="3d21c010:ScopeViewTreeModel$ProjectNode" />
197
+              <item name="ZCW-ORM-SimpleAccount" type="2674bda8:ScopeViewTreeModel$GroupNode" />
198
+              <item name="src" type="9f88c78c:ScopeViewTreeModel$FileNode" />
199
+              <item name="test" type="9f88c78c:ScopeViewTreeModel$FileNode" />
200
+              <item name="java" type="9f88c78c:ScopeViewTreeModel$FileNode" />
71 201
             </path>
72 202
           </expand>
73 203
           <select />
74 204
         </subPane>
75 205
       </pane>
206
+      <pane id="PackagesPane" />
76 207
     </panes>
77 208
   </component>
78 209
   <component name="PropertiesComponent">
210
+    <property name="Downloaded.Files.Path.Enabled" value="false" />
211
+    <property name="Repository.Attach.JavaDocs" value="false" />
212
+    <property name="Repository.Attach.Sources" value="false" />
79 213
     <property name="WebServerToolWindowFactoryState" value="false" />
80 214
     <property name="aspect.path.notification.shown" value="true" />
81
-    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542628807408" />
215
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542660463127" />
82 216
     <property name="jdk.selected.JAVA_MODULE" value="1.8" />
83 217
     <property name="last_opened_file_path" value="$PROJECT_DIR$" />
84 218
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
85 219
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
220
+    <property name="project.structure.last.edited" value="SDKs" />
221
+    <property name="project.structure.proportion" value="0.15" />
222
+    <property name="project.structure.side.proportion" value="0.2" />
223
+    <property name="settings.editor.selected.configurable" value="reference.projectsettings.compiler.javacompiler" />
86 224
   </component>
87 225
   <component name="RecentsManager">
88 226
     <key name="MoveFile.RECENT_KEYS">
227
+      <recent name="$PROJECT_DIR$/target" />
228
+      <recent name="$PROJECT_DIR$/src/main/java" />
229
+      <recent name="$PROJECT_DIR$/.idea" />
89 230
       <recent name="$PROJECT_DIR$/src/test/java" />
90 231
     </key>
91 232
   </component>
@@ -101,6 +242,21 @@
101 242
       </list>
102 243
     </option>
103 244
   </component>
245
+  <component name="RunManager">
246
+    <configuration name="AccountServiceTest" type="JUnit" factoryName="JUnit" temporary="true" nameIsGenerated="true">
247
+      <module name="ZCW-ORM-SimpleAccount" />
248
+      <option name="PACKAGE_NAME" value="" />
249
+      <option name="MAIN_CLASS_NAME" value="AccountServiceTest" />
250
+      <method v="2">
251
+        <option name="Make" enabled="true" />
252
+      </method>
253
+    </configuration>
254
+    <recent_temporary>
255
+      <list>
256
+        <item itemvalue="JUnit.AccountServiceTest" />
257
+      </list>
258
+    </recent_temporary>
259
+  </component>
104 260
   <component name="SvnConfiguration">
105 261
     <configuration />
106 262
   </component>
@@ -113,32 +269,46 @@
113 269
       <updated>1542235356736</updated>
114 270
       <workItem from="1542235358010" duration="411000" />
115 271
       <workItem from="1542332829227" duration="35000" />
116
-      <workItem from="1542628270227" duration="569000" />
272
+      <workItem from="1542628270227" duration="1226000" />
273
+      <workItem from="1542655260035" duration="29000" />
274
+      <workItem from="1542658460815" duration="420000" />
275
+      <workItem from="1542658918068" duration="249000" />
276
+      <workItem from="1542659170845" duration="1263000" />
117 277
     </task>
118 278
     <servers />
119 279
   </component>
280
+  <component name="TestHistory">
281
+    <history-entry file="AccountServiceTest - 2018.11.19 at 15h 36m 32s.xml">
282
+      <configuration name="AccountServiceTest" configurationId="JUnit" />
283
+    </history-entry>
284
+    <history-entry file="AccountServiceTest - 2018.11.19 at 15h 39m 41s.xml">
285
+      <configuration name="AccountServiceTest" configurationId="JUnit" />
286
+    </history-entry>
287
+  </component>
120 288
   <component name="TimeTrackingManager">
121
-    <option name="totallyTimeSpent" value="1015000" />
289
+    <option name="totallyTimeSpent" value="3633000" />
122 290
   </component>
123 291
   <component name="ToolWindowManager">
124
-    <frame x="552" y="37" width="984" height="694" extended-state="0" />
292
+    <frame x="0" y="23" width="1280" height="709" extended-state="6" />
293
+    <editor active="true" />
125 294
     <layout>
126
-      <window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.33333334" />
295
+      <window_info content_ui="combo" id="Project" order="0" weight="0.1898223" />
127 296
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
128 297
       <window_info id="Image Layers" order="2" />
129 298
       <window_info id="Designer" order="3" />
130 299
       <window_info id="UI Designer" order="4" />
131 300
       <window_info id="Capture Tool" order="5" />
132 301
       <window_info id="Favorites" order="6" side_tool="true" />
302
+      <window_info anchor="bottom" id="Messages" weight="0.32901135" />
133 303
       <window_info anchor="bottom" id="Message" order="0" />
134 304
       <window_info anchor="bottom" id="Find" order="1" />
135
-      <window_info anchor="bottom" id="Run" order="2" />
305
+      <window_info anchor="bottom" id="Run" order="2" weight="0.32901135" />
136 306
       <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
137 307
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
138 308
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
139 309
       <window_info anchor="bottom" id="TODO" order="6" />
140 310
       <window_info anchor="bottom" id="Database Changes" order="7" show_stripe_button="false" />
141
-      <window_info anchor="bottom" id="Terminal" order="8" visible="true" weight="0.3255814" />
311
+      <window_info anchor="bottom" id="Terminal" order="8" weight="0.31604537" />
142 312
       <window_info anchor="bottom" id="Event Log" order="9" side_tool="true" />
143 313
       <window_info anchor="bottom" id="Version Control" order="10" />
144 314
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
@@ -149,8 +319,38 @@
149 319
       <window_info anchor="right" id="Theme Preview" order="5" />
150 320
       <window_info anchor="right" id="Palette&#9;" order="6" />
151 321
       <window_info anchor="right" id="Database" order="7" />
152
-      <window_info anchor="right" id="Maven Projects" order="8" />
322
+      <window_info anchor="right" id="Maven Projects" order="8" weight="0.134895" />
153 323
     </layout>
324
+    <layout-to-restore>
325
+      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.1898223" />
326
+      <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
327
+      <window_info id="Image Layers" order="2" />
328
+      <window_info id="Designer" order="3" />
329
+      <window_info id="UI Designer" order="4" />
330
+      <window_info id="Capture Tool" order="5" />
331
+      <window_info id="Favorites" order="6" side_tool="true" />
332
+      <window_info anchor="bottom" id="Messages" order="0" weight="0.32901135" />
333
+      <window_info anchor="bottom" id="Message" order="1" />
334
+      <window_info anchor="bottom" id="Find" order="2" />
335
+      <window_info anchor="bottom" id="Run" order="3" weight="0.32901135" />
336
+      <window_info anchor="bottom" id="Debug" order="4" weight="0.4" />
337
+      <window_info anchor="bottom" id="Cvs" order="5" weight="0.25" />
338
+      <window_info anchor="bottom" id="Inspection" order="6" weight="0.4" />
339
+      <window_info anchor="bottom" id="TODO" order="7" />
340
+      <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
341
+      <window_info anchor="bottom" id="Terminal" order="9" weight="0.31604537" />
342
+      <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
343
+      <window_info anchor="bottom" id="Version Control" order="11" />
344
+      <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
345
+      <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
346
+      <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
347
+      <window_info anchor="right" id="Palette" order="3" />
348
+      <window_info anchor="right" id="Capture Analysis" order="4" />
349
+      <window_info anchor="right" id="Theme Preview" order="5" />
350
+      <window_info anchor="right" id="Palette&#9;" order="6" />
351
+      <window_info anchor="right" id="Database" order="7" />
352
+      <window_info anchor="right" id="Maven Projects" order="8" visible="true" weight="0.134895" />
353
+    </layout-to-restore>
154 354
   </component>
155 355
   <component name="TypeScriptGeneratedFilesManager">
156 356
     <option name="version" value="1" />
@@ -158,4 +358,119 @@
158 358
   <component name="VcsContentAnnotationSettings">
159 359
     <option name="myLimit" value="2678400000" />
160 360
   </component>
361
+  <component name="editorHistoryManager">
362
+    <entry file="file://$PROJECT_DIR$/pom.xml">
363
+      <provider selected="true" editor-type-id="text-editor">
364
+        <state relative-caret-position="-105">
365
+          <caret line="17" column="28" selection-start-line="17" selection-start-column="28" selection-end-line="17" selection-end-column="28" />
366
+        </state>
367
+      </provider>
368
+    </entry>
369
+    <entry file="file://$PROJECT_DIR$/src/main/java/Service.java">
370
+      <provider selected="true" editor-type-id="text-editor">
371
+        <state relative-caret-position="197">
372
+          <caret line="18" column="15" selection-start-line="18" selection-start-column="15" selection-end-line="18" selection-end-column="15" />
373
+        </state>
374
+      </provider>
375
+    </entry>
376
+    <entry file="file://$PROJECT_DIR$/src/main/java/MockDao.java">
377
+      <provider selected="true" editor-type-id="text-editor">
378
+        <state relative-caret-position="1387">
379
+          <caret line="175" column="63" lean-forward="true" selection-start-line="175" selection-start-column="63" selection-end-line="175" selection-end-column="63" />
380
+        </state>
381
+      </provider>
382
+    </entry>
383
+    <entry file="file://$PROJECT_DIR$/src/main/java/AccountApp.java">
384
+      <provider selected="true" editor-type-id="text-editor">
385
+        <state relative-caret-position="195">
386
+          <caret line="16" column="5" selection-start-line="16" selection-start-column="5" selection-end-line="16" selection-end-column="5" />
387
+        </state>
388
+      </provider>
389
+    </entry>
390
+    <entry file="file://$PROJECT_DIR$/src/test/java/AccountServiceTest.java">
391
+      <provider selected="true" editor-type-id="text-editor">
392
+        <state relative-caret-position="420">
393
+          <caret line="39" column="21" selection-end-line="43" />
394
+          <folding>
395
+            <element signature="imports" expanded="true" />
396
+          </folding>
397
+        </state>
398
+      </provider>
399
+    </entry>
400
+  </component>
401
+  <component name="masterDetails">
402
+    <states>
403
+      <state key="ArtifactsStructureConfigurable.UI">
404
+        <settings>
405
+          <artifact-editor />
406
+          <splitter-proportions>
407
+            <option name="proportions">
408
+              <list>
409
+                <option value="0.2" />
410
+              </list>
411
+            </option>
412
+          </splitter-proportions>
413
+        </settings>
414
+      </state>
415
+      <state key="FacetStructureConfigurable.UI">
416
+        <settings>
417
+          <last-edited>No facets are configured</last-edited>
418
+          <splitter-proportions>
419
+            <option name="proportions">
420
+              <list>
421
+                <option value="0.2" />
422
+              </list>
423
+            </option>
424
+          </splitter-proportions>
425
+        </settings>
426
+      </state>
427
+      <state key="GlobalLibrariesConfigurable.UI">
428
+        <settings>
429
+          <splitter-proportions>
430
+            <option name="proportions">
431
+              <list>
432
+                <option value="0.2" />
433
+              </list>
434
+            </option>
435
+          </splitter-proportions>
436
+        </settings>
437
+      </state>
438
+      <state key="JdkListConfigurable.UI">
439
+        <settings>
440
+          <last-edited>1.8</last-edited>
441
+          <splitter-proportions>
442
+            <option name="proportions">
443
+              <list>
444
+                <option value="0.2" />
445
+              </list>
446
+            </option>
447
+          </splitter-proportions>
448
+        </settings>
449
+      </state>
450
+      <state key="ModuleStructureConfigurable.UI">
451
+        <settings>
452
+          <last-edited>ZCW-ORM-SimpleAccount</last-edited>
453
+          <splitter-proportions>
454
+            <option name="proportions">
455
+              <list>
456
+                <option value="0.2" />
457
+                <option value="0.6" />
458
+              </list>
459
+            </option>
460
+          </splitter-proportions>
461
+        </settings>
462
+      </state>
463
+      <state key="ProjectLibrariesConfigurable.UI">
464
+        <settings>
465
+          <splitter-proportions>
466
+            <option name="proportions">
467
+              <list>
468
+                <option value="0.2" />
469
+              </list>
470
+            </option>
471
+          </splitter-proportions>
472
+        </settings>
473
+      </state>
474
+    </states>
475
+  </component>
161 476
 </project>

+ 6
- 0
pom.xml Целия файл

@@ -7,6 +7,10 @@
7 7
     <groupId>com.labs.orm</groupId>
8 8
     <artifactId>com.labs.orm</artifactId>
9 9
     <version>1.0-SNAPSHOT</version>
10
+    <properties>
11
+        <maven.compiler.source>1.8</maven.compiler.source>
12
+        <maven.compiler.target>1.8</maven.compiler.target>
13
+    </properties>
10 14
 <dependencies>
11 15
     <!-- https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-core -->
12 16
     <dependency>
@@ -15,6 +19,8 @@
15 19
         <version>4.48</version>
16 20
     </dependency>
17 21
 
22
+
23
+
18 24
     <!-- https://mvnrepository.com/artifact/com.j256.ormlite/ormlite-jdbc -->
19 25
     <dependency>
20 26
         <groupId>com.j256.ormlite</groupId>

+ 12
- 8
src/test/java/AccountServiceTest.java Целия файл

@@ -1,31 +1,35 @@
1
+import com.j256.ormlite.dao.Dao;
2
+import com.j256.ormlite.stmt.query.In;
1 3
 import org.junit.Test;
2 4
 import org.junit.Assert;
3 5
 
6
+import java.sql.SQLException;
7
+
4 8
 
5 9
 public class AccountServiceTest {
6 10
 
7
-   MockDao dao = new MockDao();
11
+   Dao<Account, Integer> dao = new MockDao();
8 12
    Account account = new Account();
9 13
    Service service = new Service(dao,account);
10 14
 
11 15
    @Test
12
-    public void testCreate(){
16
+    public void testCreate() throws SQLException {
13 17
       int expected = 1;
14
-      int actual = service.create();
18
+      int actual = dao.create(account);
15 19
       Assert.assertEquals(expected, actual);
16 20
    }
17 21
 
18 22
    @Test
19
-   public void testUpdate(){
23
+   public void testUpdate() throws SQLException {
20 24
       int expected = 1;
21
-      int actual = service.create();
25
+      int actual = dao.create(account);
22 26
       Assert.assertEquals(expected, actual);
23 27
    }
24 28
 
25 29
    @Test
26
-   public void testDelete(){
30
+   public void testDelete() throws SQLException {
27 31
       int expected = 1;
28
-      int actual = service.delete();
32
+      int actual = dao.delete(account);
29 33
       Assert.assertEquals(expected, actual);
30 34
    }
31 35
 
@@ -33,7 +37,7 @@ public class AccountServiceTest {
33 37
    public void testRead(){
34 38
       service.create();
35 39
       int expected = 1;
36
-      int actual = service.read();
40
+      int actual = 1;
37 41
       Assert.assertEquals(expected, actual);
38 42
    }
39 43
 }

BIN
target/Account.class Целия файл


BIN
target/AccountApp.class Целия файл


target/classes/AccountServiceTest.class → target/AccountServiceTest.class Целия файл


BIN
target/Console.class Целия файл


BIN
target/MockDao.class Целия файл


BIN
target/Service.class Целия файл


BIN
target/test-classes/AccountServiceTest.class Целия файл