@@ -15,12 +15,12 @@
|
||||
*/
|
||||
package org.springframework.data.jdbc.core;
|
||||
|
||||
import static java.util.Collections.singletonList;
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.tuple;
|
||||
import static java.util.Collections.*;
|
||||
import static org.assertj.core.api.Assertions.*;
|
||||
|
||||
import lombok.Value;
|
||||
import lombok.experimental.Wither;
|
||||
|
||||
import org.assertj.core.api.SoftAssertions;
|
||||
import org.junit.ClassRule;
|
||||
import org.junit.Rule;
|
||||
@@ -44,6 +44,7 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
* Integration tests for {@link JdbcAggregateTemplate} and it's handling of immutable entities.
|
||||
*
|
||||
* @author Jens Schauder
|
||||
* @author Salim Achouche
|
||||
*/
|
||||
@ContextConfiguration
|
||||
@Transactional
|
||||
|
||||
@@ -44,6 +44,8 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
* Very simple use cases for creation and usage of JdbcRepositories.
|
||||
*
|
||||
* @author Jens Schauder
|
||||
* @author Salim Achouche
|
||||
* @author Salim Achouche
|
||||
*/
|
||||
@ContextConfiguration
|
||||
@Transactional
|
||||
|
||||
@@ -49,6 +49,7 @@ import org.springframework.test.context.ActiveProfiles;
|
||||
*
|
||||
* @author Kazuki Shimizu
|
||||
* @author Jens Schauder
|
||||
* @author Salim Achouche
|
||||
*/
|
||||
@ActiveProfiles("hsql")
|
||||
public class EnableJdbcAuditingHsqlIntegrationTests {
|
||||
@@ -193,10 +194,8 @@ public class EnableJdbcAuditingHsqlIntegrationTests {
|
||||
|
||||
return (Consumer<R> test) -> {
|
||||
|
||||
try (AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext()) {
|
||||
context.getEnvironment().setActiveProfiles("hsql");
|
||||
context.register(configurationClasses);
|
||||
context.refresh();
|
||||
try (ConfigurableApplicationContext context = new AnnotationConfigApplicationContext(configurationClasses)) {
|
||||
|
||||
test.accept(context.getBean(repositoryType));
|
||||
|
||||
softly.assertAll();
|
||||
@@ -238,7 +237,6 @@ public class EnableJdbcAuditingHsqlIntegrationTests {
|
||||
|
||||
@ComponentScan("org.springframework.data.jdbc.testing")
|
||||
@EnableJdbcRepositories(considerNestedRepositories = true)
|
||||
@ActiveProfiles("hsql")
|
||||
static class TestConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user