Kaynağa Gözat

Testing and Refactor needed

Nick Satinover 6 yıl önce
ebeveyn
işleme
2f6bc94bf4

+ 124
- 0
.idea/uiDesigner.xml Dosyayı Görüntüle

@@ -0,0 +1,124 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<project version="4">
3
+  <component name="Palette2">
4
+    <group name="Swing">
5
+      <item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
6
+        <default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
7
+      </item>
8
+      <item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
9
+        <default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
10
+      </item>
11
+      <item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
12
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
13
+      </item>
14
+      <item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
15
+        <default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
16
+      </item>
17
+      <item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
18
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
19
+        <initial-values>
20
+          <property name="text" value="Button" />
21
+        </initial-values>
22
+      </item>
23
+      <item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
24
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
25
+        <initial-values>
26
+          <property name="text" value="RadioButton" />
27
+        </initial-values>
28
+      </item>
29
+      <item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
30
+        <default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
31
+        <initial-values>
32
+          <property name="text" value="CheckBox" />
33
+        </initial-values>
34
+      </item>
35
+      <item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
36
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
37
+        <initial-values>
38
+          <property name="text" value="Label" />
39
+        </initial-values>
40
+      </item>
41
+      <item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
42
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
43
+          <preferred-size width="150" height="-1" />
44
+        </default-constraints>
45
+      </item>
46
+      <item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
47
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
48
+          <preferred-size width="150" height="-1" />
49
+        </default-constraints>
50
+      </item>
51
+      <item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
52
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
53
+          <preferred-size width="150" height="-1" />
54
+        </default-constraints>
55
+      </item>
56
+      <item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
57
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
58
+          <preferred-size width="150" height="50" />
59
+        </default-constraints>
60
+      </item>
61
+      <item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
62
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
63
+          <preferred-size width="150" height="50" />
64
+        </default-constraints>
65
+      </item>
66
+      <item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
67
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
68
+          <preferred-size width="150" height="50" />
69
+        </default-constraints>
70
+      </item>
71
+      <item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
72
+        <default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
73
+      </item>
74
+      <item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
75
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
76
+          <preferred-size width="150" height="50" />
77
+        </default-constraints>
78
+      </item>
79
+      <item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
80
+        <default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
81
+          <preferred-size width="150" height="50" />
82
+        </default-constraints>
83
+      </item>
84
+      <item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
85
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
86
+          <preferred-size width="150" height="50" />
87
+        </default-constraints>
88
+      </item>
89
+      <item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
90
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
91
+          <preferred-size width="200" height="200" />
92
+        </default-constraints>
93
+      </item>
94
+      <item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
95
+        <default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
96
+          <preferred-size width="200" height="200" />
97
+        </default-constraints>
98
+      </item>
99
+      <item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
100
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
101
+      </item>
102
+      <item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
103
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
104
+      </item>
105
+      <item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
106
+        <default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
107
+      </item>
108
+      <item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
109
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
110
+      </item>
111
+      <item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
112
+        <default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
113
+          <preferred-size width="-1" height="20" />
114
+        </default-constraints>
115
+      </item>
116
+      <item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
117
+        <default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
118
+      </item>
119
+      <item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
120
+        <default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
121
+      </item>
122
+    </group>
123
+  </component>
124
+</project>

+ 201
- 74
.idea/workspace.xml Dosyayı Görüntüle

@@ -2,15 +2,15 @@
2 2
 <project version="4">
3 3
   <component name="ChangeListManager">
4 4
     <list default="true" id="d1ec87cb-9759-4969-a24e-e9514d9423f6" name="Default Changelist" comment="">
5
+      <change afterPath="$PROJECT_DIR$/.idea/uiDesigner.xml" afterDir="false" />
5 6
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
7
+      <change beforePath="$PROJECT_DIR$/ZCW-ORM-SimpleAccount.iml" beforeDir="false" afterPath="$PROJECT_DIR$/ZCW-ORM-SimpleAccount.iml" afterDir="false" />
8
+      <change beforePath="$PROJECT_DIR$/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/pom.xml" afterDir="false" />
6 9
       <change beforePath="$PROJECT_DIR$/src/main/java/AccountApp.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/AccountApp.java" afterDir="false" />
7 10
       <change beforePath="$PROJECT_DIR$/src/main/java/AccountService.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/AccountService.java" afterDir="false" />
8
-      <change beforePath="$PROJECT_DIR$/src/main/java/Console.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Console.java" afterDir="false" />
9
-      <change beforePath="$PROJECT_DIR$/src/main/java/Printer.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/Printer.java" afterDir="false" />
10
-      <change beforePath="$PROJECT_DIR$/target/classes/AccountApp.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/AccountApp.class" afterDir="false" />
11
-      <change beforePath="$PROJECT_DIR$/target/classes/AccountService.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/AccountService.class" afterDir="false" />
12
-      <change beforePath="$PROJECT_DIR$/target/classes/Console.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/Console.class" afterDir="false" />
13
-      <change beforePath="$PROJECT_DIR$/target/classes/Printer.class" beforeDir="false" afterPath="$PROJECT_DIR$/target/classes/Printer.class" afterDir="false" />
11
+      <change beforePath="$PROJECT_DIR$/src/main/java/MockDao.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/MockDao.java" afterDir="false" />
12
+      <change beforePath="$PROJECT_DIR$/src/test/java/MockDaoTest.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/test/java/AccountServiceTest.java" afterDir="false" />
13
+      <change beforePath="$PROJECT_DIR$/target/classes/AccountApp.class" beforeDir="false" />
14 14
     </list>
