gradle acceptance test not including the dependenciesHow do you assert that a certain exception is thrown in JUnit 4 tests?How can I create an executable JAR with dependencies using Maven?Gradle build without testsHow can I force gradle to redownload dependencies?Android Studio: Add jar as library?What is Gradle in Android Studio?Using gradle to find dependency treeGradle test task testReport task - Deprecated properties with Gradle 2.3 / Java7 or Java8How to make multiple spring boot projects dependency work with Gradle?Gradle Error in contextLoads under test
Why are we moving in circles with a tandem kayak?
Patio gate not at right angle to the house
Should I put my name first or last in the team members list?
Why does the Rust compiler not optimize code assuming that two mutable references cannot alias?
Is it unprofessional to mention your cover letter and resume are best viewed in Chrome?
Can I shorten this filter, that finds disk sizes over 100G?
What is the oxidation state of Mn in HMn(CO)5?
How do I respond appropriately to an overseas company that obtained a visa for me without hiring me?
Was Donald Trump at ground zero helping out on 9-11?
How to innovate in OR
What force enables us to walk? Friction or normal reaction?
In the Schrödinger equation, can I have a Hamiltonian without a kinetic term?
Problem with Alignment of Tabular Data Using siunitx
What parameters are to be considered when choosing a MOSFET?
If the Moon were impacted by a suitably sized meteor, how long would it take to impact the Earth?
Should I intervene when a colleague in a different department makes students run laps as part of their grade?
Introduction to the Sicilian
What is my clock telling me to do?
Balancing Humanoid fantasy races: Elves
Why LOX/UDMH is not used in staged combustion rockets now-a-days? If there are any rockets with LOX/UDMH kindly mention them
Is it possible to tell if a child will turn into a Hag?
Can living where Rare Earth magnetic ore is abundant provide any protection?
How can you tell the version of Ubuntu on a system in a .sh (bash) script?
Applications of pure mathematics in operations research
gradle acceptance test not including the dependencies
How do you assert that a certain exception is thrown in JUnit 4 tests?How can I create an executable JAR with dependencies using Maven?Gradle build without testsHow can I force gradle to redownload dependencies?Android Studio: Add jar as library?What is Gradle in Android Studio?Using gradle to find dependency treeGradle test task testReport task - Deprecated properties with Gradle 2.3 / Java7 or Java8How to make multiple spring boot projects dependency work with Gradle?Gradle Error in contextLoads under test
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am writing simple rest service application using clean-architecture design by referring this
The application is running fine. But the acceptance test is not running fine. When I run the acceptance test I am getting no bean exception.
Here is project structure

Here is my build.gradle file at acceptance test module
description = "Acceptance Tests for the BDD cycle (objective: have conversaions and demonstrate requirements)"
test
// make gradle print the test result for each test in the build (we like to see the acceptance tests running)
testLogging
events "passed", "skipped", "failed"
// set the output folder for the acceptance tests that use yatspec, and print the full path after the test execution
systemProperty "yatspec.output.dir", "build/reports/yatspec"
doLast
println "==========================================================================================="
println "Acceptance tests output: $project.buildDir.absolutePath/reports/yatspec/com/span/budget"
println "==========================================================================================="
// we want to run the acceptance tests after the unit tests, to follow the testing pyramid
test.mustRunAfter(
":application:configuration:test",
":application:core:test",
":application:dataproviders:test",
":application:entrypoints:test"
)
// we must copy the h2-schema.sql script into the resources folder of this module in order for the tests
// to be able to create the in-memory database successfull when initialising the connection
task copyTestResources(type: Copy)
println "Copying resource"
from "$project(':application:dataproviders').buildDir/resources/main/h2-schema.sql"
into "$buildDir/resources/test"
processTestResources.dependsOn copyTestResources
dependencies
compile project(":application:configuration")
compile libs.unit_tests
compile libs.acceptance_tests
compile libs.end_to_end_test
testCompile libs.string_utils
As you see I am including compile project(":application:configuration") as dependencies. Inside the application configuration module I have all the bean configurations. See the configuration module structure below.

