xref: /aosp_15_r20/external/dagger2/javatests/dagger/functional/kotlinsrc/assisted/BUILD (revision f585d8a307d0621d6060bd7e80091fdcbf94fe27)
1# Copyright (C) 2023 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
17
18load("//:build_defs.bzl", "DOCLINT_HTML_AND_SYNTAX")
19load("//:test_defs.bzl", "GenKtTests")
20
21package(default_visibility = ["//:src"])
22
23GenKtTests(
24    name = "AssistedFactoryAsQualifiedBindingTest",
25    srcs = ["AssistedFactoryAsQualifiedBindingTest.kt"],
26    javacopts = DOCLINT_HTML_AND_SYNTAX,
27    test_only_deps = [
28        "//:dagger_with_compiler",
29        "//third_party/java/truth",
30        "//third_party/java/junit",
31    ],
32)
33
34GenKtTests(
35    name = "AssistedFactoryBindsTest",
36    srcs = ["AssistedFactoryBindsTest.kt"],
37    javacopts = DOCLINT_HTML_AND_SYNTAX,
38    test_only_deps = [
39        "//:dagger_with_compiler",
40        "//third_party/java/truth",
41        "//third_party/java/junit",
42    ],
43)
44
45GenKtTests(
46    name = "AssistedFactoryDuplicatedParamNamesTest",
47    srcs = ["AssistedFactoryDuplicatedParamNamesTest.kt"],
48    javacopts = DOCLINT_HTML_AND_SYNTAX,
49    test_only_deps = [
50        "//:dagger_with_compiler",
51        "//third_party/java/truth",
52        "//third_party/java/junit",
53    ],
54)
55
56GenKtTests(
57    name = "AssistedFactoryInaccessibleTest",
58    srcs = ["AssistedFactoryInaccessibleTest.kt"],
59    gen_library_deps = [
60        "//javatests/dagger/functional/kotlinsrc/assisted/subpackage",
61    ],
62    javacopts = DOCLINT_HTML_AND_SYNTAX,
63    test_only_deps = [
64        "//:dagger_with_compiler",
65        "//third_party/java/truth",
66        "//third_party/java/junit",
67    ],
68)
69
70GenKtTests(
71    name = "AssistedFactoryParameterizedTest",
72    srcs = ["AssistedFactoryParameterizedTest.kt"],
73    javacopts = DOCLINT_HTML_AND_SYNTAX,
74    test_only_deps = [
75        "//:dagger_with_compiler",
76        "//third_party/java/truth",
77        "//third_party/java/junit",
78    ],
79)
80
81GenKtTests(
82    name = "AssistedFactoryTest",
83    srcs = ["AssistedFactoryTest.kt"],
84    javacopts = DOCLINT_HTML_AND_SYNTAX,
85    test_only_deps = [
86        "//:dagger_with_compiler",
87        "//third_party/java/truth",
88        "//third_party/java/junit",
89    ],
90)
91
92GenKtTests(
93    name = "AssistedFactoryWithArrayTypesTest",
94    srcs = ["AssistedFactoryWithArrayTypesTest.kt"],
95    javacopts = DOCLINT_HTML_AND_SYNTAX,
96    test_only_deps = [
97        "//:dagger_with_compiler",
98        "//third_party/java/truth",
99        "//third_party/java/junit",
100    ],
101)
102
103GenKtTests(
104    name = "AssistedFactoryWithAssistedInjectParamTest",
105    srcs = ["AssistedFactoryWithAssistedInjectParamTest.kt"],
106    javacopts = DOCLINT_HTML_AND_SYNTAX,
107    test_only_deps = [
108        "//:dagger_with_compiler",
109        "//third_party/java/truth",
110        "//third_party/java/junit",
111    ],
112)
113
114GenKtTests(
115    name = "AssistedFactoryWithMultibindingsTest",
116    srcs = ["AssistedFactoryWithMultibindingsTest.kt"],
117    javacopts = DOCLINT_HTML_AND_SYNTAX,
118    test_only_deps = [
119        "//:dagger_with_compiler",
120        "//third_party/java/truth",
121        "//third_party/java/junit",
122    ],
123)
124
125GenKtTests(
126    name = "AssistedFactoryWithQualifiedTypesTest",
127    srcs = ["AssistedFactoryWithQualifiedTypesTest.kt"],
128    javacopts = DOCLINT_HTML_AND_SYNTAX,
129    test_only_deps = [
130        "//:dagger_with_compiler",
131        "//third_party/java/truth",
132        "//third_party/java/junit",
133    ],
134)
135
136GenKtTests(
137    name = "AssistedFactoryWithJavaKeyWordNamesTest",
138    srcs = ["AssistedFactoryWithJavaKeyWordNamesTest.kt"],
139    javacopts = DOCLINT_HTML_AND_SYNTAX,
140    test_only_deps = [
141        "//:dagger_with_compiler",
142        "//third_party/java/truth",
143        "//third_party/java/junit",
144    ],
145)
146