mirror of
https://github.com/google/nomulus.git
synced 2025-05-02 04:57:51 +02:00
The ExpectedException @Rule does not appear to be be able to catch AssertionError in the version of JUnit we're tracking in the open source world. This caused the expected exceptions to get passed through and treated as failures. The solution is to just use our forked version of ExpectedException, which is ExceptionRule. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=128988393
34 lines
903 B
Text
34 lines
903 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 = "xml",
|
|
srcs = glob(["*.java"]),
|
|
resources = glob(["testdata/*.xml"]),
|
|
deps = [
|
|
"//java/com/google/common/base",
|
|
"//java/com/google/common/collect",
|
|
"//java/com/google/common/net",
|
|
"//third_party/java/joda_time",
|
|
"//third_party/java/json",
|
|
"//third_party/java/jsr305_annotations",
|
|
"//third_party/java/junit",
|
|
"//third_party/java/truth",
|
|
"//java/google/registry/util",
|
|
"//java/google/registry/xml",
|
|
"//javatests/google/registry/testing",
|
|
],
|
|
)
|
|
|
|
GenTestRules(
|
|
name = "GeneratedTestRules",
|
|
test_files = glob(["*Test.java"]),
|
|
deps = [":xml"],
|
|
)
|