When I run the application by ./gradlew bootRun the application is getting wired properly. But when I run ./gradlew test system throws error saying that no qualifying bean found.
See the trace below.
$ ./gradlew test
> Configure project :acceptance-tests
Copying resource
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test NO-SOURCE
> Task :application:core:compileJava UP-TO-DATE
> Task :application:core:processResources NO-SOURCE
> Task :application:core:classes UP-TO-DATE
> Task :application:core:jar UP-TO-DATE
> Task :application:dataproviders:compileJava UP-TO-DATE
> Task :application:dataproviders:processResources UP-TO-DATE
> Task :application:dataproviders:classes UP-TO-DATE
> Task :application:dataproviders:jar UP-TO-DATE
> Task :application:entrypoints:compileJava UP-TO-DATE
> Task :application:entrypoints:processResources NO-SOURCE
> Task :application:entrypoints:classes UP-TO-DATE
> Task :application:entrypoints:jar UP-TO-DATE
> Task :application:configuration:compileJava UP-TO-DATE
> Task :application:configuration:processResources UP-TO-DATE
> Task :application:configuration:classes UP-TO-DATE
> Task :application:configuration:compileTestJava NO-SOURCE
> Task :application:configuration:processTestResources NO-SOURCE
> Task :application:configuration:testClasses UP-TO-DATE
> Task :application:configuration:test NO-SOURCE
> Task :application:core:compileTestJava UP-TO-DATE
> Task :application:core:processTestResources NO-SOURCE
> Task :application:core:testClasses UP-TO-DATE
> Task :application:core:test UP-TO-DATE
> Task :application:dataproviders:compileTestJava UP-TO-DATE
> Task :application:dataproviders:processTestResources NO-SOURCE
> Task :application:dataproviders:testClasses UP-TO-DATE
> Task :application:dataproviders:test UP-TO-DATE
> Task :application:entrypoints:compileTestJava UP-TO-DATE
> Task :application:entrypoints:processTestResources NO-SOURCE
> Task :application:entrypoints:testClasses UP-TO-DATE
> Task :application:entrypoints:test UP-TO-DATE
> Task :application:configuration:jar SKIPPED
> Task :acceptance-tests:compileJava UP-TO-DATE
> Task :acceptance-tests:processResources NO-SOURCE
> Task :acceptance-tests:classes UP-TO-DATE
> Task :acceptance-tests:compileTestJava
> Task :acceptance-tests:copyTestResources UP-TO-DATE
> Task :acceptance-tests:processTestResources NO-SOURCE
> Task :acceptance-tests:testClasses
> Task :acceptance-tests:test
com.span.budget.endtoend.transaction.getdetails.TransactionDetailsEndToEndTest > returnWelcomeMessage FAILED
org.springframework.beans.factory.UnsatisfiedDependencyException
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException
com.span.budget.endtoend.transaction.getdetails.TransactionDetailsEndToEndTest > returnTheDetailsOfTheTransaction FAILED
org.springframework.beans.factory.UnsatisfiedDependencyException
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException
com.span.budget.businessrequirements.transaction.getdetails.GetTransactionDetailsAcceptanceTest > returnTheDetailsOfTheTransaction PASSED
2019-03-27 05:47:48.649 INFO 6536 --- [ Thread-5] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3b21fe3b: startup date [Wed Mar 27 05:47:41 SGT 2019]; root of context hierarchy
2019-03-27 05:47:48.681 INFO 6536 --- [ Thread-5] o.s.j.d.e.EmbeddedDatabaseFactory : Shutting down embedded database: url='jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false'
3 tests completed, 2 failed
> Task :acceptance-tests:test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':acceptance-tests:test'.
> There were failing tests. See the report at: file:///C:/Rajesh/workspace/budget/acceptance-tests/build/reports/tests/test/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 13s
19 actionable tasks: 2 executed, 17 up-to-date
What I am doing wrong here? Any suggestions.
You can find the full code here
java spring-boot gradle clean-architecture
add a comment |
I am writing simple rest service application using clean-architecture design by referring this
The application is running fine. But the acceptance test is not running fine. When I run the acceptance test I am getting no bean exception.
Here is project structure

