Skip to content

Commit 4f887db

Browse files
committed
Tests are aware about @jakarta.inject.Inject output now
1 parent ac55d9e commit 4f887db

File tree

4 files changed

+18
-14
lines changed

4 files changed

+18
-14
lines changed

macrosAkkaTests/src/test/scala/com/softwaremill/macwire/akkasupport/CompileTests.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class CompileTests extends CompileTestsSupport {
2828
"type arguments [NotActor] do not conform to macro method wireActor's type parameter bounds [T <: akka.actor.Actor]"
2929
),
3030
"wireProps-11-toManyInjectAnnotations" -> List(
31-
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActor]"
31+
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActor]"
3232
),
3333
"wireAnonymousActor-11-toManyInjectAnnotations" -> List(
34-
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActor]"
34+
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActor]"
3535
),
3636
"wireActor-11-toManyInjectAnnotations" -> List(
37-
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActor]"
37+
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActor]"
3838
),
3939
"wireProps-12-noPublicConstructor" -> List("Cannot find a public constructor for [SomeActor]"),
4040
"wireAnonymousActor-12-noPublicConstructor" -> List("Cannot find a public constructor for [SomeActor]"),
@@ -54,7 +54,7 @@ class CompileTests extends CompileTestsSupport {
5454
"wireActorWithProducer-6-injectAnnotationButNoDependencyInScope" -> List("Cannot find a value of type: [C]"),
5555
"wireActorWithProducer-7-notActorProducer" -> List("wireActorWith does not support the type: [NotProducer]"),
5656
"wireActorWithProducer-11-toManyInjectAnnotations" -> List(
57-
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActorProducer]"
57+
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActorProducer]"
5858
),
5959
"wireActorWithProducer-12-noPublicConstructor" -> List(
6060
"Cannot find a public constructor for [SomeActorProducer]"
@@ -76,7 +76,7 @@ class CompileTests extends CompileTestsSupport {
7676
"wireAnonymousActorWith does not support the type: [NotProducer]"
7777
),
7878
"wireAnonymousActorWithProducer-11-toManyInjectAnnotations" -> List(
79-
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActorProducer]"
79+
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActorProducer]"
8080
),
8181
"wireAnonymousActorWithProducer-12-noPublicConstructor" -> List(
8282
"Cannot find a public constructor for [SomeActorProducer]"
@@ -96,7 +96,7 @@ class CompileTests extends CompileTestsSupport {
9696
"wirePropsWithProducer-6-injectAnnotationButNoDependencyInScope" -> List("Cannot find a value of type: [C]"),
9797
"wirePropsWithProducer-7-notActorProducer" -> List("wirePropsWith does not support the type: [NotProducer]"),
9898
"wirePropsWithProducer-11-toManyInjectAnnotations" -> List(
99-
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActorProducer]"
99+
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActorProducer]"
100100
),
101101
"wirePropsWithProducer-12-noPublicConstructor" -> List(
102102
"Cannot find a public constructor for [SomeActorProducer]"

macrosPekkoTests/src/test/scala/com/softwaremill/macwire/pekkosupport/CompileTests.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class CompileTests extends CompileTestsSupport {
2828
"type arguments [NotActor] do not conform to macro method wireActor's type parameter bounds [T <: org.apache.pekko.actor.Actor]"
2929
),
3030
"wireProps-11-toManyInjectAnnotations" -> List(
31-
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActor]"
31+
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActor]"
3232
),
3333
"wireAnonymousActor-11-toManyInjectAnnotations" -> List(
34-
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActor]"
34+
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActor]"
3535
),
3636
"wireActor-11-toManyInjectAnnotations" -> List(
37-
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActor]"
37+
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActor]"
3838
),
3939
"wireProps-12-noPublicConstructor" -> List("Cannot find a public constructor for [SomeActor]"),
4040
"wireAnonymousActor-12-noPublicConstructor" -> List("Cannot find a public constructor for [SomeActor]"),
@@ -54,7 +54,7 @@ class CompileTests extends CompileTestsSupport {
5454
"wireActorWithProducer-6-injectAnnotationButNoDependencyInScope" -> List("Cannot find a value of type: [C]"),
5555
"wireActorWithProducer-7-notActorProducer" -> List("wireActorWith does not support the type: [NotProducer]"),
5656
"wireActorWithProducer-11-toManyInjectAnnotations" -> List(
57-
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActorProducer]"
57+
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActorProducer]"
5858
),
5959
"wireActorWithProducer-12-noPublicConstructor" -> List(
6060
"Cannot find a public constructor for [SomeActorProducer]"
@@ -76,7 +76,7 @@ class CompileTests extends CompileTestsSupport {
7676
"wireAnonymousActorWith does not support the type: [NotProducer]"
7777
),
7878
"wireAnonymousActorWithProducer-11-toManyInjectAnnotations" -> List(
79-
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActorProducer]"
79+
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActorProducer]"
8080
),
8181
"wireAnonymousActorWithProducer-12-noPublicConstructor" -> List(
8282
"Cannot find a public constructor for [SomeActorProducer]"
@@ -96,7 +96,7 @@ class CompileTests extends CompileTestsSupport {
9696
"wirePropsWithProducer-6-injectAnnotationButNoDependencyInScope" -> List("Cannot find a value of type: [C]"),
9797
"wirePropsWithProducer-7-notActorProducer" -> List("wirePropsWith does not support the type: [NotProducer]"),
9898
"wirePropsWithProducer-11-toManyInjectAnnotations" -> List(
99-
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActorProducer]"
99+
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActorProducer]"
100100
),
101101
"wirePropsWithProducer-12-noPublicConstructor" -> List(
102102
"Cannot find a public constructor for [SomeActorProducer]"

tests/src/test/scala-2/com/softwaremill/macwire/CompileTests.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ class CompileTests extends CompileTestsSupport {
3131
"Companion object for",
3232
"Target] has no apply methods constructing target type."
3333
),
34-
"toManyInjectAnnotations" -> List("Ambiguous constructors annotated with @javax.inject.Inject for type [Target]"),
34+
"toManyInjectAnnotations" -> List(
35+
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [Target]"
36+
),
3537
"nullaryMethodUsedAsCandidate" -> List("Found multiple values of type [A]: [List(Module.foo(), a)]"),
3638
"wireWithTwoParamsLists" -> List("found : A => (B => __wrapper$1", "required: ? => __wrapper$1"),
3739
"wireRecEmptyString" -> List(valueNotFound("String"))

tests/src/test/scala-3/com/softwaremill/macwire/CompileTests.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ class CompileTests extends CompileTestsSupport {
3333
"has no apply methods constructing target type",
3434
"[Target]"
3535
),
36-
"toManyInjectAnnotations" -> List("Ambiguous constructors annotated with @javax.inject.Inject for type [Target]"),
36+
"toManyInjectAnnotations" -> List(
37+
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [Target]"
38+
),
3739
"wireWithTwoParamsLists" -> List("Found: Main.A => Main.B => Main.Test.C", "Required: Any => Main.Test.C"),
3840
"wireRecEmptyString" -> List(valueNotFound("String"))
3941
)

0 commit comments

Comments
 (0)