Allow tests to use hamcrest matchers directly
Break hamcrest-core out into a separate BUCK file, and add dependency on hamcrest-library, which is needed to be able to use the Matcher methods. Change-Id: I15919f674137ce7a50fde6e6ad3422f4887ea306
This commit is contained in:
parent
092cd6e536
commit
2efc3e7efb
@ -26,6 +26,8 @@ java_library(
|
||||
'//lib:junit',
|
||||
'//lib:servlet-api-3_1',
|
||||
|
||||
'//lib/hamcrest:hamcrest-core',
|
||||
'//lib/hamcrest:hamcrest-library',
|
||||
'//lib/httpcomponents:httpclient',
|
||||
'//lib/httpcomponents:httpcore',
|
||||
'//lib/log:impl_log4j',
|
||||
|
10
lib/BUCK
10
lib/BUCK
@ -174,15 +174,7 @@ maven_jar(
|
||||
id = 'junit:junit:4.11',
|
||||
sha1 = '4e031bb61df09069aeb2bffb4019e7a5034a4ee0',
|
||||
license = 'DO_NOT_DISTRIBUTE',
|
||||
deps = [':hamcrest-core'],
|
||||
)
|
||||
|
||||
maven_jar(
|
||||
name = 'hamcrest-core',
|
||||
id = 'org.hamcrest:hamcrest-core:1.3',
|
||||
sha1 = '42a25dc3219429f0e5d060061f71acb49bf010a0',
|
||||
license = 'DO_NOT_DISTRIBUTE',
|
||||
visibility = ['//lib:junit'],
|
||||
deps = ['//lib/hamcrest:hamcrest-core'],
|
||||
)
|
||||
|
||||
maven_jar(
|
||||
|
25
lib/hamcrest/BUCK
Normal file
25
lib/hamcrest/BUCK
Normal file
@ -0,0 +1,25 @@
|
||||
include_defs('//lib/maven.defs')
|
||||
|
||||
VERSION = '1.3'
|
||||
|
||||
maven_jar(
|
||||
name = 'hamcrest-core',
|
||||
id = 'org.hamcrest:hamcrest-core:' + VERSION,
|
||||
sha1 = '42a25dc3219429f0e5d060061f71acb49bf010a0',
|
||||
license = 'DO_NOT_DISTRIBUTE',
|
||||
visibility = [
|
||||
'//lib:junit',
|
||||
'//gerrit-acceptance-tests:lib'
|
||||
],
|
||||
)
|
||||
|
||||
maven_jar(
|
||||
name = 'hamcrest-library',
|
||||
id = 'org.hamcrest:hamcrest-library:' + VERSION,
|
||||
sha1 = '4785a3c21320980282f9f33d0d1264a69040538f',
|
||||
license = 'DO_NOT_DISTRIBUTE',
|
||||
visibility = [
|
||||
'//lib:junit',
|
||||
'//gerrit-acceptance-tests:lib'
|
||||
],
|
||||
)
|
Loading…
Reference in New Issue
Block a user