1# Copyright (C) 2022 The Dagger Authors. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15# Description: 16# Functional tests for Dagger builders 17 18load("//:build_defs.bzl", "DOCLINT_HTML_AND_SYNTAX") 19load("//:test_defs.bzl", "GenKtTests") 20 21package(default_visibility = ["//:src"]) 22 23GenKtTests( 24 name = "BuilderBindsInstanceParameterTest", 25 srcs = ["BuilderBindsInstanceParameterTest.kt"], 26 javacopts = DOCLINT_HTML_AND_SYNTAX, 27 test_only_deps = [ 28 "//third_party/java/guava/base", 29 "//third_party/java/guava/collect", 30 "//third_party/java/guava:testlib", 31 "//third_party/java/truth", 32 "//third_party/java/junit", 33 "//:dagger_with_compiler", 34 ], 35 deps = [], 36) 37 38GenKtTests( 39 name = "BuilderTest", 40 srcs = ["BuilderTest.kt"], 41 javacopts = DOCLINT_HTML_AND_SYNTAX, 42 test_only_deps = [ 43 "//third_party/java/guava/base", 44 "//third_party/java/guava/collect", 45 "//third_party/java/guava:testlib", 46 "//third_party/java/truth", 47 "//third_party/java/junit", 48 "//:dagger_with_compiler", 49 ], 50 deps = [], 51) 52 53GenKtTests( 54 name = "PrivateConstructorsTest", 55 srcs = ["PrivateConstructorsTest.kt"], 56 javacopts = DOCLINT_HTML_AND_SYNTAX, 57 test_only_deps = [ 58 "//third_party/java/guava/base", 59 "//third_party/java/guava/collect", 60 "//third_party/java/guava:testlib", 61 "//third_party/java/truth", 62 "//third_party/java/junit", 63 "//:dagger_with_compiler", 64 ], 65 deps = [], 66) 67 68GenKtTests( 69 name = "BuildMethodCovariantReturnTest", 70 srcs = ["BuildMethodCovariantReturnTest.kt"], 71 javacopts = DOCLINT_HTML_AND_SYNTAX, 72 test_only_deps = [ 73 "//third_party/java/guava/base", 74 "//third_party/java/guava/collect", 75 "//third_party/java/guava:testlib", 76 "//third_party/java/truth", 77 "//third_party/java/junit", 78 "//:dagger_with_compiler", 79 ], 80 deps = [], 81) 82 83GenKtTests( 84 name = "BuildMethodCovariantReturnInheritedTest", 85 srcs = ["BuildMethodCovariantReturnInheritedTest.kt"], 86 javacopts = DOCLINT_HTML_AND_SYNTAX, 87 test_only_deps = [ 88 "//third_party/java/guava/base", 89 "//third_party/java/guava/collect", 90 "//third_party/java/guava:testlib", 91 "//third_party/java/truth", 92 "//third_party/java/junit", 93 "//:dagger_with_compiler", 94 ], 95 deps = [], 96) 97