15 15
     <ignored path="$PROJECT_DIR$/target/" />
16 16
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -23,45 +23,50 @@
23 23
     <session id="-448911281">
24 24
       <usages-collector id="statistics.lifecycle.project">
25 25
         <counts>
26
+          <entry key="project.closed" value="1" />
26 27
           <entry key="project.open.time.0" value="1" />
27
-          <entry key="project.opened" value="1" />
28
+          <entry key="project.open.time.12" value="1" />
29
+          <entry key="project.opened" value="2" />
28 30
         </counts>
29 31
       </usages-collector>
30 32
       <usages-collector id="statistics.file.extensions.open">
31 33
         <counts>
32
-          <entry key="java" value="9" />
34
+          <entry key="class" value="1" />
35
+          <entry key="java" value="12" />
33 36
           <entry key="xml" value="1" />
34 37
         </counts>
35 38
       </usages-collector>
36 39
       <usages-collector id="statistics.file.types.open">
37 40
         <counts>
38
-          <entry key="JAVA" value="9" />
41
+          <entry key="CLASS" value="1" />
42
+          <entry key="JAVA" value="12" />
39 43
           <entry key="XML" value="1" />
40 44
         </counts>
41 45
       </usages-collector>
42 46
       <usages-collector id="statistics.file.extensions.edit">
43 47
         <counts>
44
-          <entry key="java" value="728" />
45
-          <entry key="txt" value="7" />
48
+          <entry key="dummy" value="18" />
49
+          <entry key="java" value="965" />
50
+          <entry key="txt" value="34" />
46 51
         </counts>
47 52
       </usages-collector>
48 53
       <usages-collector id="statistics.file.types.edit">
49 54
         <counts>
50
-          <entry key="JAVA" value="728" />
51
-          <entry key="PLAIN_TEXT" value="7" />
55
+          <entry key="JAVA" value="965" />
56
+          <entry key="PLAIN_TEXT" value="52" />
52 57
         </counts>
53 58
       </usages-collector>
54 59
     </session>
55 60
   </component>
56 61
   <component name="FileEditorManager">
57
-    <splitter split-orientation="horizontal" split-proportion="0.5624212">
62
+    <splitter split-orientation="horizontal" split-proportion="0.44994676">
58 63
       <split-first>
59
-        <leaf>
64
+        <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
60 65
           <file pinned="false" current-in-tab="true">
61 66
             <entry file="file://$PROJECT_DIR$/src/main/java/AccountService.java">
62 67
               <provider selected="true" editor-type-id="text-editor">
63
-                <state relative-caret-position="1289">
64
-                  <caret line="96" column="5" selection-start-line="96" selection-start-column="5" selection-end-line="96" selection-end-column="5" />
68
+                <state relative-caret-position="120">
69
+                  <caret line="18" column="7" lean-forward="true" selection-start-line="18" selection-start-column="7" selection-end-line="18" selection-end-column="7" />
65 70
                 </state>
66 71
               </provider>
67 72
             </entry>
@@ -69,8 +74,8 @@
69 74
           <file pinned="false" current-in-tab="false">
70 75
             <entry file="file://$PROJECT_DIR$/src/main/java/Account.java">
71 76
               <provider selected="true" editor-type-id="text-editor">
72
-                <state relative-caret-position="750">
73
-                  <caret line="65" column="1" selection-start-line="65" selection-start-column="1" selection-end-line="65" selection-end-column="1" />
77
+                <state relative-caret-position="420">
78
+                  <caret line="31" selection-start-line="31" selection-end-line="31" />
74 79
                 </state>
75 80
               </provider>
76 81
             </entry>
@@ -78,8 +83,8 @@
78 83
           <file pinned="false" current-in-tab="false">
79 84
             <entry file="file://$PROJECT_DIR$/src/main/java/Console.java">
80 85
               <provider selected="true" editor-type-id="text-editor">
81
-                <state relative-caret-position="675">
82
-                  <caret line="46" column="36" selection-start-line="46" selection-start-column="36" selection-end-line="46" selection-end-column="36" />
86
+                <state relative-caret-position="225">
87
+                  <caret line="16" selection-start-line="16" selection-end-line="16" />
83 88
                 </state>
84 89
               </provider>
85 90
             </entry>
@@ -87,8 +92,41 @@
87 92
           <file pinned="false" current-in-tab="false">
88 93
             <entry file="file://$PROJECT_DIR$/src/main/java/MockDao.java">
89 94
               <provider selected="true" editor-type-id="text-editor">
