Advertisement
rosandatiya

error in testSucces

Aug 31st, 2016
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.23 KB | None | 0 0
  1. 2016-09-01 11:05:54.494 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:167 - Done executing SQL scriptBuilder from class path resource [scripts/TestAddEmployeeJob.sql] in 28 ms.
  2. Hibernate: select partner0_.partner_code as partner1_6_0_, partner0_.create_datetime as create2_6_0_, partner0_.create_username as create3_6_0_, partner0_.update_datetime as update4_6_0_, partner0_.update_username as update5_6_0_, partner0_.version as version6_0_, partner0_.active as active6_0_, partner0_.active_datetime as active8_6_0_, partner0_.non_active_datetime as non9_6_0_, partner0_.address1 as address10_6_0_, partner0_.address2 as address11_6_0_, partner0_.city as city6_0_, partner0_.country as country6_0_, partner0_.default_gross_buy_price as default14_6_0_, partner0_.default_gross_sell_price as default15_6_0_, partner0_.email as email6_0_, partner0_.fax1 as fax17_6_0_, partner0_.fax2 as fax18_6_0_, partner0_.flg_customer as flg19_6_0_, partner0_.flg_employee as flg20_6_0_, partner0_.flg_supplier as flg21_6_0_, partner0_.partner_name as partner22_6_0_, partner0_.phone1 as phone23_6_0_, partner0_.phone2 as phone24_6_0_, partner0_.rating as rating6_0_, partner0_.state_or_province as state26_6_0_, partner0_.zip_code as zip27_6_0_ from m_partner partner0_ where partner0_.partner_code=?
  3. Hibernate: select combo0_.combo_id as combo1_19_0_, combo0_.create_datetime as create2_19_0_, combo0_.create_user_id as create3_19_0_, combo0_.update_datetime as update4_19_0_, combo0_.update_user_id as update5_19_0_, combo0_.version as version19_0_, combo0_.combo_type as combo7_19_0_, combo0_.description as descript8_19_0_, combo0_.main_sql as main9_19_0_, combo0_.combo_name as combo10_19_0_, combo0_.order_sql as order11_19_0_ from t_combo combo0_ where combo0_.combo_id=?
  4. Hibernate: select combovalue0_.code as code20_0_, combovalue0_.combo_id as combo2_20_0_, combovalue0_.create_datetime as create3_20_0_, combovalue0_.create_user_id as create4_20_0_, combovalue0_.update_datetime as update5_20_0_, combovalue0_.update_user_id as update6_20_0_, combovalue0_.version as version20_0_, combovalue0_.code_group as code8_20_0_, combovalue0_.prop_key as prop9_20_0_, combovalue0_.sort_no as sort10_20_0_ from t_combo_value combovalue0_ where combovalue0_.code=? and combovalue0_.combo_id=?
  5. Hibernate: select user0_.user_id as user1_18_, user0_.create_datetime as create2_18_, user0_.create_user_id as create3_18_, user0_.update_datetime as update4_18_, user0_.update_user_id as update5_18_, user0_.version as version18_, user0_.active as active18_, user0_.active_datetime as active8_18_, user0_.non_active_datetime as non9_18_, user0_.email as email18_, user0_.fullname as fullname18_, user0_.username as username18_, user0_.ou_default_id as ou13_18_, user0_.password as password18_, user0_.phone as phone18_, user0_.policy_default_id as policy16_18_, user0_.private_key as private17_18_, user0_.role_default_id as role18_18_, user0_.tenant_id as tenant19_18_ from t_user user0_ where user0_.username=?
  6. Error key : user.not.found with params [null]
  7. at org.jleaf.common.bo.user.FindUserByIndex.execute(FindUserByIndex.java:79)
  8. at org.jleaf.pos2.bo.employee.AddEmployeeJob.prepare(AddEmployeeJob.java:119)
  9. at org.jleaf.core.AbstractBusinessTransaction.execute(AbstractBusinessTransaction.java:40)
  10. at org.jleaf.core.DefaultBusinessTransaction.execute(DefaultBusinessTransaction.java:46)
  11. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  12. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  13. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  14. at java.lang.reflect.Method.invoke(Method.java:597)
  15. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  16. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  17. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  18. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  19. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  20. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  21. at $Proxy73.execute(Unknown Source)
  22. at org.jleaf.pos2.test.employee.TestAddEmployeeJob.testSucces(TestAddEmployeeJob.java:75)
  23. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  24. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  25. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  26. at java.lang.reflect.Method.invoke(Method.java:597)
  27. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
  28. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
  29. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
  30. at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
  31. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
  32. at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
  33. at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
  34. at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
  35. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)
  36. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  37. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
  38. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
  39. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
  40. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
  41. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
  42. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  43. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  44. at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
  45. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)
  46. at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
  47. at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
  48. at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
  49. at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
  50. at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
  51. at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
  52. 2016-09-01 11:05:54.695 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 0 rows from table m_employee_job
  53. 2016-09-01 11:05:54.697 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 0 rows from table m_partner
  54. 2016-09-01 11:05:54.700 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table t_user
  55. 2016-09-01 11:05:54.704 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 14 rows from table t_combo
  56. 2016-09-01 11:05:54.707 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 57 rows from table t_combo_value
  57. 2016-09-01 11:05:54.708 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:133 - Executing SQL script from class path resource [scripts/TestAddEmployeeJob.sql]
  58. 2016-09-01 11:05:54.712 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 2 rows affected by SQL: INSERT INTO m_employee_job(
  59. partner_code, employee_job, username,
  60. version, create_datetime, create_username,
  61. update_datetime, update_username)
  62. VALUES ('DESINTA', 'PURCH', 'Desinta',
  63. 1, '20160729000000','Nadia',
  64. '20160729000000', 'Nadia'),
  65. ('NADIA', 'SALES', 'Nadia',
  66. 2, '20160808000000','Desinta',
  67. '20160808000000', 'Desinta')
  68. 2016-09-01 11:05:54.716 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 2 rows affected by SQL:
  69. INSERT INTO m_partner(
  70. partner_code, partner_name, flg_customer, flg_supplier, flg_employee,
  71. address1, address2, city, state_or_province, zip_code, country,
  72. phone1, phone2, fax1, fax2, email, rating, default_gross_sell_price,
  73. default_gross_buy_price, active, active_datetime, non_active_datetime,
  74. version, create_datetime, create_username, update_datetime, update_username)
  75. VALUES ('DESINTA', 'IKA', 'Y', 'Y', 'Y',
  76. 'Pamulang Timur', 'Pamulang', 'Tangerang', 'Banten','15417', 'Indonesia',
  77. '0217413971','087809002724','0217413971','','adit@yahoo.com', 5, 9.5,
  78. 9.5, 'Y','20160523000000', ' ',
  79. 0,'20160523000000', 'Nadia', '20160524000000', 'Nadia'),
  80. ('NADIA', 'RESKY', 'Y', 'Y', 'Y',
  81. 'Pamulang Barat', 'Pamulang', 'Tangerang', 'Banten','15427', 'Indonesia',
  82. '0217413971','087809002724','0217413971','','nadia@yahoo.com', 5, 9.5,
  83. 9.5, 'Y','20160523000000', ' ',
  84. 0,'20160523000000', 'Desinta', '20160524000000', 'Desinta')
  85. 2016-09-01 11:05:54.719 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 2 rows affected by SQL:
  86. INSERT INTO t_user(
  87. user_id, tenant_id, username, email, fullname, password, phone,
  88. role_default_id, private_key, create_datetime, create_user_id,
  89. update_datetime, update_user_id, version, active, active_datetime,
  90. non_active_datetime, ou_default_id, policy_default_id)
  91. VALUES (10, 10, 'Desinta', 'user1@gmail.com', 'User Satu', 'user1', '083464363',
  92. 10, '9457c7ca3ae0dc907ad1703c15287d5c', '20160419194303', -1,
  93. '20160419194303', -1, 2, 'Y', '20160419194303',
  94. '', 10, 10),
  95. (20, 20, 'Nadia', 'user2gmail.com', 'User Dua', 'user2', '083464364',
  96. 10, '9457c7ca3ae0dc907ad1703c15287d5d', '20160419194304', -1,
  97. '20160419194304', -1, 2, 'Y', '20160419194304',
  98. '', 20, 20)
  99. 2016-09-01 11:05:54.723 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 1 rows affected by SQL:
  100. INSERT INTO t_combo (
  101. combo_id, combo_name, description, combo_type,
  102. create_datetime, create_user_id, update_datetime, update_user_id,
  103. version )
  104. VALUES ('EMPLOYEEJOB', 'Combo Employee JOb', 'Constant Combo Employee Job', 'FIX',
  105. '20160726000000', -1, '20160726000000', -1,0 )
  106. 2016-09-01 11:05:54.725 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 3 rows affected by SQL:
  107. INSERT INTO t_combo_value(
  108. combo_id, code, prop_key, code_group,
  109. sort_no, create_datetime, create_user_id, update_datetime,
  110. update_user_id, "version")
  111. VALUES('EMPLOYEEJOB', 'SALES', 'Sales', 'EMPLOYEE',
  112. 1, '20160726000000', -1, '20160726000000',
  113. -1, 0 ),
  114. ('EMPLOYEEJOB', 'PURCH', 'Purch', 'EMPLOYEE',
  115. 1, '20160726000000', -1, '20160726000000',
  116. -1, 0 ),
  117. ('EMPLOYEEJOB', 'FINANCE', 'Finance', 'EMPLOYEE',
  118. 1, '20160726000000', -1, '20160726000000',
  119. -1, 0 )
  120. 2016-09-01 11:05:54.726 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:167 - Done executing SQL scriptBuilder from class path resource [scripts/TestAddEmployeeJob.sql] in 18 ms.
  121. Hibernate: select partner0_.partner_code as partner1_6_0_, partner0_.create_datetime as create2_6_0_, partner0_.create_username as create3_6_0_, partner0_.update_datetime as update4_6_0_, partner0_.update_username as update5_6_0_, partner0_.version as version6_0_, partner0_.active as active6_0_, partner0_.active_datetime as active8_6_0_, partner0_.non_active_datetime as non9_6_0_, partner0_.address1 as address10_6_0_, partner0_.address2 as address11_6_0_, partner0_.city as city6_0_, partner0_.country as country6_0_, partner0_.default_gross_buy_price as default14_6_0_, partner0_.default_gross_sell_price as default15_6_0_, partner0_.email as email6_0_, partner0_.fax1 as fax17_6_0_, partner0_.fax2 as fax18_6_0_, partner0_.flg_customer as flg19_6_0_, partner0_.flg_employee as flg20_6_0_, partner0_.flg_supplier as flg21_6_0_, partner0_.partner_name as partner22_6_0_, partner0_.phone1 as phone23_6_0_, partner0_.phone2 as phone24_6_0_, partner0_.rating as rating6_0_, partner0_.state_or_province as state26_6_0_, partner0_.zip_code as zip27_6_0_ from m_partner partner0_ where partner0_.partner_code=?
  122. Hibernate: select combo0_.combo_id as combo1_19_0_, combo0_.create_datetime as create2_19_0_, combo0_.create_user_id as create3_19_0_, combo0_.update_datetime as update4_19_0_, combo0_.update_user_id as update5_19_0_, combo0_.version as version19_0_, combo0_.combo_type as combo7_19_0_, combo0_.description as descript8_19_0_, combo0_.main_sql as main9_19_0_, combo0_.combo_name as combo10_19_0_, combo0_.order_sql as order11_19_0_ from t_combo combo0_ where combo0_.combo_id=?
  123. Hibernate: select combovalue0_.code as code20_0_, combovalue0_.combo_id as combo2_20_0_, combovalue0_.create_datetime as create3_20_0_, combovalue0_.create_user_id as create4_20_0_, combovalue0_.update_datetime as update5_20_0_, combovalue0_.update_user_id as update6_20_0_, combovalue0_.version as version20_0_, combovalue0_.code_group as code8_20_0_, combovalue0_.prop_key as prop9_20_0_, combovalue0_.sort_no as sort10_20_0_ from t_combo_value combovalue0_ where combovalue0_.code=? and combovalue0_.combo_id=?
  124. Hibernate: select user0_.user_id as user1_18_, user0_.create_datetime as create2_18_, user0_.create_user_id as create3_18_, user0_.update_datetime as update4_18_, user0_.update_user_id as update5_18_, user0_.version as version18_, user0_.active as active18_, user0_.active_datetime as active8_18_, user0_.non_active_datetime as non9_18_, user0_.email as email18_, user0_.fullname as fullname18_, user0_.username as username18_, user0_.ou_default_id as ou13_18_, user0_.password as password18_, user0_.phone as phone18_, user0_.policy_default_id as policy16_18_, user0_.private_key as private17_18_, user0_.role_default_id as role18_18_, user0_.tenant_id as tenant19_18_ from t_user user0_ where user0_.username=?
  125. 2016-09-01 11:05:54.748 [DEBUG] org.jleaf.pos2.test.employee.TestAddEmployeeJob:121 - Masuk core exceotion
  126. 2016-09-01 11:05:54.754 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 0 rows from table m_employee_job
  127. 2016-09-01 11:05:54.757 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 0 rows from table m_partner
  128. 2016-09-01 11:05:54.759 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table t_user
  129. 2016-09-01 11:05:54.761 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 14 rows from table t_combo
  130. 2016-09-01 11:05:54.764 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 57 rows from table t_combo_value
  131. 2016-09-01 11:05:54.765 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:133 - Executing SQL script from class path resource [scripts/TestAddEmployeeJob.sql]
  132. 2016-09-01 11:05:54.770 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 2 rows affected by SQL: INSERT INTO m_employee_job(
  133. partner_code, employee_job, username,
  134. version, create_datetime, create_username,
  135. update_datetime, update_username)
  136. VALUES ('DESINTA', 'PURCH', 'Desinta',
  137. 1, '20160729000000','Nadia',
  138. '20160729000000', 'Nadia'),
  139. ('NADIA', 'SALES', 'Nadia',
  140. 2, '20160808000000','Desinta',
  141. '20160808000000', 'Desinta')
  142. 2016-09-01 11:05:54.775 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 2 rows affected by SQL:
  143. INSERT INTO m_partner(
  144. partner_code, partner_name, flg_customer, flg_supplier, flg_employee,
  145. address1, address2, city, state_or_province, zip_code, country,
  146. phone1, phone2, fax1, fax2, email, rating, default_gross_sell_price,
  147. default_gross_buy_price, active, active_datetime, non_active_datetime,
  148. version, create_datetime, create_username, update_datetime, update_username)
  149. VALUES ('DESINTA', 'IKA', 'Y', 'Y', 'Y',
  150. 'Pamulang Timur', 'Pamulang', 'Tangerang', 'Banten','15417', 'Indonesia',
  151. '0217413971','087809002724','0217413971','','adit@yahoo.com', 5, 9.5,
  152. 9.5, 'Y','20160523000000', ' ',
  153. 0,'20160523000000', 'Nadia', '20160524000000', 'Nadia'),
  154. ('NADIA', 'RESKY', 'Y', 'Y', 'Y',
  155. 'Pamulang Barat', 'Pamulang', 'Tangerang', 'Banten','15427', 'Indonesia',
  156. '0217413971','087809002724','0217413971','','nadia@yahoo.com', 5, 9.5,
  157. 9.5, 'Y','20160523000000', ' ',
  158. 0,'20160523000000', 'Desinta', '20160524000000', 'Desinta')
  159. 2016-09-01 11:05:54.779 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 2 rows affected by SQL:
  160. INSERT INTO t_user(
  161. user_id, tenant_id, username, email, fullname, password, phone,
  162. role_default_id, private_key, create_datetime, create_user_id,
  163. update_datetime, update_user_id, version, active, active_datetime,
  164. non_active_datetime, ou_default_id, policy_default_id)
  165. VALUES (10, 10, 'Desinta', 'user1@gmail.com', 'User Satu', 'user1', '083464363',
  166. 10, '9457c7ca3ae0dc907ad1703c15287d5c', '20160419194303', -1,
  167. '20160419194303', -1, 2, 'Y', '20160419194303',
  168. '', 10, 10),
  169. (20, 20, 'Nadia', 'user2gmail.com', 'User Dua', 'user2', '083464364',
  170. 10, '9457c7ca3ae0dc907ad1703c15287d5d', '20160419194304', -1,
  171. '20160419194304', -1, 2, 'Y', '20160419194304',
  172. '', 20, 20)
  173. 2016-09-01 11:05:54.781 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 1 rows affected by SQL:
  174. INSERT INTO t_combo (
  175. combo_id, combo_name, description, combo_type,
  176. create_datetime, create_user_id, update_datetime, update_user_id,
  177. version )
  178. VALUES ('EMPLOYEEJOB', 'Combo Employee JOb', 'Constant Combo Employee Job', 'FIX',
  179. '20160726000000', -1, '20160726000000', -1,0 )
  180. 2016-09-01 11:05:54.784 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 3 rows affected by SQL:
  181. INSERT INTO t_combo_value(
  182. combo_id, code, prop_key, code_group,
  183. sort_no, create_datetime, create_user_id, update_datetime,
  184. update_user_id, "version")
  185. VALUES('EMPLOYEEJOB', 'SALES', 'Sales', 'EMPLOYEE',
  186. 1, '20160726000000', -1, '20160726000000',
  187. -1, 0 ),
  188. ('EMPLOYEEJOB', 'PURCH', 'Purch', 'EMPLOYEE',
  189. 1, '20160726000000', -1, '20160726000000',
  190. -1, 0 ),
  191. ('EMPLOYEEJOB', 'FINANCE', 'Finance', 'EMPLOYEE',
  192. 1, '20160726000000', -1, '20160726000000',
  193. -1, 0 )
  194. 2016-09-01 11:05:54.785 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:167 - Done executing SQL scriptBuilder from class path resource [scripts/TestAddEmployeeJob.sql] in 18 ms.
  195. Hibernate: select partner0_.partner_code as partner1_6_0_, partner0_.create_datetime as create2_6_0_, partner0_.create_username as create3_6_0_, partner0_.update_datetime as update4_6_0_, partner0_.update_username as update5_6_0_, partner0_.version as version6_0_, partner0_.active as active6_0_, partner0_.active_datetime as active8_6_0_, partner0_.non_active_datetime as non9_6_0_, partner0_.address1 as address10_6_0_, partner0_.address2 as address11_6_0_, partner0_.city as city6_0_, partner0_.country as country6_0_, partner0_.default_gross_buy_price as default14_6_0_, partner0_.default_gross_sell_price as default15_6_0_, partner0_.email as email6_0_, partner0_.fax1 as fax17_6_0_, partner0_.fax2 as fax18_6_0_, partner0_.flg_customer as flg19_6_0_, partner0_.flg_employee as flg20_6_0_, partner0_.flg_supplier as flg21_6_0_, partner0_.partner_name as partner22_6_0_, partner0_.phone1 as phone23_6_0_, partner0_.phone2 as phone24_6_0_, partner0_.rating as rating6_0_, partner0_.state_or_province as state26_6_0_, partner0_.zip_code as zip27_6_0_ from m_partner partner0_ where partner0_.partner_code=?
  196. Hibernate: select combo0_.combo_id as combo1_19_0_, combo0_.create_datetime as create2_19_0_, combo0_.create_user_id as create3_19_0_, combo0_.update_datetime as update4_19_0_, combo0_.update_user_id as update5_19_0_, combo0_.version as version19_0_, combo0_.combo_type as combo7_19_0_, combo0_.description as descript8_19_0_, combo0_.main_sql as main9_19_0_, combo0_.combo_name as combo10_19_0_, combo0_.order_sql as order11_19_0_ from t_combo combo0_ where combo0_.combo_id=?
  197. Hibernate: select combovalue0_.code as code20_0_, combovalue0_.combo_id as combo2_20_0_, combovalue0_.create_datetime as create3_20_0_, combovalue0_.create_user_id as create4_20_0_, combovalue0_.update_datetime as update5_20_0_, combovalue0_.update_user_id as update6_20_0_, combovalue0_.version as version20_0_, combovalue0_.code_group as code8_20_0_, combovalue0_.prop_key as prop9_20_0_, combovalue0_.sort_no as sort10_20_0_ from t_combo_value combovalue0_ where combovalue0_.code=? and combovalue0_.combo_id=?
  198. Hibernate: select user0_.user_id as user1_18_, user0_.create_datetime as create2_18_, user0_.create_user_id as create3_18_, user0_.update_datetime as update4_18_, user0_.update_user_id as update5_18_, user0_.version as version18_, user0_.active as active18_, user0_.active_datetime as active8_18_, user0_.non_active_datetime as non9_18_, user0_.email as email18_, user0_.fullname as fullname18_, user0_.username as username18_, user0_.ou_default_id as ou13_18_, user0_.password as password18_, user0_.phone as phone18_, user0_.policy_default_id as policy16_18_, user0_.private_key as private17_18_, user0_.role_default_id as role18_18_, user0_.tenant_id as tenant19_18_ from t_user user0_ where user0_.username=?
  199. 2016-09-01 11:05:54.802 [DEBUG] org.jleaf.pos2.test.employee.TestAddEmployeeJob:152 - Masuk core exception
  200. 2016-09-01 11:05:54.807 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 0 rows from table m_employee_job
  201. 2016-09-01 11:05:54.809 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 0 rows from table m_partner
  202. 2016-09-01 11:05:54.811 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table t_user
  203. 2016-09-01 11:05:54.814 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 14 rows from table t_combo
  204. 2016-09-01 11:05:54.817 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 57 rows from table t_combo_value
  205. 2016-09-01 11:05:54.817 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:133 - Executing SQL script from class path resource [scripts/TestAddEmployeeJob.sql]
  206. 2016-09-01 11:05:54.820 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 2 rows affected by SQL: INSERT INTO m_employee_job(
  207. partner_code, employee_job, username,
  208. version, create_datetime, create_username,
  209. update_datetime, update_username)
  210. VALUES ('DESINTA', 'PURCH', 'Desinta',
  211. 1, '20160729000000','Nadia',
  212. '20160729000000', 'Nadia'),
  213. ('NADIA', 'SALES', 'Nadia',
  214. 2, '20160808000000','Desinta',
  215. '20160808000000', 'Desinta')
  216. 2016-09-01 11:05:54.824 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 2 rows affected by SQL:
  217. INSERT INTO m_partner(
  218. partner_code, partner_name, flg_customer, flg_supplier, flg_employee,
  219. address1, address2, city, state_or_province, zip_code, country,
  220. phone1, phone2, fax1, fax2, email, rating, default_gross_sell_price,
  221. default_gross_buy_price, active, active_datetime, non_active_datetime,
  222. version, create_datetime, create_username, update_datetime, update_username)
  223. VALUES ('DESINTA', 'IKA', 'Y', 'Y', 'Y',
  224. 'Pamulang Timur', 'Pamulang', 'Tangerang', 'Banten','15417', 'Indonesia',
  225. '0217413971','087809002724','0217413971','','adit@yahoo.com', 5, 9.5,
  226. 9.5, 'Y','20160523000000', ' ',
  227. 0,'20160523000000', 'Nadia', '20160524000000', 'Nadia'),
  228. ('NADIA', 'RESKY', 'Y', 'Y', 'Y',
  229. 'Pamulang Barat', 'Pamulang', 'Tangerang', 'Banten','15427', 'Indonesia',
  230. '0217413971','087809002724','0217413971','','nadia@yahoo.com', 5, 9.5,
  231. 9.5, 'Y','20160523000000', ' ',
  232. 0,'20160523000000', 'Desinta', '20160524000000', 'Desinta')
  233. 2016-09-01 11:05:54.827 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 2 rows affected by SQL:
  234. INSERT INTO t_user(
  235. user_id, tenant_id, username, email, fullname, password, phone,
  236. role_default_id, private_key, create_datetime, create_user_id,
  237. update_datetime, update_user_id, version, active, active_datetime,
  238. non_active_datetime, ou_default_id, policy_default_id)
  239. VALUES (10, 10, 'Desinta', 'user1@gmail.com', 'User Satu', 'user1', '083464363',
  240. 10, '9457c7ca3ae0dc907ad1703c15287d5c', '20160419194303', -1,
  241. '20160419194303', -1, 2, 'Y', '20160419194303',
  242. '', 10, 10),
  243. (20, 20, 'Nadia', 'user2gmail.com', 'User Dua', 'user2', '083464364',
  244. 10, '9457c7ca3ae0dc907ad1703c15287d5d', '20160419194304', -1,
  245. '20160419194304', -1, 2, 'Y', '20160419194304',
  246. '', 20, 20)
  247. 2016-09-01 11:05:54.832 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 1 rows affected by SQL:
  248. INSERT INTO t_combo (
  249. combo_id, combo_name, description, combo_type,
  250. create_datetime, create_user_id, update_datetime, update_user_id,
  251. version )
  252. VALUES ('EMPLOYEEJOB', 'Combo Employee JOb', 'Constant Combo Employee Job', 'FIX',
  253. '20160726000000', -1, '20160726000000', -1,0 )
  254. 2016-09-01 11:05:54.835 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 3 rows affected by SQL:
  255. INSERT INTO t_combo_value(
  256. combo_id, code, prop_key, code_group,
  257. sort_no, create_datetime, create_user_id, update_datetime,
  258. update_user_id, "version")
  259. VALUES('EMPLOYEEJOB', 'SALES', 'Sales', 'EMPLOYEE',
  260. 1, '20160726000000', -1, '20160726000000',
  261. -1, 0 ),
  262. ('EMPLOYEEJOB', 'PURCH', 'Purch', 'EMPLOYEE',
  263. 1, '20160726000000', -1, '20160726000000',
  264. -1, 0 ),
  265. ('EMPLOYEEJOB', 'FINANCE', 'Finance', 'EMPLOYEE',
  266. 1, '20160726000000', -1, '20160726000000',
  267. -1, 0 )
  268. 2016-09-01 11:05:54.835 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:167 - Done executing SQL scriptBuilder from class path resource [scripts/TestAddEmployeeJob.sql] in 17 ms.
  269. Hibernate: select partner0_.partner_code as partner1_6_0_, partner0_.create_datetime as create2_6_0_, partner0_.create_username as create3_6_0_, partner0_.update_datetime as update4_6_0_, partner0_.update_username as update5_6_0_, partner0_.version as version6_0_, partner0_.active as active6_0_, partner0_.active_datetime as active8_6_0_, partner0_.non_active_datetime as non9_6_0_, partner0_.address1 as address10_6_0_, partner0_.address2 as address11_6_0_, partner0_.city as city6_0_, partner0_.country as country6_0_, partner0_.default_gross_buy_price as default14_6_0_, partner0_.default_gross_sell_price as default15_6_0_, partner0_.email as email6_0_, partner0_.fax1 as fax17_6_0_, partner0_.fax2 as fax18_6_0_, partner0_.flg_customer as flg19_6_0_, partner0_.flg_employee as flg20_6_0_, partner0_.flg_supplier as flg21_6_0_, partner0_.partner_name as partner22_6_0_, partner0_.phone1 as phone23_6_0_, partner0_.phone2 as phone24_6_0_, partner0_.rating as rating6_0_, partner0_.state_or_province as state26_6_0_, partner0_.zip_code as zip27_6_0_ from m_partner partner0_ where partner0_.partner_code=?
  270. Hibernate: select combo0_.combo_id as combo1_19_0_, combo0_.create_datetime as create2_19_0_, combo0_.create_user_id as create3_19_0_, combo0_.update_datetime as update4_19_0_, combo0_.update_user_id as update5_19_0_, combo0_.version as version19_0_, combo0_.combo_type as combo7_19_0_, combo0_.description as descript8_19_0_, combo0_.main_sql as main9_19_0_, combo0_.combo_name as combo10_19_0_, combo0_.order_sql as order11_19_0_ from t_combo combo0_ where combo0_.combo_id=?
  271. Hibernate: select combovalue0_.code as code20_0_, combovalue0_.combo_id as combo2_20_0_, combovalue0_.create_datetime as create3_20_0_, combovalue0_.create_user_id as create4_20_0_, combovalue0_.update_datetime as update5_20_0_, combovalue0_.update_user_id as update6_20_0_, combovalue0_.version as version20_0_, combovalue0_.code_group as code8_20_0_, combovalue0_.prop_key as prop9_20_0_, combovalue0_.sort_no as sort10_20_0_ from t_combo_value combovalue0_ where combovalue0_.code=? and combovalue0_.combo_id=?
  272. 2016-09-01 11:05:54.855 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 0 rows from table m_employee_job
  273. 2016-09-01 11:05:54.859 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 0 rows from table m_partner
  274. 2016-09-01 11:05:54.863 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table t_user
  275. 2016-09-01 11:05:54.866 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 14 rows from table t_combo
  276. 2016-09-01 11:05:54.869 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 57 rows from table t_combo_value
  277. 2016-09-01 11:05:54.870 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:133 - Executing SQL script from class path resource [scripts/TestAddEmployeeJob.sql]
  278. 2016-09-01 11:05:54.874 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 2 rows affected by SQL: INSERT INTO m_employee_job(
  279. partner_code, employee_job, username,
  280. version, create_datetime, create_username,
  281. update_datetime, update_username)
  282. VALUES ('DESINTA', 'PURCH', 'Desinta',
  283. 1, '20160729000000','Nadia',
  284. '20160729000000', 'Nadia'),
  285. ('NADIA', 'SALES', 'Nadia',
  286. 2, '20160808000000','Desinta',
  287. '20160808000000', 'Desinta')
  288. 2016-09-01 11:05:54.879 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 2 rows affected by SQL:
  289. INSERT INTO m_partner(
  290. partner_code, partner_name, flg_customer, flg_supplier, flg_employee,
  291. address1, address2, city, state_or_province, zip_code, country,
  292. phone1, phone2, fax1, fax2, email, rating, default_gross_sell_price,
  293. default_gross_buy_price, active, active_datetime, non_active_datetime,
  294. version, create_datetime, create_username, update_datetime, update_username)
  295. VALUES ('DESINTA', 'IKA', 'Y', 'Y', 'Y',
  296. 'Pamulang Timur', 'Pamulang', 'Tangerang', 'Banten','15417', 'Indonesia',
  297. '0217413971','087809002724','0217413971','','adit@yahoo.com', 5, 9.5,
  298. 9.5, 'Y','20160523000000', ' ',
  299. 0,'20160523000000', 'Nadia', '20160524000000', 'Nadia'),
  300. ('NADIA', 'RESKY', 'Y', 'Y', 'Y',
  301. 'Pamulang Barat', 'Pamulang', 'Tangerang', 'Banten','15427', 'Indonesia',
  302. '0217413971','087809002724','0217413971','','nadia@yahoo.com', 5, 9.5,
  303. 9.5, 'Y','20160523000000', ' ',
  304. 0,'20160523000000', 'Desinta', '20160524000000', 'Desinta')
  305. 2016-09-01 11:05:54.882 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 2 rows affected by SQL:
  306. INSERT INTO t_user(
  307. user_id, tenant_id, username, email, fullname, password, phone,
  308. role_default_id, private_key, create_datetime, create_user_id,
  309. update_datetime, update_user_id, version, active, active_datetime,
  310. non_active_datetime, ou_default_id, policy_default_id)
  311. VALUES (10, 10, 'Desinta', 'user1@gmail.com', 'User Satu', 'user1', '083464363',
  312. 10, '9457c7ca3ae0dc907ad1703c15287d5c', '20160419194303', -1,
  313. '20160419194303', -1, 2, 'Y', '20160419194303',
  314. '', 10, 10),
  315. (20, 20, 'Nadia', 'user2gmail.com', 'User Dua', 'user2', '083464364',
  316. 10, '9457c7ca3ae0dc907ad1703c15287d5d', '20160419194304', -1,
  317. '20160419194304', -1, 2, 'Y', '20160419194304',
  318. '', 20, 20)
  319. 2016-09-01 11:05:54.885 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 1 rows affected by SQL:
  320. INSERT INTO t_combo (
  321. combo_id, combo_name, description, combo_type,
  322. create_datetime, create_user_id, update_datetime, update_user_id,
  323. version )
  324. VALUES ('EMPLOYEEJOB', 'Combo Employee JOb', 'Constant Combo Employee Job', 'FIX',
  325. '20160726000000', -1, '20160726000000', -1,0 )
  326. 2016-09-01 11:05:54.887 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 3 rows affected by SQL:
  327. INSERT INTO t_combo_value(
  328. combo_id, code, prop_key, code_group,
  329. sort_no, create_datetime, create_user_id, update_datetime,
  330. update_user_id, "version")
  331. VALUES('EMPLOYEEJOB', 'SALES', 'Sales', 'EMPLOYEE',
  332. 1, '20160726000000', -1, '20160726000000',
  333. -1, 0 ),
  334. ('EMPLOYEEJOB', 'PURCH', 'Purch', 'EMPLOYEE',
  335. 1, '20160726000000', -1, '20160726000000',
  336. -1, 0 ),
  337. ('EMPLOYEEJOB', 'FINANCE', 'Finance', 'EMPLOYEE',
  338. 1, '20160726000000', -1, '20160726000000',
  339. -1, 0 )
  340. 2016-09-01 11:05:54.888 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:167 - Done executing SQL scriptBuilder from class path resource [scripts/TestAddEmployeeJob.sql] in 17 ms.
  341. Hibernate: select partner0_.partner_code as partner1_6_0_, partner0_.create_datetime as create2_6_0_, partner0_.create_username as create3_6_0_, partner0_.update_datetime as update4_6_0_, partner0_.update_username as update5_6_0_, partner0_.version as version6_0_, partner0_.active as active6_0_, partner0_.active_datetime as active8_6_0_, partner0_.non_active_datetime as non9_6_0_, partner0_.address1 as address10_6_0_, partner0_.address2 as address11_6_0_, partner0_.city as city6_0_, partner0_.country as country6_0_, partner0_.default_gross_buy_price as default14_6_0_, partner0_.default_gross_sell_price as default15_6_0_, partner0_.email as email6_0_, partner0_.fax1 as fax17_6_0_, partner0_.fax2 as fax18_6_0_, partner0_.flg_customer as flg19_6_0_, partner0_.flg_employee as flg20_6_0_, partner0_.flg_supplier as flg21_6_0_, partner0_.partner_name as partner22_6_0_, partner0_.phone1 as phone23_6_0_, partner0_.phone2 as phone24_6_0_, partner0_.rating as rating6_0_, partner0_.state_or_province as state26_6_0_, partner0_.zip_code as zip27_6_0_ from m_partner partner0_ where partner0_.partner_code=?
  342. Hibernate: select combo0_.combo_id as combo1_19_0_, combo0_.create_datetime as create2_19_0_, combo0_.create_user_id as create3_19_0_, combo0_.update_datetime as update4_19_0_, combo0_.update_user_id as update5_19_0_, combo0_.version as version19_0_, combo0_.combo_type as combo7_19_0_, combo0_.description as descript8_19_0_, combo0_.main_sql as main9_19_0_, combo0_.combo_name as combo10_19_0_, combo0_.order_sql as order11_19_0_ from t_combo combo0_ where combo0_.combo_id=?
  343. Hibernate: select combovalue0_.code as code20_0_, combovalue0_.combo_id as combo2_20_0_, combovalue0_.create_datetime as create3_20_0_, combovalue0_.create_user_id as create4_20_0_, combovalue0_.update_datetime as update5_20_0_, combovalue0_.update_user_id as update6_20_0_, combovalue0_.version as version20_0_, combovalue0_.code_group as code8_20_0_, combovalue0_.prop_key as prop9_20_0_, combovalue0_.sort_no as sort10_20_0_ from t_combo_value combovalue0_ where combovalue0_.code=? and combovalue0_.combo_id=?
  344. Hibernate: select user0_.user_id as user1_18_, user0_.create_datetime as create2_18_, user0_.create_user_id as create3_18_, user0_.update_datetime as update4_18_, user0_.update_user_id as update5_18_, user0_.version as version18_, user0_.active as active18_, user0_.active_datetime as active8_18_, user0_.non_active_datetime as non9_18_, user0_.email as email18_, user0_.fullname as fullname18_, user0_.username as username18_, user0_.ou_default_id as ou13_18_, user0_.password as password18_, user0_.phone as phone18_, user0_.policy_default_id as policy16_18_, user0_.private_key as private17_18_, user0_.role_default_id as role18_18_, user0_.tenant_id as tenant19_18_ from t_user user0_ where user0_.username=?
  345. Hibernate: select employeejo0_.partner_code as partner1_55_0_, employeejo0_.create_datetime as create2_55_0_, employeejo0_.create_username as create3_55_0_, employeejo0_.update_datetime as update4_55_0_, employeejo0_.update_username as update5_55_0_, employeejo0_.version as version55_0_, employeejo0_.employee_job as employee7_55_0_, employeejo0_.username as username55_0_ from m_employee_job employeejo0_ where employeejo0_.partner_code =?
  346. 2016-09-01 11:05:54.909 [DEBUG] org.jleaf.pos2.bo.employee.AddEmployeeJob:127 - resultCheckUniqueDto : {"employeeJobDto":{"createUsername":"Nadia","createDateTime":"20160729000000","username":"Desinta","partnerCode":"DESINTA","employeeJob":"PURCH","updateDateTime":"20160729000000","updateUsername":"Nadia","version":1},"exists":true}
  347. 2016-09-01 11:05:54.909 [DEBUG] org.jleaf.pos2.test.employee.TestAddEmployeeJob:214 - Masuk core exceotion
  348. Tests run: 5, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 7.279 sec <<< FAILURE! - in org.jleaf.pos2.test.employee.TestAddEmployeeJob
  349. testSucces(org.jleaf.pos2.test.employee.TestAddEmployeeJob) Time elapsed: 6.918 sec <<< FAILURE!
  350. java.lang.AssertionError:
  351. at org.junit.Assert.fail(Assert.java:91)
  352. at org.jleaf.pos2.test.employee.TestAddEmployeeJob.testSucces(TestAddEmployeeJob.java:96)
  353.  
  354.  
  355. Results :
  356.  
  357. Failed tests:
  358. TestAddEmployeeJob.testSucces:96
  359.  
  360. Tests run: 5, Failures: 1, Errors: 0, Skipped: 0
  361.  
  362. [INFO] ------------------------------------------------------------------------
  363. [INFO] BUILD FAILURE
  364. [INFO] ------------------------------------------------------------------------
  365. [INFO] Total time: 14.630s
  366. [INFO] Finished at: Thu Sep 01 11:05:54 WIT 2016
  367. [INFO] Final Memory: 19M/337M
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement