mirror of
https://github.com/google/nomulus.git
synced 2025-07-10 05:03:24 +02:00
Currently to assert that a given Metric<Distribution> as a certain distribution for some labels, the caller needs to manually create an ImmutableDistribution and pass it to #hasValueForLabels method. With this change, an ImmutableSet of data points can be passed to #hasDataSetForLabels method. Also switched to use expectThrow backport from JUnit 4.13. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=173544521
30 lines
737 B
Text
30 lines
737 B
Text
package(
|
|
default_testonly = 1,
|
|
default_visibility = ["//java/google/registry:registry_project"],
|
|
)
|
|
|
|
licenses(["notice"]) # Apache 2.0
|
|
|
|
load("//java/com/google/testing/builddefs:GenTestRules.bzl", "GenTestRules")
|
|
|
|
java_library(
|
|
name = "contrib",
|
|
srcs = glob(["*.java"]),
|
|
deps = [
|
|
"//java/google/registry/monitoring/metrics",
|
|
"//java/google/registry/monitoring/metrics/contrib",
|
|
"//javatests/google/registry/testing",
|
|
"@com_google_guava",
|
|
"@com_google_truth",
|
|
"@com_google_truth_extensions_truth_java8_extension",
|
|
"@junit",
|
|
],
|
|
)
|
|
|
|
GenTestRules(
|
|
name = "GeneratedTestRules",
|
|
test_files = glob(["*Test.java"]),
|
|
deps = [
|
|
":contrib",
|
|
],
|
|
)
|