Spring-boot-starter-test cannot run database integration test

Problem partially solved.

First, I had to put the annotation @AutoConfigureTestDatabase on the class MedicoDaoTest.

leaving the code like this:

...
@AutoConfigureTestDatabase(replace=Replace.NONE)
public class MedicoDaoTest {
...

then I changed the application.properties under src/tests/resources

spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.username=root
#spring.datasource.password=""
spring.datasource.sql-script-encoding=UTF-8
spring.datasource.url=jdbc:mysql://localhost:3306/medcalTest
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
spring.datasource.sql-script-encoding=UTF-8
spring.messages.encoding=UTF-8
server.tomcat.uri-encoding=UTF-8

then, the jpa and the mapping started to work


Thanks @tecnocrata, additional to your answer I have added the h2 database dependency to my gradle project like this:

compile("com.h2database:h2")

and i just use this properties:

spring:
  datasource:
    driver-class-name: org.h2.Driver
    password: ''
    url: jdbc:h2:mem:foo;DB_CLOSE_ON_EXIT=FALSE
    username: sa
  jpa:
    database: default
    generate-ddl: true

thanks...