Here is my build.gradle file at acceptance test module
description = "Acceptance Tests for the BDD cycle (objective: have conversaions and demonstrate requirements)"
test
// make gradle print the test result for each test in the build (we like to see the acceptance tests running)
testLogging
events "passed", "skipped", "failed"
// set the output folder for the acceptance tests that use yatspec, and print the full path after the test execution
systemProperty "yatspec.output.dir", "build/reports/yatspec"
doLast
println "==========================================================================================="
println "Acceptance tests output: $project.buildDir.absolutePath/reports/yatspec/com/span/budget"
println "==========================================================================================="
// we want to run the acceptance tests after the unit tests, to follow the testing pyramid
test.mustRunAfter(
":application:configuration:test",
":application:core:test",
":application:dataproviders:test",
":application:entrypoints:test"
)
// we must copy the h2-schema.sql script into the resources folder of this module in order for the tests
// to be able to create the in-memory database successfull when initialising the connection
task copyTestResources(type: Copy)
println "Copying resource"
from "$project(':application:dataproviders').buildDir/resources/main/h2-schema.sql"
into "$buildDir/resources/test"
processTestResources.dependsOn copyTestResources
dependencies
compile project(":application:configuration")
compile libs.unit_tests
compile libs.acceptance_tests
compile libs.end_to_end_test
testCompile libs.string_utils
As you see I am including compile project(":application:configuration") as dependencies. Inside the application configuration module I have all the bean configurations. See the configuration module structure below.

When I run the application by ./gradlew bootRun the application is getting wired properly. But when I run ./gradlew test system throws error saying that no qualifying bean found.
See the trace below.
$ ./gradlew test
> Configure project :acceptance-tests
Copying resource
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test NO-SOURCE
> Task :application:core:compileJava UP-TO-DATE
> Task :application:core:processResources NO-SOURCE
> Task :application:core:classes UP-TO-DATE
> Task :application:core:jar UP-TO-DATE
> Task :application:dataproviders:compileJava UP-TO-DATE
> Task :application:dataproviders:processResources UP-TO-DATE
> Task :application:dataproviders:classes UP-TO-DATE
> Task :application:dataproviders:jar UP-TO-DATE
> Task :application:entrypoints:compileJava UP-TO-DATE
> Task :application:entrypoints:processResources NO-SOURCE
> Task :application:entrypoints:classes UP-TO-DATE
> Task :application:entrypoints:jar UP-TO-DATE
> Task :application:configuration:compileJava UP-TO-DATE
> Task :application:configuration:processResources UP-TO-DATE
> Task :application:configuration:classes UP-TO-DATE
> Task :application:configuration:compileTestJava NO-SOURCE
> Task :application:configuration:processTestResources NO-SOURCE
> Task :application:configuration:testClasses UP-TO-DATE
> Task :application:configuration:test NO-SOURCE
> Task :application:core:compileTestJava UP-TO-DATE
> Task :application:core:processTestResources NO-SOURCE
> Task :application:core:testClasses UP-TO-DATE
> Task :application:core:test UP-TO-DATE
> Task :application:dataproviders:compileTestJava UP-TO-DATE
> Task :application:dataproviders:processTestResources NO-SOURCE
> Task :application:dataproviders:testClasses UP-TO-DATE
> Task :application:dataproviders:test UP-TO-DATE
> Task :application:entrypoints:compileTestJava UP-TO-DATE
> Task :application:entrypoints:processTestResources NO-SOURCE
> Task :application:entrypoints:testClasses UP-TO-DATE
> Task :application:entrypoints:test UP-TO-DATE
> Task :application:configuration:jar SKIPPED
> Task :acceptance-tests:compileJava UP-TO-DATE
> Task :acceptance-tests:processResources NO-SOURCE
> Task :acceptance-tests:classes UP-TO-DATE
> Task :acceptance-tests:compileTestJava
> Task :acceptance-tests:copyTestResources UP-TO-DATE
> Task :acceptance-tests:processTestResources NO-SOURCE
> Task :acceptance-tests:testClasses
> Task :acceptance-tests:test
com.span.budget.endtoend.transaction.getdetails.TransactionDetailsEndToEndTest > returnWelcomeMessage FAILED
org.springframework.beans.factory.UnsatisfiedDependencyException
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException
com.span.budget.endtoend.transaction.getdetails.TransactionDetailsEndToEndTest > returnTheDetailsOfTheTransaction FAILED
org.springframework.beans.factory.UnsatisfiedDependencyException
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException
com.span.budget.businessrequirements.transaction.getdetails.GetTransactionDetailsAcceptanceTest > returnTheDetailsOfTheTransaction PASSED
2019-03-27 05:47:48.649 INFO 6536 --- [ Thread-5] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3b21fe3b: startup date [Wed Mar 27 05:47:41 SGT 2019]; root of context hierarchy
2019-03-27 05:47:48.681 INFO 6536 --- [ Thread-5] o.s.j.d.e.EmbeddedDatabaseFactory : Shutting down embedded database: url='jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false'
3 tests completed, 2 failed
> Task :acceptance-tests:test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':acceptance-tests:test'.
> There were failing tests. See the report at: file:///C:/Rajesh/workspace/budget/acceptance-tests/build/reports/tests/test/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 13s
19 actionable tasks: 2 executed, 17 up-to-date
What I am doing wrong here? Any suggestions.
You can find the full code here
java spring-boot gradle clean-architecture
add a comment |
I am writing simple rest service application using clean-architecture design by referring this
The application is running fine. But the acceptance test is not running fine. When I run the acceptance test I am getting no bean exception.
Here is project structure

