Fix wrong assertion

This commit is contained in:
Stephane Nicoll 2017-06-28 10:31:14 +02:00
parent 1ba0df99b2
commit 4e19c47e78
1 changed files with 1 additions and 2 deletions

View File

@ -44,7 +44,6 @@ import org.springframework.context.annotation.Configuration;
import org.springframework.jdbc.datasource.SimpleDriverDataSource;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.contains;
import static org.mockito.Mockito.mock;
/**
@ -96,7 +95,7 @@ public class DataSourceAutoConfigurationTests {
@Test
public void testBadDriverClass() throws Exception {
this.thrown.expect(BeanCreationException.class);
this.thrown.expectMessage(contains("org.none.jdbcDriver"));
this.thrown.expectMessage("org.none.jdbcDriver");
load("spring.datasource.driverClassName:org.none.jdbcDriver");
}