90
-                <state>
91
-                  <caret column="13" selection-start-column="13" selection-end-column="13" />
95
+                <state relative-caret-position="225">
96
+                  <caret line="15" column="31" selection-start-line="15" selection-start-column="31" selection-end-line="15" selection-end-column="31" />
97
+                  <folding>
98
+                    <element signature="imports" expanded="true" />
99
+                    <element signature="e#1218#1219#0" expanded="true" />
100
+                    <element signature="e#1245#1246#0" expanded="true" />
101
+                    <element signature="e#1289#1290#0" expanded="true" />
102
+                    <element signature="e#1316#1317#0" expanded="true" />
103
+                    <element signature="e#1360#1361#0" expanded="true" />
104
+                    <element signature="e#1387#1388#0" expanded="true" />
105
+                    <element signature="e#2613#2614#0" expanded="true" />
106
+                    <element signature="e#2640#2641#0" expanded="true" />
107
+                    <element signature="e#2688#2689#0" expanded="true" />
108
+                    <element signature="e#2715#2716#0" expanded="true" />
109
+                    <element signature="e#3016#3017#0" expanded="true" />
110
+                    <element signature="e#3043#3044#0" expanded="true" />
111
+                    <element signature="e#3130#3131#0" expanded="true" />
112
+                    <element signature="e#3157#3158#0" expanded="true" />
113
+                    <element signature="e#3943#3944#0" expanded="true" />
114
+                    <element signature="e#3970#3971#0" expanded="true" />
115
+                    <element signature="e#4197#4198#0" expanded="true" />
116
+                    <element signature="e#4224#4225#0" expanded="true" />
117
+                    <element signature="e#4260#4261#0" expanded="true" />
118
+                    <element signature="e#4288#4289#0" expanded="true" />
119
+                    <element signature="e#4843#4844#0" expanded="true" />
120
+                    <element signature="e#4870#4871#0" expanded="true" />
121
+                    <element signature="e#5181#5182#0" expanded="true" />
122
+                    <element signature="e#5208#5209#0" expanded="true" />
123
+                    <element signature="e#6133#6134#0" expanded="true" />
124
+                    <element signature="e#6160#6161#0" expanded="true" />
125
+                    <element signature="e#6406#6407#0" expanded="true" />
126
+                    <element signature="e#6433#6434#0" expanded="true" />
127
+                    <element signature="e#7100#7101#0" expanded="true" />
128
+                    <element signature="e#7127#7128#0" expanded="true" />
129
+                  </folding>
92 130
                 </state>
93 131
               </provider>
94 132
             </entry>
@@ -96,8 +134,11 @@
96 134
           <file pinned="false" current-in-tab="false">
97 135
             <entry file="file://$PROJECT_DIR$/src/main/java/Printer.java">
98 136
               <provider selected="true" editor-type-id="text-editor">
99
-                <state relative-caret-position="75">
100
-                  <caret line="7" column="56" selection-start-line="7" selection-start-column="56" selection-end-line="7" selection-end-column="56" />
137
+                <state relative-caret-position="60">
138
+                  <caret line="4" selection-start-line="4" selection-end-line="4" />
139
+                  <folding>
140
+                    <element signature="e#75#76#0" expanded="true" />
141
+                  </folding>
101 142
                 </state>
102 143
               </provider>
103 144
             </entry>
@@ -105,12 +146,29 @@
105 146
         </leaf>
106 147
       </split-first>
107 148
       <split-second>
108
-        <leaf>
149
+        <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
109 150
           <file pinned="false" current-in-tab="true">
110 151
             <entry file="file://$PROJECT_DIR$/src/main/java/AccountApp.java">
111 152
               <provider selected="true" editor-type-id="text-editor">
112
-                <state relative-caret-position="409">
113
-                  <caret line="60" column="37" lean-forward="true" selection-start-line="60" selection-start-column="37" selection-end-line="60" selection-end-column="37" />
153
+                <state relative-caret-position="1020">
154
+                  <caret line="68" column="40" lean-forward="true" selection-start-line="68" selection-start-column="40" selection-end-line="68" selection-end-column="40" />
155
+                  <folding>
156
+                    <element signature="imports" expanded="true" />
157
+                    <element signature="e#809#810#0" expanded="true" />
158
+                    <element signature="e#842#843#0" expanded="true" />
159
+                  </folding>
160
+                </state>
161
+              </provider>
162
+            </entry>
163
+          </file>
164
+          <file pinned="false" current-in-tab="false">
165
+            <entry file="file://$PROJECT_DIR$/src/test/java/AccountServiceTest.java">
166
+              <provider selected="true" editor-type-id="text-editor">
167
+                <state relative-caret-position="180">
168
+                  <caret line="12" column="11" selection-start-line="12" selection-start-column="11" selection-end-line="12" selection-end-column="11" />
169
+                  <folding>
170
+                    <element signature="imports" expanded="true" />
171
+                  </folding>
114 172
                 </state>
115 173
               </provider>
116 174
             </entry>
@@ -134,9 +192,11 @@
134 192
       <list>
135 193
         <option value="$PROJECT_DIR$/src/test/java/MockDaoTest.java" />
136 194
         <option value="$PROJECT_DIR$/src/main/java/Console.java" />
137
-        <option value="$PROJECT_DIR$/src/main/java/AccountApp.java" />
138 195
         <option value="$PROJECT_DIR$/src/main/java/Printer.java" />
196
+        <option value="$PROJECT_DIR$/src/main/java/MockDao.java" />
197
+        <option value="$PROJECT_DIR$/src/main/java/AccountApp.java" />
139 198
         <option value="$PROJECT_DIR$/src/main/java/AccountService.java" />
199
+        <option value="$PROJECT_DIR$/src/test/java/AccountServiceTest.java" />
140 200
       </list>
141 201
     </option>
142 202
   </component>
@@ -158,7 +218,7 @@
158 218
       <foldersAlwaysOnTop value="true" />
159 219
     </navigator>
160 220
     <panes>
