| java_library( |
| name = 'testutil', |
| srcs = [ |
| 'FakeStep.java', |
| 'TestExecutionContext.java', |
| ], |
| deps = [ |
| '//lib:guava', |
| '//src/com/facebook/buck/event:event', |
| '//src/com/facebook/buck/step:step', |
| '//src/com/facebook/buck/util:io', |
| '//src/com/facebook/buck/util/environment:environment', |
| '//test/com/facebook/buck/event:testutil', |
| '//test/com/facebook/buck/testutil:testutil', |
| ], |
| visibility = [ |
| '//test/...', |
| ], |
| ) |
| |
| |
| java_test( |
| name = 'step', |
| srcs = glob(['*Test.java']), |
| source_under_test = [ |
| '//src/com/facebook/buck/step:step', |
| ], |
| deps = [ |
| ':testutil', |
| '//lib:easymock', |
| '//lib:guava', |
| '//lib:junit', |
| '//src/com/facebook/buck/event:event', |
| '//src/com/facebook/buck/step:step', |
| '//src/com/facebook/buck/util:io', |
| '//src/com/facebook/buck/util:util', |
| '//src/com/facebook/buck/util/environment:environment', |
| '//test/com/facebook/buck/event:testutil', |
| '//test/com/facebook/buck/testutil:testutil', |
| '//test/com/facebook/buck/timing:testutil', |
| ], |
| ) |