Here is my build.gradle file at acceptance test module
description = "Acceptance Tests for the BDD cycle (objective: have conversaions and demonstrate requirements)"
test
// make gradle print the test result for each test in the build (we like to see the acceptance tests running)
testLogging
events "passed", "skipped", "failed"
// set the output folder for the acceptance tests that use yatspec, and print the full path after the test execution
systemProperty "yatspec.output.dir", "build/reports/yatspec"
doLast
println "==========================================================================================="
println "Acceptance tests output: $project.buildDir.absolutePath/reports/yatspec/com/span/budget"
println "==========================================================================================="
// we want to run the acceptance tests after the unit tests, to follow the testing pyramid
test.mustRunAfter(
":application:configuration:test",
":application:core:test",
":application:dataproviders:test",
":application:entrypoints:test"
)
// we must copy the h2-schema.sql script into the resources folder of this module in order for the tests
// to be able to create the in-memory database successfull when initialising the connection
task copyTestResources(type: Copy)
println "Copying resource"
from "$project(':application:dataproviders').buildDir/resources/main/h2-schema.sql"
into "$buildDir/resources/test"
processTestResources.dependsOn copyTestResources
dependencies
compile project(":application:configuration")
compile libs.unit_tests
compile libs.acceptance_tests
compile libs.end_to_end_test
testCompile libs.string_utils
As you see I am including compile project(":application:configuration") as dependencies. Inside the application configuration module I have all the bean configurations. See the configuration module structure below.