161
-      <pane id="Scope" />
221
+      <pane id="PackagesPane" />
162 222
       <pane id="ProjectPane">
163 223
         <subPane>
164 224
           <expand>
@@ -190,17 +250,24 @@
190 250
               <item name="src" type="462c0819:PsiDirectoryNode" />
191 251
               <item name="test" type="462c0819:PsiDirectoryNode" />
192 252
             </path>
253
+            <path>
254
+              <item name="ZCW-ORM-SimpleAccount" type="b2602c69:ProjectViewProjectNode" />
255
+              <item name="ZCW-ORM-SimpleAccount" type="462c0819:PsiDirectoryNode" />
256
+              <item name="src" type="462c0819:PsiDirectoryNode" />
257
+              <item name="test" type="462c0819:PsiDirectoryNode" />
258
+              <item name="java" type="462c0819:PsiDirectoryNode" />
259
+            </path>
193 260
           </expand>
194 261
           <select />
195 262
         </subPane>
196 263
       </pane>
197
-      <pane id="PackagesPane" />
264
+      <pane id="Scope" />
198 265
     </panes>
199 266
   </component>
200 267
   <component name="PropertiesComponent">
201 268
     <property name="WebServerToolWindowFactoryState" value="false" />
202 269
     <property name="aspect.path.notification.shown" value="true" />
203
-    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542503829642" />
270
+    <property name="com.android.tools.idea.instantapp.provision.ProvisionBeforeRunTaskProvider.myTimeStamp" value="1542506723623" />
204 271
     <property name="last_opened_file_path" value="$PROJECT_DIR$/pom.xml" />
205 272
     <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
206 273
     <property name="nodejs_npm_path_reset_for_default_project" value="true" />
@@ -244,7 +311,8 @@
244 311
       <option name="number" value="Default" />
245 312
       <option name="presentableId" value="Default" />
246 313
       <updated>1542498089232</updated>
247
-      <workItem from="1542498090592" duration="4539000" />
314
+      <workItem from="1542498090592" duration="5252000" />
315
+      <workItem from="1542504828624" duration="1765000" />
248 316
     </task>
249 317
     <task id="LOCAL-00001" summary="working">
250 318
       <created>1542502281430</created>
@@ -253,28 +321,30 @@
253 321
       <option name="project" value="LOCAL" />
254 322
       <updated>1542502281430</updated>
255 323
     </task>
256
-    <option name="localTasksCounter" value="2" />
324
+    <task id="LOCAL-00002" summary="Testing and Refactor needed">
325
+      <created>1542503894204</created>
326
+      <option name="number" value="00002" />
327
+      <option name="presentableId" value="LOCAL-00002" />
328
+      <option name="project" value="LOCAL" />
329
+      <updated>1542503894204</updated>
330
+    </task>
331
+    <option name="localTasksCounter" value="3" />
257 332
     <servers />
258 333
   </component>
259 334
   <component name="TimeTrackingManager">
260
-    <option name="totallyTimeSpent" value="4539000" />
335
+    <option name="totallyTimeSpent" value="7017000" />
261 336
   </component>
262 337
   <component name="ToolWindowManager">
263 338
     <frame x="-309" y="-1057" width="1920" height="1057" extended-state="0" />
264 339
     <editor active="true" />
265 340
     <layout>
266
-      <window_info id="Image Layers" />
267
-      <window_info id="Designer" />
268
-      <window_info id="UI Designer" />
269
-      <window_info id="Capture Tool" />
270
-      <window_info id="Favorites" side_tool="true" />
271
-      <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.15548456" />
341
+      <window_info content_ui="combo" id="Project" order="0" weight="0.07241747" />
272 342
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
273
-      <window_info anchor="bottom" id="Messages" weight="0.32953367" />
274
-      <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
275
-      <window_info anchor="bottom" id="Version Control" show_stripe_button="false" />
276
-      <window_info anchor="bottom" id="Terminal" />
277
-      <window_info anchor="bottom" id="Event Log" side_tool="true" />
343
+      <window_info id="Image Layers" order="2" />
344
+      <window_info id="Designer" order="3" />
345
+      <window_info id="UI Designer" order="4" />
346
+      <window_info id="Capture Tool" order="5" />
347
+      <window_info id="Favorites" order="6" side_tool="true" />
278 348
       <window_info anchor="bottom" id="Message" order="0" />
279 349
       <window_info anchor="bottom" id="Find" order="1" />
280 350
       <window_info anchor="bottom" id="Run" order="2" weight="0.32953367" />
@@ -282,15 +352,20 @@
282 352
       <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
283 353
       <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
284 354
       <window_info anchor="bottom" id="TODO" order="6" />
285
-      <window_info anchor="right" id="Palette" />
286
-      <window_info anchor="right" id="Theme Preview" />
287
-      <window_info anchor="right" id="Capture Analysis" />
288
-      <window_info anchor="right" id="Palette&#9;" />
289
-      <window_info anchor="right" id="Database" />
290
-      <window_info anchor="right" id="Maven Projects" />
355
+      <window_info anchor="bottom" id="Version Control" order="7" show_stripe_button="false" />
356
+      <window_info anchor="bottom" id="Database Changes" order="8" show_stripe_button="false" />
357
+      <window_info anchor="bottom" id="Terminal" order="9" />
358
+      <window_info anchor="bottom" id="Event Log" order="10" side_tool="true" />
359
+      <window_info active="true" anchor="bottom" id="Messages" order="11" visible="true" weight="0.32953367" />
291 360
       <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" />
