Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- T E S T S
- -------------------------------------------------------
- Running org.jleaf.pos2.test.vehicle.TestGetVehicleList
- 2016-08-29 15:57:23.295 [WARN] org.jleaf.common.bo.realm.RealmActiveDirectory:48 - Activate Realm LDAP without any configuration
- 2016-08-29 15:57:25.125 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 0 rows from table m_vehicle
- 2016-08-29 15:57:25.127 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table m_vehicle_group
- 2016-08-29 15:57:25.130 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table m_vehicle_type
- 2016-08-29 15:57:25.131 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:133 - Executing SQL script from class path resource [scripts/TestGetVehicleList.sql]
- 2016-08-29 15:57:25.138 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 3 rows affected by SQL: INSERT INTO m_vehicle(
- vehicle_code,license_no, owner_name, chassis_no,
- engine_no, vehicle_group_code,
- vehicle_type_code, year_made, customer_name,
- address1, address2, address3, phone1,phone2,
- active, active_datetime, non_active_datetime,
- version, create_datetime,
- create_username, update_datetime, update_username)
- VALUES ('HND','H 6634 SS','Mail','222-442-2442-244',
- '123-432-1234-201','PBD',
- 'MTR','2016','Rika',
- 'Boja','Mijen','Ngaliyan','087865433421','0878987661234',
- 'Y','20160801000000','20160802000000',
- 0,'20160804000000',
- 'Nurfitria','20160805000000','Dewi'),
- ('YMH','H 2434 BP','juky','222-443-2443-245',
- '123-432-1234-202','KTR',
- 'MTR','2016','Ayu',
- 'gunung_pati','sedayu','Ngaliyan','087865466666','0878987669876',
- 'Y','20160728000000','20160713000000',0,'20160714000000',
- 'efa','20160714000000','tania'),
- ('DCY','DA 1987 BB','Bone','222-442-2442-246',
- '123-432-1234-201','PBD',
- 'MTR','2016','Rika',
- 'Boja','Mijen','Ngaliyan','087865433421','0878987665678',
- 'N','20160728000000','20160729000000',0,'20160713000000',
- 'fitri','20160714000000','Nofi')
- 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.
- 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
- 2016-08-29 15:57:25.189 [DEBUG] org.jleaf.pos2.test.vehicle.TestGetVehicleList:57 - List :[]
- 2016-08-29 15:57:25.205 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 0 rows from table m_vehicle
- 2016-08-29 15:57:25.208 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table m_vehicle_group
- 2016-08-29 15:57:25.210 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table m_vehicle_type
- 2016-08-29 15:57:25.211 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:133 - Executing SQL script from class path resource [scripts/TestGetVehicleList.sql]
- 2016-08-29 15:57:25.214 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 3 rows affected by SQL: INSERT INTO m_vehicle(
- vehicle_code,license_no, owner_name, chassis_no,
- engine_no, vehicle_group_code,
- vehicle_type_code, year_made, customer_name,
- address1, address2, address3, phone1,phone2,
- active, active_datetime, non_active_datetime,
- version, create_datetime,
- create_username, update_datetime, update_username)
- VALUES ('HND','H 6634 SS','Mail','222-442-2442-244',
- '123-432-1234-201','PBD',
- 'MTR','2016','Rika',
- 'Boja','Mijen','Ngaliyan','087865433421','0878987661234',
- 'Y','20160801000000','20160802000000',
- 0,'20160804000000',
- 'Nurfitria','20160805000000','Dewi'),
- ('YMH','H 2434 BP','juky','222-443-2443-245',
- '123-432-1234-202','KTR',
- 'MTR','2016','Ayu',
- 'gunung_pati','sedayu','Ngaliyan','087865466666','0878987669876',
- 'Y','20160728000000','20160713000000',0,'20160714000000',
- 'efa','20160714000000','tania'),
- ('DCY','DA 1987 BB','Bone','222-442-2442-246',
- '123-432-1234-201','PBD',
- 'MTR','2016','Rika',
- 'Boja','Mijen','Ngaliyan','087865433421','0878987665678',
- 'N','20160728000000','20160729000000',0,'20160713000000',
- 'fitri','20160714000000','Nofi')
- 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.
- 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
- 2016-08-29 15:57:25.221 [DEBUG] org.jleaf.pos2.test.vehicle.TestGetVehicleList:85 - List :[]
- 2016-08-29 15:57:25.233 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 0 rows from table m_vehicle
- 2016-08-29 15:57:25.235 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table m_vehicle_group
- 2016-08-29 15:57:25.237 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:71 - Deleted 2 rows from table m_vehicle_type
- 2016-08-29 15:57:25.238 [INFO] org.springframework.test.jdbc.SimpleJdbcTestUtils:133 - Executing SQL script from class path resource [scripts/TestGetVehicleList.sql]
- 2016-08-29 15:57:25.241 [DEBUG] org.springframework.test.jdbc.SimpleJdbcTestUtils:151 - 3 rows affected by SQL: INSERT INTO m_vehicle(
- vehicle_code,license_no, owner_name, chassis_no,
- engine_no, vehicle_group_code,
- vehicle_type_code, year_made, customer_name,
- address1, address2, address3, phone1,phone2,
- active, active_datetime, non_active_datetime,
- version, create_datetime,
- create_username, update_datetime, update_username)
- VALUES ('HND','H 6634 SS','Mail','222-442-2442-244',
- '123-432-1234-201','PBD',
- 'MTR','2016','Rika',
- 'Boja','Mijen','Ngaliyan','087865433421','0878987661234',
- 'Y','20160801000000','20160802000000',
- 0,'20160804000000',
- 'Nurfitria','20160805000000','Dewi'),
- ('YMH','H 2434 BP','juky','222-443-2443-245',
- '123-432-1234-202','KTR',
- 'MTR','2016','Ayu',
- 'gunung_pati','sedayu','Ngaliyan','087865466666','0878987669876',
- 'Y','20160728000000','20160713000000',0,'20160714000000',
- 'efa','20160714000000','tania'),
- ('DCY','DA 1987 BB','Bone','222-442-2442-246',
- '123-432-1234-201','PBD',
- 'MTR','2016','Rika',
- 'Boja','Mijen','Ngaliyan','087865433421','0878987665678',
- 'N','20160728000000','20160729000000',0,'20160713000000',
- 'fitri','20160714000000','Nofi')
- 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.
- 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
- 2016-08-29 15:57:25.246 [DEBUG] org.jleaf.pos2.test.vehicle.TestGetVehicleList:132 - List :[]
- Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.294 sec <<< FAILURE! - in org.jleaf.pos2.test.vehicle.TestGetVehicleList
- TestGetListIfKeyword(org.jleaf.pos2.test.vehicle.TestGetVehicleList) Time elapsed: 0.027 sec <<< ERROR!
- java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
- at java.util.ArrayList.RangeCheck(ArrayList.java:547)
- at java.util.ArrayList.get(ArrayList.java:322)
- at org.jleaf.pos2.test.vehicle.TestGetVehicleList.TestGetListIfKeyword(TestGetVehicleList.java:87)
- Results :
- Tests in error:
- TestGetVehicleList.TestGetListIfKeyword:87 ยป IndexOutOfBounds Index: 0, Size: ...
- Tests run: 3, Failures: 0, Errors: 1, Skipped: 0
- [INFO] ------------------------------------------------------------------------
- [INFO] BUILD FAILURE
- [INFO] ------------------------------------------------------------------------
- [INFO] Total time: 21.948s
- [INFO] Finished at: Mon Aug 29 15:57:26 WIT 2016
- [INFO] Final Memory: 17M/213M
- [INFO] ------------------------------------------------------------------------
- [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.
- [ERROR]
- [ERROR] Please refer to /home/sts/workspace/master-bo-vehicle2/target/surefire-reports for the individual test results.
- [ERROR] -> [Help 1]
- [ERROR]
- [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
- [ERROR] Re-run Maven using the -X switch to enable full debug logging.
- [ERROR]
- [ERROR] For more information about the errors and possible solutions, please read the following articles:
- [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
- sts@anjar:~/workspace/master-bo-vehicle2$
Advertisement
Add Comment
Please, Sign In to add comment