When I run the application by ./gradlew bootRun the application is getting wired properly. But when I run ./gradlew test system throws error saying that no qualifying bean found.
See the trace below.
$ ./gradlew test
> Configure project :acceptance-tests
Copying resource
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test NO-SOURCE
> Task :application:core:compileJava UP-TO-DATE
> Task :application:core:processResources NO-SOURCE
> Task :application:core:classes UP-TO-DATE
> Task :application:core:jar UP-TO-DATE
> Task :application:dataproviders:compileJava UP-TO-DATE
> Task :application:dataproviders:processResources UP-TO-DATE
> Task :application:dataproviders:classes UP-TO-DATE
> Task :application:dataproviders:jar UP-TO-DATE
> Task :application:entrypoints:compileJava UP-TO-DATE
> Task :application:entrypoints:processResources NO-SOURCE
> Task :application:entrypoints:classes UP-TO-DATE
> Task :application:entrypoints:jar UP-TO-DATE
> Task :application:configuration:compileJava UP-TO-DATE
> Task :application:configuration:processResources UP-TO-DATE
> Task :application:configuration:classes UP-TO-DATE
> Task :application:configuration:compileTestJava NO-SOURCE
> Task :application:configuration:processTestResources NO-SOURCE
> Task :application:configuration:testClasses UP-TO-DATE
> Task :application:configuration:test NO-SOURCE
> Task :application:core:compileTestJava UP-TO-DATE
> Task :application:core:processTestResources NO-SOURCE
> Task :application:core:testClasses UP-TO-DATE
> Task :application:core:test UP-TO-DATE
> Task :application:dataproviders:compileTestJava UP-TO-DATE
> Task :application:dataproviders:processTestResources NO-SOURCE
> Task :application:dataproviders:testClasses UP-TO-DATE
> Task :application:dataproviders:test UP-TO-DATE
> Task :application:entrypoints:compileTestJava UP-TO-DATE
> Task :application:entrypoints:processTestResources NO-SOURCE
> Task :application:entrypoints:testClasses UP-TO-DATE
> Task :application:entrypoints:test UP-TO-DATE
> Task :application:configuration:jar SKIPPED
> Task :acceptance-tests:compileJava UP-TO-DATE
> Task :acceptance-tests:processResources NO-SOURCE
> Task :acceptance-tests:classes UP-TO-DATE
> Task :acceptance-tests:compileTestJava
> Task :acceptance-tests:copyTestResources UP-TO-DATE
> Task :acceptance-tests:processTestResources NO-SOURCE
> Task :acceptance-tests:testClasses
> Task :acceptance-tests:test
com.span.budget.endtoend.transaction.getdetails.TransactionDetailsEndToEndTest > returnWelcomeMessage FAILED
org.springframework.beans.factory.UnsatisfiedDependencyException
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException
com.span.budget.endtoend.transaction.getdetails.TransactionDetailsEndToEndTest > returnTheDetailsOfTheTransaction FAILED
org.springframework.beans.factory.UnsatisfiedDependencyException
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException
com.span.budget.businessrequirements.transaction.getdetails.GetTransactionDetailsAcceptanceTest > returnTheDetailsOfTheTransaction PASSED
2019-03-27 05:47:48.649 INFO 6536 --- [ Thread-5] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3b21fe3b: startup date [Wed Mar 27 05:47:41 SGT 2019]; root of context hierarchy
2019-03-27 05:47:48.681 INFO 6536 --- [ Thread-5] o.s.j.d.e.EmbeddedDatabaseFactory : Shutting down embedded database: url='jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false'
3 tests completed, 2 failed
> Task :acceptance-tests:test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':acceptance-tests:test'.
> There were failing tests. See the report at: file:///C:/Rajesh/workspace/budget/acceptance-tests/build/reports/tests/test/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 13s
19 actionable tasks: 2 executed, 17 up-to-date
What I am doing wrong here? Any suggestions.
You can find the full code here
java spring-boot gradle clean-architecture
I am writing simple rest service application using clean-architecture design by referring this
The application is running fine. But the acceptance test is not running fine. When I run the acceptance test I am getting no bean exception.
Here is project structure

Here is my build.gradle file at acceptance test module
description = "Acceptance Tests for the BDD cycle (objective: have conversaions and demonstrate requirements)"
test
// make gradle print the test result for each test in the build (we like to see the acceptance tests running)
testLogging
events "passed", "skipped", "failed"
// set the output folder for the acceptance tests that use yatspec, and print the full path after the test execution
systemProperty "yatspec.output.dir", "build/reports/yatspec"
doLast
println "==========================================================================================="
println "Acceptance tests output: $project.buildDir.absolutePath/reports/yatspec/com/span/budget"
println "==========================================================================================="
// we want to run the acceptance tests after the unit tests, to follow the testing pyramid
test.mustRunAfter(
":application:configuration:test",
":application:core:test",
":application:dataproviders:test",
":application:entrypoints:test"
)
// we must copy the h2-schema.sql script into the resources folder of this module in order for the tests
// to be able to create the in-memory database successfull when initialising the connection
task copyTestResources(type: Copy)
println "Copying resource"
from "$project(':application:dataproviders').buildDir/resources/main/h2-schema.sql"
into "$buildDir/resources/test"
processTestResources.dependsOn copyTestResources
dependencies
compile project(":application:configuration")
compile libs.unit_tests
compile libs.acceptance_tests
compile libs.end_to_end_test
testCompile libs.string_utils
As you see I am including compile project(":application:configuration") as dependencies. Inside the application configuration module I have all the bean configurations. See the configuration module structure below.

