Make tests runnable with Buck/OSS again

Summary:
Fixes test execution for open source:

- adds hamcrest jar and dependency, as required by buck (to not throw `"Unable to locate hamcrest on the classpath. Please add as a test dependency."`)
- enables events for OSS, to make tests pass

Reviewed By: SidharthGuglani

Differential Revision: D16202542

fbshipit-source-id: a56069de162f739b3b989961b5dc00f3d37f5849
This commit is contained in:
David Aurelio
2019-07-12 01:40:15 -07:00
committed by Facebook Github Bot
parent 39e512f691
commit 1d0668692b
3 changed files with 20 additions and 0 deletions

19
lib/hamcrest/BUCK Normal file
View File

@@ -0,0 +1,19 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
load("//tools/build_defs/oss:yoga_defs.bzl", "YOGA_ROOTS", "yoga_java_library", "yoga_prebuilt_jar")
yoga_prebuilt_jar(
name = "hamcrest-jar",
binary_jar = "hamcrest-2.1.jar",
)
yoga_java_library(
name = "hamcrest",
visibility = YOGA_ROOTS,
exported_deps = [
":hamcrest-jar",
],
)

Binary file not shown.