292 361
       <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
293 362
       <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
363
+      <window_info anchor="right" id="Palette" order="3" />
364
+      <window_info anchor="right" id="Capture Analysis" order="4" />
365
+      <window_info anchor="right" id="Database" order="5" />
366
+      <window_info anchor="right" id="Theme Preview" order="6" />
367
+      <window_info anchor="right" id="Palette&#9;" order="7" />
368
+      <window_info anchor="right" id="Maven Projects" order="8" />
294 369
     </layout>
295 370
   </component>
296 371
   <component name="TypeScriptGeneratedFilesManager">
@@ -301,58 +376,110 @@
301 376
   </component>
302 377
   <component name="VcsManagerConfiguration">
303 378
     <MESSAGE value="working" />
304
-    <option name="LAST_COMMIT_MESSAGE" value="working" />
379
+    <MESSAGE value="Testing and Refactor needed" />
380
+    <option name="LAST_COMMIT_MESSAGE" value="Testing and Refactor needed" />
305 381
   </component>
306 382
   <component name="editorHistoryManager">
383
+    <entry file="file://$PROJECT_DIR$/pom.xml">
384
+      <provider selected="true" editor-type-id="text-editor" />
385
+    </entry>
307 386
     <entry file="file://$PROJECT_DIR$/src/main/java/MockDao.java">
308 387
       <provider selected="true" editor-type-id="text-editor">
309
-        <state>
310
-          <caret column="13" selection-start-column="13" selection-end-column="13" />
388
+        <state relative-caret-position="225">
389
+          <caret line="15" column="31" selection-start-line="15" selection-start-column="31" selection-end-line="15" selection-end-column="31" />
390
+          <folding>
391
+            <element signature="imports" expanded="true" />
392
+            <element signature="e#1218#1219#0" expanded="true" />
393
+            <element signature="e#1245#1246#0" expanded="true" />
394
+            <element signature="e#1289#1290#0" expanded="true" />
395
+            <element signature="e#1316#1317#0" expanded="true" />
396
+            <element signature="e#1360#1361#0" expanded="true" />
397
+            <element signature="e#1387#1388#0" expanded="true" />
398
+            <element signature="e#2613#2614#0" expanded="true" />
399
+            <element signature="e#2640#2641#0" expanded="true" />
400
+            <element signature="e#2688#2689#0" expanded="true" />
401
+            <element signature="e#2715#2716#0" expanded="true" />
402
+            <element signature="e#3016#3017#0" expanded="true" />
403
+            <element signature="e#3043#3044#0" expanded="true" />
404
+            <element signature="e#3130#3131#0" expanded="true" />
405
+            <element signature="e#3157#3158#0" expanded="true" />
406
+            <element signature="e#3943#3944#0" expanded="true" />
407
+            <element signature="e#3970#3971#0" expanded="true" />
408
+            <element signature="e#4197#4198#0" expanded="true" />
409
+            <element signature="e#4224#4225#0" expanded="true" />
410
+            <element signature="e#4260#4261#0" expanded="true" />
411
+            <element signature="e#4288#4289#0" expanded="true" />
412
+            <element signature="e#4843#4844#0" expanded="true" />
413
+            <element signature="e#4870#4871#0" expanded="true" />
414
+            <element signature="e#5181#5182#0" expanded="true" />
415
+            <element signature="e#5208#5209#0" expanded="true" />
416
+            <element signature="e#6133#6134#0" expanded="true" />
417
+            <element signature="e#6160#6161#0" expanded="true" />
418
+            <element signature="e#6406#6407#0" expanded="true" />
419
+            <element signature="e#6433#6434#0" expanded="true" />
420
+            <element signature="e#7100#7101#0" expanded="true" />
421
+            <element signature="e#7127#7128#0" expanded="true" />
422
+          </folding>
311 423
         </state>
312 424
       </provider>
313 425
     </entry>
314
-    <entry file="file://$PROJECT_DIR$/pom.xml">
315
-      <provider selected="true" editor-type-id="text-editor" />
426
+    <entry file="file://$PROJECT_DIR$/src/main/java/Printer.java">
427
+      <provider selected="true" editor-type-id="text-editor">
428
+        <state relative-caret-position="60">
429
+          <caret line="4" selection-start-line="4" selection-end-line="4" />
430
+          <folding>
431
+            <element signature="e#75#76#0" expanded="true" />
432
+          </folding>
433
+        </state>
434
+      </provider>
316 435
     </entry>
317
-    <entry file="file://$PROJECT_DIR$/src/test/java/MockDaoTest.java">
436
+    <entry file="file://$PROJECT_DIR$/src/main/java/Console.java">
318 437
       <provider selected="true" editor-type-id="text-editor">
319
-        <state relative-caret-position="30">
320
-          <caret line="2" column="4" selection-start-line="2" selection-start-column="4" selection-end-line="2" selection-end-column="4" />
438
+        <state relative-caret-position="225">
439
+          <caret line="16" selection-start-line="16" selection-end-line="16" />
321 440
         </state>
322 441
       </provider>
323 442
     </entry>
324 443
     <entry file="file://$PROJECT_DIR$/src/main/java/Account.java">
325 444
       <provider selected="true" editor-type-id="text-editor">