When I run the application by ./gradlew bootRun the application is getting wired properly. But when I run ./gradlew test system throws error saying that no qualifying bean found.
See the trace below.
$ ./gradlew test
> Configure project :acceptance-tests
Copying resource
> Task :compileJava NO-SOURCE
> Task :processResources NO-SOURCE
> Task :classes UP-TO-DATE
> Task :compileTestJava NO-SOURCE
> Task :processTestResources NO-SOURCE
> Task :testClasses UP-TO-DATE
> Task :test NO-SOURCE
> Task :application:core:compileJava UP-TO-DATE
> Task :application:core:processResources NO-SOURCE
> Task :application:core:classes UP-TO-DATE
> Task :application:core:jar UP-TO-DATE
> Task :application:dataproviders:compileJava UP-TO-DATE
> Task :application:dataproviders:processResources UP-TO-DATE
> Task :application:dataproviders:classes UP-TO-DATE
> Task :application:dataproviders:jar UP-TO-DATE
> Task :application:entrypoints:compileJava UP-TO-DATE
> Task :application:entrypoints:processResources NO-SOURCE
> Task :application:entrypoints:classes UP-TO-DATE
> Task :application:entrypoints:jar UP-TO-DATE
> Task :application:configuration:compileJava UP-TO-DATE
> Task :application:configuration:processResources UP-TO-DATE
> Task :application:configuration:classes UP-TO-DATE
> Task :application:configuration:compileTestJava NO-SOURCE
> Task :application:configuration:processTestResources NO-SOURCE
> Task :application:configuration:testClasses UP-TO-DATE
> Task :application:configuration:test NO-SOURCE
> Task :application:core:compileTestJava UP-TO-DATE
> Task :application:core:processTestResources NO-SOURCE
> Task :application:core:testClasses UP-TO-DATE
> Task :application:core:test UP-TO-DATE
> Task :application:dataproviders:compileTestJava UP-TO-DATE
> Task :application:dataproviders:processTestResources NO-SOURCE
> Task :application:dataproviders:testClasses UP-TO-DATE
> Task :application:dataproviders:test UP-TO-DATE
> Task :application:entrypoints:compileTestJava UP-TO-DATE
> Task :application:entrypoints:processTestResources NO-SOURCE
> Task :application:entrypoints:testClasses UP-TO-DATE
> Task :application:entrypoints:test UP-TO-DATE
> Task :application:configuration:jar SKIPPED
> Task :acceptance-tests:compileJava UP-TO-DATE
> Task :acceptance-tests:processResources NO-SOURCE
> Task :acceptance-tests:classes UP-TO-DATE
> Task :acceptance-tests:compileTestJava
> Task :acceptance-tests:copyTestResources UP-TO-DATE
> Task :acceptance-tests:processTestResources NO-SOURCE
> Task :acceptance-tests:testClasses
> Task :acceptance-tests:test
com.span.budget.endtoend.transaction.getdetails.TransactionDetailsEndToEndTest > returnWelcomeMessage FAILED
org.springframework.beans.factory.UnsatisfiedDependencyException
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException
com.span.budget.endtoend.transaction.getdetails.TransactionDetailsEndToEndTest > returnTheDetailsOfTheTransaction FAILED
org.springframework.beans.factory.UnsatisfiedDependencyException
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException
com.span.budget.businessrequirements.transaction.getdetails.GetTransactionDetailsAcceptanceTest > returnTheDetailsOfTheTransaction PASSED
2019-03-27 05:47:48.649 INFO 6536 --- [ Thread-5] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3b21fe3b: startup date [Wed Mar 27 05:47:41 SGT 2019]; root of context hierarchy
2019-03-27 05:47:48.681 INFO 6536 --- [ Thread-5] o.s.j.d.e.EmbeddedDatabaseFactory : Shutting down embedded database: url='jdbc:h2:mem:testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=false'
3 tests completed, 2 failed
> Task :acceptance-tests:test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':acceptance-tests:test'.
> There were failing tests. See the report at: file:///C:/Rajesh/workspace/budget/acceptance-tests/build/reports/tests/test/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 13s
19 actionable tasks: 2 executed, 17 up-to-date
What I am doing wrong here? Any suggestions.
You can find the full code here
java spring-boot gradle clean-architecture
java spring-boot gradle clean-architecture
edited Mar 26 at 22:09
Rajesh
asked Mar 26 at 22:03
RajeshRajesh
4665 silver badges21 bronze badges
4665 silver badges21 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55366849%2fgradle-acceptance-test-not-including-the-dependencies%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55366849%2fgradle-acceptance-test-not-including-the-dependencies%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown