You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tried to use java-test-fixtures plugin in project with dgs framework but it looks it is not working. It was working with version 5.5.3 (spring boot 2.7) of dgs framework but since 6 (spring boot 3) no.
I have simple spring boot project with dgs framework. I try to run a empty test but it threw exception with message:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dgsQueryExecutor' defined in class path resource [com/netflix/graphql/dgs/autoconfig/DgsAutoConfiguration.class]: Unsatisfied dependency expressed through method 'dgsQueryExecutor' parameter 1: Error creating bean with name 'schema' defined in class path resource [com/netflix/graphql/dgs/autoconfig/DgsAutoConfiguration.class]: Failed to instantiate [graphql.schema.GraphQLSchema]: Factory method 'schema' threw exception with message: errors=['SomeEntity' type [@1:1] tried to redefine existing 'SomeEntity' type [@1:1]]
My simple project: https://github.com/tomsvet/dgs_demo
My build.gradle.kts looks:
plugins {
id("org.springframework.boot") version "3.1.0" apply false
id("io.spring.dependency-management") version "1.1.0"
id("com.netflix.dgs.codegen") version "5.11.1" apply false
kotlin("jvm") version "1.8.21"
kotlin("plugin.spring") version "1.8.21"
id("java-test-fixtures")
}
group = "com.dgs.demo"
version = "0.0.1-SNAPSHOT"
java.sourceCompatibility = JavaVersion.VERSION_17
repositories {
mavenCentral()
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation(platform("com.netflix.graphql.dgs:graphql-dgs-platform-dependencies:latest.release"))
implementation("com.netflix.graphql.dgs:graphql-dgs-spring-boot-starter")
testImplementation("org.springframework.boot:spring-boot-starter-test")
}
When I removed java-test-fixtures test passed but I would like to use it. Do you know if it is possible to use it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I tried to use java-test-fixtures plugin in project with dgs framework but it looks it is not working. It was working with version 5.5.3 (spring boot 2.7) of dgs framework but since 6 (spring boot 3) no.
I have simple spring boot project with dgs framework. I try to run a empty test but it threw exception with message:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dgsQueryExecutor' defined in class path resource [com/netflix/graphql/dgs/autoconfig/DgsAutoConfiguration.class]: Unsatisfied dependency expressed through method 'dgsQueryExecutor' parameter 1: Error creating bean with name 'schema' defined in class path resource [com/netflix/graphql/dgs/autoconfig/DgsAutoConfiguration.class]: Failed to instantiate [graphql.schema.GraphQLSchema]: Factory method 'schema' threw exception with message: errors=['SomeEntity' type [@1:1] tried to redefine existing 'SomeEntity' type [@1:1]]
My simple project: https://github.com/tomsvet/dgs_demo
My build.gradle.kts looks:
When I removed
java-test-fixtures
test passed but I would like to use it. Do you know if it is possible to use it?Beta Was this translation helpful? Give feedback.
All reactions