mirror of
https://github.com/google/nomulus
synced 2026-01-06 13:36:48 +00: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
35 lines
903 B
Python
35 lines
903 B
Python
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"],
|
|
)
|