mirror of
https://github.com/google/nomulus.git
synced 2025-06-21 11:50:48 +02:00
Sometimes requests "die" suddenly, without going through catch/finally blocks. If this happens, any lock they own will remain locked until it times out (which can take hours in some cases). This cl implicitly unlocks any lock if the owner of the lock isn't running anymore. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=168880938
53 lines
1.5 KiB
Text
53 lines
1.5 KiB
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 = "model",
|
|
# There be circular dependencies down thar, so just have this
|
|
# BUILD file glob them in.
|
|
srcs = glob([
|
|
"*.java",
|
|
"**/*.java",
|
|
]),
|
|
resources = [
|
|
"schema.txt",
|
|
] + glob(["**/testdata/*.xml"]),
|
|
deps = [
|
|
"//java/google/registry/config",
|
|
"//java/google/registry/dns/writer",
|
|
"//java/google/registry/flows",
|
|
"//java/google/registry/model",
|
|
"//java/google/registry/monitoring/metrics/contrib",
|
|
"//java/google/registry/util",
|
|
"//java/google/registry/xml",
|
|
"//javatests/google/registry/testing",
|
|
"//javatests/google/registry/xml",
|
|
"//third_party/java/objectify:objectify-v4_1",
|
|
"@com_google_appengine_api_1_0_sdk//:testonly",
|
|
"@com_google_appengine_testing",
|
|
"@com_google_code_findbugs_jsr305",
|
|
"@com_google_guava",
|
|
"@com_google_guava_testlib",
|
|
"@com_google_truth",
|
|
"@joda_time",
|
|
"@junit",
|
|
"@org_joda_money",
|
|
"@org_mockito_all",
|
|
],
|
|
)
|
|
|
|
GenTestRules(
|
|
name = "GeneratedTestRules",
|
|
medium_tests = ["registry/label/PremiumListTest"],
|
|
test_files = glob([
|
|
"*Test.java",
|
|
"**/*Test.java",
|
|
]),
|
|
deps = [":model"],
|
|
)
|