| STANDARD_TEST_SRCS = [ |
| '*Test.java', |
| ] |
| |
| java_library( |
| name = 'testutil', |
| srcs = glob(['*.java'], excludes = STANDARD_TEST_SRCS), |
| deps = [ |
| '//src/com/facebook/buck/io:io', |
| '//src/com/facebook/buck/util:io', |
| '//src/com/facebook/buck/util:util', |
| '//third-party/java/guava:guava', |
| '//third-party/java/jsr:jsr305', |
| ], |
| visibility = [ |
| 'PUBLIC', |
| ], |
| ) |
| |
| java_test( |
| name = 'util', |
| srcs = glob(STANDARD_TEST_SRCS), |
| source_under_test = [ |
| '//src/com/facebook/buck/util:constants', |
| '//src/com/facebook/buck/util:exceptions', |
| '//src/com/facebook/buck/util:io', |
| '//src/com/facebook/buck/util:network', |
| '//src/com/facebook/buck/util:util', |
| ], |
| deps = [ |
| ':testutil', |
| '//src/com/facebook/buck/io:io', |
| '//src/com/facebook/buck/timing:timing', |
| '//src/com/facebook/buck/util:exceptions', |
| '//src/com/facebook/buck/util:io', |
| '//src/com/facebook/buck/util:network', |
| '//src/com/facebook/buck/util:util', |
| '//src/com/facebook/buck/util/environment:platform', |
| '//test/com/facebook/buck/timing:testutil', |
| '//test/com/facebook/buck/testutil:testutil', |
| '//test/com/facebook/buck/testutil/integration:integration', |
| '//third-party/java/easymock:easymock', |
| '//third-party/java/guava:guava', |
| '//third-party/java/hamcrest:hamcrest-core', |
| '//third-party/java/hamcrest:hamcrest-library', |
| '//third-party/java/jackson:jackson-core', |
| '//third-party/java/jackson:jackson-databind', |
| '//third-party/java/junit:junit', |
| '//third-party/java/commons-compress:commons-compress', |
| ], |
| ) |