Skip to content

Basic test failed during project build with org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException #43629

@rkudryashov

Description

@rkudryashov

Executing ./gradlew build in an empty project (3.4.1 version) produces:

> Task :test FAILED

DemoApplicationTests > contextLoads() FAILED
    java.lang.IllegalStateException at DefaultCacheAwareContextLoaderDelegate.java:180
        Caused by: org.springframework.beans.factory.BeanCreationException at AbstractBeanFactory.java:325
            Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException at ConstructorResolver.java:804
                Caused by: org.springframework.beans.factory.BeanCreationException at ConstructorResolver.java:657
                    Caused by: org.springframework.beans.BeanInstantiationException at SimpleInstantiationStrategy.java:199
                        Caused by: org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException at DataSourceProperties.java:186

1 test completed, 1 failed

FAILURE: Build failed with an exception.

The failed test is generated automatically.

To reproduce, you can use this project; also, the error can be observed in a freshly generated project with such a config:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions