Fanadia_Friska

errorr again

Aug 29th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.49 KB | None | 0 0
  1. T E S T S
  2. -------------------------------------------------------
  3. Running org.jleaf.pos2.test.vehicle.TestGetVehicleList
  4. 2016-08-29 15:57:23.295 [WARN] org.jleaf.common.bo.realm.RealmActiveDirectory:48 - Activate Realm LDAP without any configuration
  5. 2016-08-29 15:57:25.125 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 0 rows from table m_vehicle
  6. 2016-08-29 15:57:25.127 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table m_vehicle_group
  7. 2016-08-29 15:57:25.130 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table m_vehicle_type
  8. 2016-08-29 15:57:25.131 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:133 - Executing SQL script from class path resource [scripts/TestGetVehicleList.sql]
  9. 2016-08-29 15:57:25.138 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 3 rows affected by SQL: INSERT INTO m_vehicle(
  10. vehicle_code,license_no, owner_name, chassis_no,
  11. engine_no, vehicle_group_code,
  12. vehicle_type_code, year_made, customer_name,
  13. address1, address2, address3, phone1,phone2,
  14. active, active_datetime, non_active_datetime,
  15. version, create_datetime,
  16. create_username, update_datetime, update_username)
  17. VALUES ('HND','H 6634 SS','Mail','222-442-2442-244',
  18. '123-432-1234-201','PBD',
  19. 'MTR','2016','Rika',
  20. 'Boja','Mijen','Ngaliyan','087865433421','0878987661234',
  21. 'Y','20160801000000','20160802000000',
  22. 0,'20160804000000',
  23. 'Nurfitria','20160805000000','Dewi'),
  24. ('YMH','H 2434 BP','juky','222-443-2443-245',
  25. '123-432-1234-202','KTR',
  26. 'MTR','2016','Ayu',
  27. 'gunung_pati','sedayu','Ngaliyan','087865466666','0878987669876',
  28. 'Y','20160728000000','20160713000000',0,'20160714000000',
  29. 'efa','20160714000000','tania'),
  30. ('DCY','DA 1987 BB','Bone','222-442-2442-246',
  31. '123-432-1234-201','PBD',
  32. 'MTR','2016','Rika',
  33. 'Boja','Mijen','Ngaliyan','087865433421','0878987665678',
  34. 'N','20160728000000','20160729000000',0,'20160713000000',
  35. 'fitri','20160714000000','Nofi')
  36. 2016-08-29 15:57:25.139 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:167 - Done executing SQL scriptBuilder from class path resource [scripts/TestGetVehicleList.sql] in 8 ms.
  37. Hibernate: SELECT A.vehicle_code, A.license_no, A.owner_name, A.chassis_no, A.engine_no, A.vehicle_group_code, B.vehicle_group_name, A.vehicle_type_code, C.vehicle_type_name, A.year_made, A.customer_name, A.address1, A.address2, A.address3, A.phone1, A.phone2, A.active, A.version FROM m_vehicle A JOIN m_vehicle_group B ON A.vehicle_group_code = B.vehicle_group_code JOIN m_vehicle_type C ON A.vehicle_type_code = C.vehicle_type_code WHERE true AND ( UPPER( A.owner_name ) like '%HND%' OR UPPER( A.license_no ) like '%HND%' OR UPPER( A.customer_name ) like '%HND%' ) AND UPPER(A.active) = 'Y' ORDER BY A.vehicle_code ASC LIMIT 1 OFFSET 0
  38. 2016-08-29 15:57:25.189 [DEBUG] org.jleaf.pos2.test.vehicle.TestGetVehicleList:57 - List :[]
  39. 2016-08-29 15:57:25.205 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 0 rows from table m_vehicle
  40. 2016-08-29 15:57:25.208 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table m_vehicle_group
  41. 2016-08-29 15:57:25.210 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table m_vehicle_type
  42. 2016-08-29 15:57:25.211 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:133 - Executing SQL script from class path resource [scripts/TestGetVehicleList.sql]
  43. 2016-08-29 15:57:25.214 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 3 rows affected by SQL: INSERT INTO m_vehicle(
  44. vehicle_code,license_no, owner_name, chassis_no,
  45. engine_no, vehicle_group_code,
  46. vehicle_type_code, year_made, customer_name,
  47. address1, address2, address3, phone1,phone2,
  48. active, active_datetime, non_active_datetime,
  49. version, create_datetime,
  50. create_username, update_datetime, update_username)
  51. VALUES ('HND','H 6634 SS','Mail','222-442-2442-244',
  52. '123-432-1234-201','PBD',
  53. 'MTR','2016','Rika',
  54. 'Boja','Mijen','Ngaliyan','087865433421','0878987661234',
  55. 'Y','20160801000000','20160802000000',
  56. 0,'20160804000000',
  57. 'Nurfitria','20160805000000','Dewi'),
  58. ('YMH','H 2434 BP','juky','222-443-2443-245',
  59. '123-432-1234-202','KTR',
  60. 'MTR','2016','Ayu',
  61. 'gunung_pati','sedayu','Ngaliyan','087865466666','0878987669876',
  62. 'Y','20160728000000','20160713000000',0,'20160714000000',
  63. 'efa','20160714000000','tania'),
  64. ('DCY','DA 1987 BB','Bone','222-442-2442-246',
  65. '123-432-1234-201','PBD',
  66. 'MTR','2016','Rika',
  67. 'Boja','Mijen','Ngaliyan','087865433421','0878987665678',
  68. 'N','20160728000000','20160729000000',0,'20160713000000',
  69. 'fitri','20160714000000','Nofi')
  70. 2016-08-29 15:57:25.215 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:167 - Done executing SQL scriptBuilder from class path resource [scripts/TestGetVehicleList.sql] in 4 ms.
  71. Hibernate: SELECT A.vehicle_code, A.license_no, A.owner_name, A.chassis_no, A.engine_no, A.vehicle_group_code, B.vehicle_group_name, A.vehicle_type_code, C.vehicle_type_name, A.year_made, A.customer_name, A.address1, A.address2, A.address3, A.phone1, A.phone2, A.active, A.version FROM m_vehicle A JOIN m_vehicle_group B ON A.vehicle_group_code = B.vehicle_group_code JOIN m_vehicle_type C ON A.vehicle_type_code = C.vehicle_type_code WHERE true AND ( UPPER( A.owner_name ) like '%HND%' OR UPPER( A.license_no ) like '%HND%' OR UPPER( A.customer_name ) like '%HND%' ) AND UPPER(A.active) = 'Y' ORDER BY A.vehicle_code ASC LIMIT 7 OFFSET 0
  72. 2016-08-29 15:57:25.221 [DEBUG] org.jleaf.pos2.test.vehicle.TestGetVehicleList:85 - List :[]
  73. 2016-08-29 15:57:25.233 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 0 rows from table m_vehicle
  74. 2016-08-29 15:57:25.235 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table m_vehicle_group
  75. 2016-08-29 15:57:25.237 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table m_vehicle_type
  76. 2016-08-29 15:57:25.238 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:133 - Executing SQL script from class path resource [scripts/TestGetVehicleList.sql]
  77. 2016-08-29 15:57:25.241 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 3 rows affected by SQL: INSERT INTO m_vehicle(
  78. vehicle_code,license_no, owner_name, chassis_no,
  79. engine_no, vehicle_group_code,
  80. vehicle_type_code, year_made, customer_name,
  81. address1, address2, address3, phone1,phone2,
  82. active, active_datetime, non_active_datetime,
  83. version, create_datetime,
  84. create_username, update_datetime, update_username)
  85. VALUES ('HND','H 6634 SS','Mail','222-442-2442-244',
  86. '123-432-1234-201','PBD',
  87. 'MTR','2016','Rika',
  88. 'Boja','Mijen','Ngaliyan','087865433421','0878987661234',
  89. 'Y','20160801000000','20160802000000',
  90. 0,'20160804000000',
  91. 'Nurfitria','20160805000000','Dewi'),
  92. ('YMH','H 2434 BP','juky','222-443-2443-245',
  93. '123-432-1234-202','KTR',
  94. 'MTR','2016','Ayu',
  95. 'gunung_pati','sedayu','Ngaliyan','087865466666','0878987669876',
  96. 'Y','20160728000000','20160713000000',0,'20160714000000',
  97. 'efa','20160714000000','tania'),
  98. ('DCY','DA 1987 BB','Bone','222-442-2442-246',
  99. '123-432-1234-201','PBD',
  100. 'MTR','2016','Rika',
  101. 'Boja','Mijen','Ngaliyan','087865433421','0878987665678',
  102. 'N','20160728000000','20160729000000',0,'20160713000000',
  103. 'fitri','20160714000000','Nofi')
  104. 2016-08-29 15:57:25.242 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:167 - Done executing SQL scriptBuilder from class path resource [scripts/TestGetVehicleList.sql] in 4 ms.
  105. Hibernate: SELECT A.vehicle_code, A.license_no, A.owner_name, A.chassis_no, A.engine_no, A.vehicle_group_code, B.vehicle_group_name, A.vehicle_type_code, C.vehicle_type_name, A.year_made, A.customer_name, A.address1, A.address2, A.address3, A.phone1, A.phone2, A.active, A.version FROM m_vehicle A JOIN m_vehicle_group B ON A.vehicle_group_code = B.vehicle_group_code JOIN m_vehicle_type C ON A.vehicle_type_code = C.vehicle_type_code WHERE true AND ( UPPER( A.owner_name ) like '%YMH%' OR UPPER( A.license_no ) like '%YMH%' OR UPPER( A.customer_name ) like '%YMH%' ) AND UPPER(A.active) = 'N' ORDER BY A.vehicle_code ASC LIMIT 1 OFFSET 0
  106. 2016-08-29 15:57:25.246 [DEBUG] org.jleaf.pos2.test.vehicle.TestGetVehicleList:132 - List :[]
  107. Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.294 sec <<< FAILURE! - in org.jleaf.pos2.test.vehicle.TestGetVehicleList
  108. TestGetListIfKeyword(org.jleaf.pos2.test.vehicle.TestGetVehicleList) Time elapsed: 0.027 sec <<< ERROR!
  109. java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  110. at java.util.ArrayList.RangeCheck(ArrayList.java:547)
  111. at java.util.ArrayList.get(ArrayList.java:322)
  112. at org.jleaf.pos2.test.vehicle.TestGetVehicleList.TestGetListIfKeyword(TestGetVehicleList.java:87)
  113.  
  114.  
  115. Results :
  116.  
  117. Tests in error:
  118. TestGetVehicleList.TestGetListIfKeyword:87 ยป IndexOutOfBounds Index: 0, Size: ...
  119.  
  120. Tests run: 3, Failures: 0, Errors: 1, Skipped: 0
  121.  
  122. [INFO] ------------------------------------------------------------------------
  123. [INFO] BUILD FAILURE
  124. [INFO] ------------------------------------------------------------------------
  125. [INFO] Total time: 21.948s
  126. [INFO] Finished at: Mon Aug 29 15:57:26 WIT 2016
  127. [INFO] Final Memory: 17M/213M
  128. [INFO] ------------------------------------------------------------------------
  129. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.16:test (default-test) on project master-bo: There are test failures.
  130. [ERROR]
  131. [ERROR] Please refer to /home/sts/workspace/master-bo-vehicle2/target/surefire-reports for the individual test results.
  132. [ERROR] -> [Help 1]
  133. [ERROR]
  134. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  135. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  136. [ERROR]
  137. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  138. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  139. sts@anjar:~/workspace/master-bo-vehicle2$
Advertisement
Add Comment
Please, Sign In to add comment