Top "Spring-boot-test" questions

SpringApplicationConfiguration not found: Erroneous spring-boot-starter-test content?

Getting a compilation error in Maven: [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /C:/prototypes/demo-sse-spring-boot-master/src/test/java/…

maven testing spring-boot spring-boot-test
Spring Boot Unit Test a module not detecting an autowired component

we have split our Maven based Spring Boot project into two modules as follows: ProjectRoot -SharedModel -Application --main ---java ----com....(…

java spring-boot intellij-idea spring-boot-test
Spring-boot application-test.properties

I am trying to unit test the spring-boot application using junit. I have placed the application-test.properties under src/test/…

spring-boot spring-boot-test application.properties
Resolving port already in use in a Spring boot test DEFINED PORT

I have a spring boot application that fires up and executes a class that listens to Application Ready event to …

java spring-boot integration-testing spring-boot-test
Unsatisfied dependency during test

I have a spring boot 2.0.0 M2 application who run well. I use autowired on constructor @RequestMapping(value = "/rest") @RestController public …

spring-boot spring-boot-test
Spring boot test: context loaded for every test?

In my project we have a super class for all our tests. This is the signature of that class @RunWith(…

java spring spring-boot junit spring-boot-test
SpringApplicationConfiguration cannot be resolved in a Spring Boot test

I've generated a Spring Boot web application using Spring Initializr, using embedded Tomcat + Thymeleaf template engine, and package as an …

java spring spring-boot spring-mvc spring-boot-test
SpringRunner vs SpringBootTest

In unit test, what are the differences between @Runwith(SpringRunner.class) & @SpringBootTest? Can you explain to me the use …

java spring-boot junit spring-boot-test
package org.springframework.boot.test.context does not exist

I am using dependencies as below <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/…

maven spring-boot spring-boot-test
org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: FQPropretyName, could not initialize proxy - no Session

I am trying a ManyToOne Bi-Directional Association using SpringBoot, SpringDataJpa along with a unit test using SpringBootTest. However the test …

spring-boot spring-data-jpa spring-boot-test