diff options
author | Jenkins CI <ci@sonarsource.com> | 2015-03-18 09:37:34 +0100 |
---|---|---|
committer | Jenkins CI <ci@sonarsource.com> | 2015-03-18 09:37:34 +0100 |
commit | 82559b6218822b7a1e4f63aa50aec1cd8e7e5272 (patch) | |
tree | 2577de62fb91dd8d9511762ead12b370c5dbe4a7 /sonar-core/src/test/resources | |
parent | 8f376a0a64dac99cfddfafcded66445997a65670 (diff) | |
parent | a17301de1b5050815a9219003f138330ffc707bb (diff) | |
download | sonarqube-82559b6218822b7a1e4f63aa50aec1cd8e7e5272.tar.gz sonarqube-82559b6218822b7a1e4f63aa50aec1cd8e7e5272.zip |
Automatic merge from branch-5.1
* origin/branch-5.1:
Batch should set updated date to 0 on updated sources and Compute should update this sources for current project
improve significantly memore consumption while using a disk cache
catch Throwable instead of Exception in Computation threads
Diffstat (limited to 'sonar-core/src/test/resources')
2 files changed, 34 insertions, 0 deletions
diff --git a/sonar-core/src/test/resources/org/sonar/core/source/db/FileSourceDaoTest/update_date_when_updated_date_is_zero-result.xml b/sonar-core/src/test/resources/org/sonar/core/source/db/FileSourceDaoTest/update_date_when_updated_date_is_zero-result.xml new file mode 100644 index 00000000000..931bab04e18 --- /dev/null +++ b/sonar-core/src/test/resources/org/sonar/core/source/db/FileSourceDaoTest/update_date_when_updated_date_is_zero-result.xml @@ -0,0 +1,18 @@ +<dataset> + + <!-- Updated --> + <file_sources id="101" project_uuid="ABCD" file_uuid="FILE1_UUID" + binary_data="abcde" data_hash="hash" line_hashes="ABC\nDEF\nGHI" src_hash="FILE_HASH" + created_at="1500000000000" updated_at="1500000000002"/> + + <!-- Not updated because updated_at is not null --> + <file_sources id="102" project_uuid="ABCD" file_uuid="FILE2_UUID" + binary_data="abcde" data_hash="hash" line_hashes="ABC\nDEF\nGHI" src_hash="FILE_HASH" + created_at="1500000000000" updated_at="1500000000000"/> + + <!-- Not updated because on another project --> + <file_sources id="103" project_uuid="BCDE" file_uuid="FILE3_UUID" + binary_data="abcde" data_hash="hash" line_hashes="ABC\nDEF\nGHI" src_hash="FILE_HASH" + created_at="1500000000000" updated_at="0"/> + +</dataset> diff --git a/sonar-core/src/test/resources/org/sonar/core/source/db/FileSourceDaoTest/update_date_when_updated_date_is_zero.xml b/sonar-core/src/test/resources/org/sonar/core/source/db/FileSourceDaoTest/update_date_when_updated_date_is_zero.xml new file mode 100644 index 00000000000..9782d5c3837 --- /dev/null +++ b/sonar-core/src/test/resources/org/sonar/core/source/db/FileSourceDaoTest/update_date_when_updated_date_is_zero.xml @@ -0,0 +1,16 @@ +<dataset> + + <!-- Only this source should be updated --> + <file_sources id="101" project_uuid="ABCD" file_uuid="FILE1_UUID" + binary_data="abcde" data_hash="hash" line_hashes="ABC\nDEF\nGHI" src_hash="FILE_HASH" + created_at="1500000000000" updated_at="0"/> + + <file_sources id="102" project_uuid="ABCD" file_uuid="FILE2_UUID" + binary_data="abcde" data_hash="hash" line_hashes="ABC\nDEF\nGHI" src_hash="FILE_HASH" + created_at="1500000000000" updated_at="1500000000000"/> + + <file_sources id="103" project_uuid="BCDE" file_uuid="FILE3_UUID" + binary_data="abcde" data_hash="hash" line_hashes="ABC\nDEF\nGHI" src_hash="FILE_HASH" + created_at="1500000000000" updated_at="0"/> + +</dataset> |