326
-        <state relative-caret-position="750">
327
-          <caret line="65" column="1" selection-start-line="65" selection-start-column="1" selection-end-line="65" selection-end-column="1" />
445
+        <state relative-caret-position="420">
446
+          <caret line="31" selection-start-line="31" selection-end-line="31" />
328 447
         </state>
329 448
       </provider>
330 449
     </entry>
331
-    <entry file="file://$PROJECT_DIR$/src/main/java/Console.java">
450
+    <entry file="jar://$MAVEN_REPOSITORY$/com/j256/ormlite/ormlite-jdbc/4.48/ormlite-jdbc-4.48.jar!/com/j256/ormlite/jdbc/JdbcConnectionSource.class">
332 451
       <provider selected="true" editor-type-id="text-editor">
333
-        <state relative-caret-position="675">
334
-          <caret line="46" column="36" selection-start-line="46" selection-start-column="36" selection-end-line="46" selection-end-column="36" />
452
+        <state relative-caret-position="184">
453
+          <caret line="71" selection-start-line="71" selection-end-line="71" />
335 454
         </state>
336 455
       </provider>
337 456
     </entry>
338
-    <entry file="file://$PROJECT_DIR$/src/main/java/Printer.java">
457
+    <entry file="file://$PROJECT_DIR$/src/main/java/AccountService.java">
339 458
       <provider selected="true" editor-type-id="text-editor">
340
-        <state relative-caret-position="75">
341
-          <caret line="7" column="56" selection-start-line="7" selection-start-column="56" selection-end-line="7" selection-end-column="56" />
459
+        <state relative-caret-position="120">
460
+          <caret line="18" column="7" lean-forward="true" selection-start-line="18" selection-start-column="7" selection-end-line="18" selection-end-column="7" />
342 461
         </state>
343 462
       </provider>
344 463
     </entry>
345
-    <entry file="file://$PROJECT_DIR$/src/main/java/AccountApp.java">
464
+    <entry file="file://$PROJECT_DIR$/src/test/java/AccountServiceTest.java">
346 465
       <provider selected="true" editor-type-id="text-editor">
347
-        <state relative-caret-position="409">
348
-          <caret line="60" column="37" lean-forward="true" selection-start-line="60" selection-start-column="37" selection-end-line="60" selection-end-column="37" />
466
+        <state relative-caret-position="180">
467
+          <caret line="12" column="11" selection-start-line="12" selection-start-column="11" selection-end-line="12" selection-end-column="11" />
468
+          <folding>
469
+            <element signature="imports" expanded="true" />
470
+          </folding>
349 471
         </state>
350 472
       </provider>
351 473
     </entry>
352
-    <entry file="file://$PROJECT_DIR$/src/main/java/AccountService.java">
474
+    <entry file="file://$PROJECT_DIR$/src/main/java/AccountApp.java">
353 475
       <provider selected="true" editor-type-id="text-editor">
354
-        <state relative-caret-position="1289">
355
-          <caret line="96" column="5" selection-start-line="96" selection-start-column="5" selection-end-line="96" selection-end-column="5" />
476
+        <state relative-caret-position="1020">
477
+          <caret line="68" column="40" lean-forward="true" selection-start-line="68" selection-start-column="40" selection-end-line="68" selection-end-column="40" />
478
+          <folding>
479
+            <element signature="imports" expanded="true" />
480
+            <element signature="e#809#810#0" expanded="true" />
481
+            <element signature="e#842#843#0" expanded="true" />
482
+          </folding>
356 483
         </state>
357 484
       </provider>
358 485
     </entry>

+ 2
- 0
ZCW-ORM-SimpleAccount.iml Dosyayı Görüntüle

@@ -15,5 +15,7 @@
15 15
     <orderEntry type="library" name="Maven: com.j256.ormlite:ormlite-jdbc:4.48" level="project" />
16 16
     <orderEntry type="library" name="Maven: mysql:mysql-connector-java:8.0.13" level="project" />
17 17
     <orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java:3.6.1" level="project" />
18
+    <orderEntry type="library" scope="TEST" name="Maven: junit:junit:4.12" level="project" />
19
+    <orderEntry type="library" scope="TEST" name="Maven: org.hamcrest:hamcrest-core:1.3" level="project" />
18 20
   </component>
19 21
 </module>

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

@@ -29,6 +29,12 @@
29 29
             <artifactId>mysql-connector-java</artifactId>
30 30
             <version>8.0.13</version>
31 31
         </dependency>
32
+        <dependency>
33
+            <groupId>junit</groupId>
34
+            <artifactId>junit</artifactId>
35
+            <version>RELEASE</version>
36
+            <scope>test</scope>
37
+        </dependency>
32 38
 
33 39
     </dependencies>
34 40
 

+ 4
- 4
src/main/java/AccountApp.java Dosyayı Görüntüle

