xref: /aosp_15_r20/external/dagger2/javatests/dagger/functional/assisted/BUILD (revision f585d8a307d0621d6060bd7e80091fdcbf94fe27)
1# Copyright (C) 2020 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", "GenJavaTests")
20
21package(default_visibility = ["//:src"])
22
23GenJavaTests(
24    name = "AssistedFactoryAsQualifiedBindingTest",
25    srcs = ["AssistedFactoryAsQualifiedBindingTest.java"],
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
34GenJavaTests(
35    name = "AssistedFactoryBindsTest",
36    srcs = ["AssistedFactoryBindsTest.java"],
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
45GenJavaTests(
46    name = "AssistedFactoryDuplicatedParamNamesTest",
47    srcs = ["AssistedFactoryDuplicatedParamNamesTest.java"],
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
56GenJavaTests(
57    name = "AssistedFactoryInaccessibleTest",
58    srcs = ["AssistedFactoryInaccessibleTest.java"],
59    javacopts = DOCLINT_HTML_AND_SYNTAX,
60    test_only_deps = [
61        "//:dagger_with_compiler",
62        "//third_party/java/truth",
63        "//third_party/java/junit",
64        "//javatests/dagger/functional/assisted/subpackage",
65    ],
66)
67
68GenJavaTests(
69    name = "AssistedFactoryParameterizedTest",
70    srcs = ["AssistedFactoryParameterizedTest.java"],
71    javacopts = DOCLINT_HTML_AND_SYNTAX,
72    test_only_deps = [
73        "//:dagger_with_compiler",
74        "//third_party/java/truth",
75        "//third_party/java/junit",
76    ],
77)
78
79GenJavaTests(
80    name = "AssistedFactoryTest",
81    srcs = ["AssistedFactoryTest.java"],
82    javacopts = DOCLINT_HTML_AND_SYNTAX,
83    test_only_deps = [
84        "//:dagger_with_compiler",
85        "//third_party/java/truth",
86        "//third_party/java/junit",
87    ],
88)
89
90GenJavaTests(
91    name = "AssistedFactoryWithArrayTypesTest",
92    srcs = ["AssistedFactoryWithArrayTypesTest.java"],
93    javacopts = DOCLINT_HTML_AND_SYNTAX,
94    test_only_deps = [
95        "//:dagger_with_compiler",
96        "//third_party/java/truth",
97        "//third_party/java/junit",
98    ],
99)
100
101GenJavaTests(
102    name = "AssistedFactoryWithAssistedInjectParamTest",
103    srcs = ["AssistedFactoryWithAssistedInjectParamTest.java"],
104    javacopts = DOCLINT_HTML_AND_SYNTAX,
105    test_only_deps = [
106        "//:dagger_with_compiler",
107        "//third_party/java/truth",
108        "//third_party/java/junit",
109    ],
110)
111
112GenJavaTests(
113    name = "AssistedFactoryWithMultibindingsTest",
114    srcs = ["AssistedFactoryWithMultibindingsTest.java"],
115    javacopts = DOCLINT_HTML_AND_SYNTAX,
116    test_only_deps = [
117        "//:dagger_with_compiler",
118        "//third_party/java/truth",
119        "//third_party/java/junit",
120    ],
121)
122
123GenJavaTests(
124    name = "AssistedFactoryWithQualifiedTypesTest",
125    srcs = ["AssistedFactoryWithQualifiedTypesTest.java"],
126    javacopts = DOCLINT_HTML_AND_SYNTAX,
127    test_only_deps = [
128        "//:dagger_with_compiler",
129        "//third_party/java/truth",
130        "//third_party/java/junit",
131    ],
132)
133