|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2020 the original author or authors. |
|
|
|
* Copyright 2002-2024 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -31,7 +31,6 @@ import org.springframework.core.io.ByteArrayResource; |
|
|
|
import org.springframework.core.io.ClassPathResource; |
|
|
|
import org.springframework.core.io.ClassPathResource; |
|
|
|
import org.springframework.core.io.Resource; |
|
|
|
import org.springframework.core.io.Resource; |
|
|
|
import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator; |
|
|
|
import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator; |
|
|
|
import org.springframework.lang.NonNull; |
|
|
|
|
|
|
|
import org.springframework.lang.Nullable; |
|
|
|
import org.springframework.lang.Nullable; |
|
|
|
import org.springframework.test.context.TestContext; |
|
|
|
import org.springframework.test.context.TestContext; |
|
|
|
import org.springframework.test.context.TestContextAnnotationUtils; |
|
|
|
import org.springframework.test.context.TestContextAnnotationUtils; |
|
|
|
@ -280,7 +279,6 @@ public class SqlScriptsTestExecutionListener extends AbstractTestExecutionListen |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@NonNull |
|
|
|
|
|
|
|
private ResourceDatabasePopulator createDatabasePopulator(MergedSqlConfig mergedSqlConfig) { |
|
|
|
private ResourceDatabasePopulator createDatabasePopulator(MergedSqlConfig mergedSqlConfig) { |
|
|
|
ResourceDatabasePopulator populator = new ResourceDatabasePopulator(); |
|
|
|
ResourceDatabasePopulator populator = new ResourceDatabasePopulator(); |
|
|
|
populator.setSqlScriptEncoding(mergedSqlConfig.getEncoding()); |
|
|
|
populator.setSqlScriptEncoding(mergedSqlConfig.getEncoding()); |
|
|
|
|