@@ -57,16 +57,16 @@ public class AccountApp {
57 57
             int userSelection = console.getMainMenu();
58 58
 
59 59
             switch (userSelection){
60
-                case 1 :
60
+                case 1 : //new record
61 61
                     accountService.create(getAccountDao());
62 62
                     break;
63
-                case 2 :
63
+                case 2 : //view record
64 64
                     accountService.read(getAccountDao());
65 65
                     break;
66
-                case 3 :
66
+                case 3 : //update record
67 67
                     accountService.update(getAccountDao());
68 68
                     break;
69
-                case 4 :
69
+                case 4 : //delete record
70 70
                     int idToDelete = console.getIdToDelete();
71 71
                     accountService.deleteId(getAccountDao(), idToDelete);
72 72
                     break;

+ 5
- 0
src/main/java/AccountService.java Dosyayı Görüntüle

@@ -11,8 +11,13 @@ import com.j256.ormlite.stmt.QueryBuilder;
11 11
 import com.j256.ormlite.support.ConnectionSource;
12 12
 
13 13
 public class AccountService {
14
+    // private Dao<Account, Integer> accountDao;
14 15
     Console console = new Console();
15 16
 
17
+/*    AccountService(Dao<Account, Integer> dao){
18
+        this.accountDao = dao;
19
+    }*/
20
+
16 21
     public void create(Dao accountDao){
17 22
         try {
18 23
             String name = console.getCMDFromUser("Enter name: ");

+ 299
- 1
src/main/java/MockDao.java Dosyayı Görüntüle

@@ -1,2 +1,300 @@
1
-public class MockDao {
1
+import com.j256.ormlite.dao.*;
2
+import com.j256.ormlite.field.DataType;
3
+import com.j256.ormlite.field.FieldType;
4
+import com.j256.ormlite.stmt.*;
5
+import com.j256.ormlite.support.ConnectionSource;
6
+import com.j256.ormlite.support.DatabaseConnection;
7
+import com.j256.ormlite.support.DatabaseResults;
8
+import com.j256.ormlite.table.ObjectFactory;
9
+
10
+import java.sql.SQLException;
11
+import java.util.Collection;
12
+import java.util.List;
13
+import java.util.Map;
14
+import java.util.concurrent.Callable;
15
+
16
+public class MockDao implements Dao {
17
+    public Object queryForId(Object o) throws SQLException {
18
+        return null;
19
+    }
20
+
21
+    public Object queryForFirst(PreparedQuery preparedQuery) throws SQLException {
22
+        return null;
23
+    }
24
+
25
+    public List queryForAll() throws SQLException {
26
+        return null;
27
+    }
28
+
29
+    public List queryForEq(String s, Object o) throws SQLException {
30
+        return null;
31
+    }
32
+
33
+    public List queryForMatching(Object o) throws SQLException {
34
+        return null;
35
+    }
36
+
37
+    public List queryForMatchingArgs(Object o) throws SQLException {
38
+        return null;
39
+    }
40
+
41
+    public Object queryForSameId(Object o) throws SQLException {
42
+        return null;
43
+    }
44
+
45
+    public QueryBuilder queryBuilder() {
46
+        return null;
47
+    }
48
+
49
+    public UpdateBuilder updateBuilder() {
50
+        return null;
51
+    }
52
+
53
+    public DeleteBuilder deleteBuilder() {
54
+        return null;
55
+    }
56
+
57
+    public List query(PreparedQuery preparedQuery) throws SQLException {
58
+        return null;
59
+    }
60
+
61
+    public int create(Object o) throws SQLException {
62
+        return 0;
63
+    }
64
+
65
+    public Object createIfNotExists(Object o) throws SQLException {
66
+        return null;
67
+    }
68
+
69
+    public CreateOrUpdateStatus createOrUpdate(Object o) throws SQLException {
70
+        return null;
71
+    }
72
+
73
+    public int update(Object o) throws SQLException {
74
+        return 0;
75
+    }
76
+
77
+    public int updateId(Object o, Object o2) throws SQLException {
78
+        return 0;
79
+    }
80
+
81
+    public int update(PreparedUpdate preparedUpdate) throws SQLException {
82
+        return 0;
83
+    }
84
+
85
+    public int refresh(Object o) throws SQLException {
86
+        return 0;
87
+    }
88
+
89
+    public int delete(Object o) throws SQLException {
90
+        return 0;
91
+    }
92
+
93
+    public int deleteById(Object o) throws SQLException {
94
+        return 0;
95
+    }
96
+
97
+    public int delete(Collection collection) throws SQLException {
98
+        return 0;
99
+    }
100
+
101
+    public int deleteIds(Collection collection) throws SQLException {
102
+        return 0;
103
+    }
104
+
105
+    public int delete(PreparedDelete preparedDelete) throws SQLException {
106
+        return 0;
107
+    }
108
+
109
+    public CloseableIterator iterator() {
110
+        return null;
111
+    }
112
+
113
+    public CloseableIterator iterator(int i) {
114
+        return null;
115
+    }
116
+
117
+    public CloseableIterator iterator(PreparedQuery preparedQuery) throws SQLException {
118
+        return null;
119
+    }
120
+
121
+    public CloseableIterator iterator(PreparedQuery preparedQuery, int i) throws SQLException {
122
+        return null;
123
+    }
124
+
125
+    public CloseableWrappedIterable getWrappedIterable() {
126
+        return null;
127
+    }
128
+
129
+    public CloseableWrappedIterable getWrappedIterable(PreparedQuery preparedQuery) {
130
+        return null;
131
+    }
132
+
133
+    public void closeLastIterator() throws SQLException {
134
+
135
+    }
136
+
137
+    public GenericRawResults<String[]> queryRaw(String s, String... strings) throws SQLException {
138
+        return null;
139
+    }
140
+
141
+    public GenericRawResults<Object[]> queryRaw(String s, DataType[] dataTypes, String... strings) throws SQLException {
142
+        return null;
143
+    }
144
+
145
+    public long queryRawValue(String s, String... strings) throws SQLException {
146
+        return 0;
147
+    }
148
+
149
+    public int executeRaw(String s, String... strings) throws SQLException {
150
+        return 0;
151
+    }
152
+
153
+    public int executeRawNoArgs(String s) throws SQLException {
154
+        return 0;
155
+    }
156
+
157
+    public int updateRaw(String s, String... strings) throws SQLException {
158
+        return 0;
159
+    }
160
+
161
+    public String objectToString(Object o) {
162
+        return null;
163
+    }
164
+
165
+    public boolean objectsEqual(Object o, Object t1) throws SQLException {
166
+        return false;
167
+    }
168
+
169
+    public Object extractId(Object o) throws SQLException {
170
+        return null;
171
+    }
172
+
173
+    public Class getDataClass() {
174
+        return null;
175
+    }
176
+
177
+    public boolean isUpdatable() {
178
+        return false;
179
+    }
180
+
181
+    public boolean isTableExists() throws SQLException {
182
+        return false;
183
+    }
184
+
185
+    public long countOf() throws SQLException {
186
+        return 0;
187
+    }
188
+
189
+    public long countOf(PreparedQuery preparedQuery) throws SQLException {
190
+        return 0;
191
+    }
192
+
193
+    public void assignEmptyForeignCollection(Object o, String s) throws SQLException {
194
+
195
+    }
196
+
197
+    public void setObjectCache(boolean b) throws SQLException {
198
+
199
+    }
200
+
201
+    public void setObjectCache(ObjectCache objectCache) throws SQLException {
202
+
203
+    }
204
+
205
+    public ObjectCache getObjectCache() {
206
+        return null;
207
+    }
208
+
209
+    public void clearObjectCache() {
210
+
211
+    }
212
+
213
+    public Object mapSelectStarRow(DatabaseResults databaseResults) throws SQLException {
214
+        return null;
215
+    }
216
+
217
+    public GenericRowMapper getSelectStarRowMapper() throws SQLException {
218
+        return null;
219
+    }
220
+
221
+    public RawRowMapper getRawRowMapper() {
222
+        return null;
223
+    }
224
+
225
+    public boolean idExists(Object o) throws SQLException {
226
+        return false;
227
+    }
228
+
229
+    public DatabaseConnection startThreadConnection() throws SQLException {
230
+        return null;
231
+    }
232
+
233
+    public void endThreadConnection(DatabaseConnection databaseConnection) throws SQLException {
234
+
235
+    }
236
+
237
+    public void setAutoCommit(boolean b) throws SQLException {
238
+
239
+    }
240
+
241
+    public void setAutoCommit(DatabaseConnection databaseConnection, boolean b) throws SQLException {
242
+
243
+    }
244
+
245
+    public boolean isAutoCommit() throws SQLException {
246
+        return false;
247
+    }
248
+
249
+    public boolean isAutoCommit(DatabaseConnection databaseConnection) throws SQLException {
250
+        return false;
251
+    }
252
+
253
+    public void commit(DatabaseConnection databaseConnection) throws SQLException {
254
+
255
+    }
256
+
257
+    public void rollBack(DatabaseConnection databaseConnection) throws SQLException {
258
+
259
+    }
260
+
261
+    public ConnectionSource getConnectionSource() {
262
+        return null;
263
+    }
264
+
265
+    public void setObjectFactory(ObjectFactory objectFactory) {
266
+
267
+    }
268
+
269
+    public ForeignCollection getEmptyForeignCollection(String s) throws SQLException {
270
+        return null;
271
+    }
272
+
273
+    public FieldType findForeignFieldType(Class aClass) {
274
+        return null;
275
+    }
276
+
277
+    public Object callBatchTasks(Callable callable) throws Exception {
278
+        return null;
279
+    }
280
+
281
+    public GenericRawResults queryRaw(String s, DataType[] dataTypes, RawRowObjectMapper rawRowObjectMapper, String... strings) throws SQLException {
282
+        return null;
283
+    }
284
+
285
+    public GenericRawResults queryRaw(String s, RawRowMapper rawRowMapper, String... strings) throws SQLException {
286
+        return null;
287
+    }
288
+
289
+    public List queryForFieldValuesArgs(Map map) throws SQLException {
290
+        return null;
291
+    }
292
+
293
+    public List queryForFieldValues(Map map) throws SQLException {
294
+        return null;
295
+    }
296
+
297
+    public CloseableIterator closeableIterator() {
298
+        return null;
299
+    }
2 300
 }

+ 18
- 0
src/test/java/AccountServiceTest.java Dosyayı Görüntüle

@@ -0,0 +1,18 @@
1
+import com.j256.ormlite.dao.Dao;
2
+import org.junit.Before;
3
+
4
+public class AccountServiceTest {
5
+
6
+    AccountService accountService;
7
+    Dao<Account, Integer> dao;
8
+    Account account;
9
+
10
+    @Before
11
+    public void setUp(){
12
+        dao = new MockDao();
13
+        // accountService = new AccountService(dao);
14
+    }
15
+
16
+
17
+
18
+}

+ 0
- 4
src/test/java/MockDaoTest.java Dosyayı Görüntüle

@@ -1,4 +0,0 @@
1
-public class MockDaoTest {
2
-
3
-
4
-}

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


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