Skip to content

Commit 4e19c47

Browse files
committed
Fix wrong assertion
1 parent 1ba0df9 commit 4e19c47

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfigurationTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import org.springframework.jdbc.datasource.SimpleDriverDataSource;
4545

4646
import static org.assertj.core.api.Assertions.assertThat;
47-
import static org.mockito.ArgumentMatchers.contains;
4847
import static org.mockito.Mockito.mock;
4948

5049
/**
@@ -96,7 +95,7 @@ public void testBadUrl() throws Exception {
9695
@Test
9796
public void testBadDriverClass() throws Exception {
9897
this.thrown.expect(BeanCreationException.class);
99-
this.thrown.expectMessage(contains("org.none.jdbcDriver"));
98+
this.thrown.expectMessage("org.none.jdbcDriver");
10099
load("spring.datasource.driverClassName:org.none.jdbcDriver");
101100
}
102101

0 commit comments

Comments
 (0)