Fix wrong assertion
This commit is contained in:
parent
1ba0df99b2
commit
4e19c47e78
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue