Skip to content

Commit

Permalink
Tests are aware about @jakarta.inject.Inject output now
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Jan 27, 2025
1 parent ac55d9e commit 4f887db
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class CompileTests extends CompileTestsSupport {
"type arguments [NotActor] do not conform to macro method wireActor's type parameter bounds [T <: akka.actor.Actor]"
),
"wireProps-11-toManyInjectAnnotations" -> List(
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActor]"
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActor]"
),
"wireAnonymousActor-11-toManyInjectAnnotations" -> List(
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActor]"
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActor]"
),
"wireActor-11-toManyInjectAnnotations" -> List(
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActor]"
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActor]"
),
"wireProps-12-noPublicConstructor" -> List("Cannot find a public constructor for [SomeActor]"),
"wireAnonymousActor-12-noPublicConstructor" -> List("Cannot find a public constructor for [SomeActor]"),
Expand All @@ -54,7 +54,7 @@ class CompileTests extends CompileTestsSupport {
"wireActorWithProducer-6-injectAnnotationButNoDependencyInScope" -> List("Cannot find a value of type: [C]"),
"wireActorWithProducer-7-notActorProducer" -> List("wireActorWith does not support the type: [NotProducer]"),
"wireActorWithProducer-11-toManyInjectAnnotations" -> List(
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActorProducer]"
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActorProducer]"
),
"wireActorWithProducer-12-noPublicConstructor" -> List(
"Cannot find a public constructor for [SomeActorProducer]"
Expand All @@ -76,7 +76,7 @@ class CompileTests extends CompileTestsSupport {
"wireAnonymousActorWith does not support the type: [NotProducer]"
),
"wireAnonymousActorWithProducer-11-toManyInjectAnnotations" -> List(
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActorProducer]"
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActorProducer]"
),
"wireAnonymousActorWithProducer-12-noPublicConstructor" -> List(
"Cannot find a public constructor for [SomeActorProducer]"
Expand All @@ -96,7 +96,7 @@ class CompileTests extends CompileTestsSupport {
"wirePropsWithProducer-6-injectAnnotationButNoDependencyInScope" -> List("Cannot find a value of type: [C]"),
"wirePropsWithProducer-7-notActorProducer" -> List("wirePropsWith does not support the type: [NotProducer]"),
"wirePropsWithProducer-11-toManyInjectAnnotations" -> List(
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActorProducer]"
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActorProducer]"
),
"wirePropsWithProducer-12-noPublicConstructor" -> List(
"Cannot find a public constructor for [SomeActorProducer]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class CompileTests extends CompileTestsSupport {
"type arguments [NotActor] do not conform to macro method wireActor's type parameter bounds [T <: org.apache.pekko.actor.Actor]"
),
"wireProps-11-toManyInjectAnnotations" -> List(
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActor]"
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActor]"
),
"wireAnonymousActor-11-toManyInjectAnnotations" -> List(
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActor]"
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActor]"
),
"wireActor-11-toManyInjectAnnotations" -> List(
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActor]"
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActor]"
),
"wireProps-12-noPublicConstructor" -> List("Cannot find a public constructor for [SomeActor]"),
"wireAnonymousActor-12-noPublicConstructor" -> List("Cannot find a public constructor for [SomeActor]"),
Expand All @@ -54,7 +54,7 @@ class CompileTests extends CompileTestsSupport {
"wireActorWithProducer-6-injectAnnotationButNoDependencyInScope" -> List("Cannot find a value of type: [C]"),
"wireActorWithProducer-7-notActorProducer" -> List("wireActorWith does not support the type: [NotProducer]"),
"wireActorWithProducer-11-toManyInjectAnnotations" -> List(
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActorProducer]"
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActorProducer]"
),
"wireActorWithProducer-12-noPublicConstructor" -> List(
"Cannot find a public constructor for [SomeActorProducer]"
Expand All @@ -76,7 +76,7 @@ class CompileTests extends CompileTestsSupport {
"wireAnonymousActorWith does not support the type: [NotProducer]"
),
"wireAnonymousActorWithProducer-11-toManyInjectAnnotations" -> List(
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActorProducer]"
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActorProducer]"
),
"wireAnonymousActorWithProducer-12-noPublicConstructor" -> List(
"Cannot find a public constructor for [SomeActorProducer]"
Expand All @@ -96,7 +96,7 @@ class CompileTests extends CompileTestsSupport {
"wirePropsWithProducer-6-injectAnnotationButNoDependencyInScope" -> List("Cannot find a value of type: [C]"),
"wirePropsWithProducer-7-notActorProducer" -> List("wirePropsWith does not support the type: [NotProducer]"),
"wirePropsWithProducer-11-toManyInjectAnnotations" -> List(
"Ambiguous constructors annotated with @javax.inject.Inject for type [SomeActorProducer]"
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [SomeActorProducer]"
),
"wirePropsWithProducer-12-noPublicConstructor" -> List(
"Cannot find a public constructor for [SomeActorProducer]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ class CompileTests extends CompileTestsSupport {
"Companion object for",
"Target] has no apply methods constructing target type."
),
"toManyInjectAnnotations" -> List("Ambiguous constructors annotated with @javax.inject.Inject for type [Target]"),
"toManyInjectAnnotations" -> List(
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [Target]"
),
"nullaryMethodUsedAsCandidate" -> List("Found multiple values of type [A]: [List(Module.foo(), a)]"),
"wireWithTwoParamsLists" -> List("found : A => (B => __wrapper$1", "required: ? => __wrapper$1"),
"wireRecEmptyString" -> List(valueNotFound("String"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class CompileTests extends CompileTestsSupport {
"has no apply methods constructing target type",
"[Target]"
),
"toManyInjectAnnotations" -> List("Ambiguous constructors annotated with @javax.inject.Inject for type [Target]"),
"toManyInjectAnnotations" -> List(
"Ambiguous constructors annotated with @javax.inject.Inject or @jakarta.inject.Inject for type [Target]"
),
"wireWithTwoParamsLists" -> List("Found: Main.A => Main.B => Main.Test.C", "Required: Any => Main.Test.C"),
"wireRecEmptyString" -> List(valueNotFound("String"))
)
Expand Down

0 comments on commit 4f887db

Please sign in to comment.