Skip to content

Commit 2a8e9a5

Browse files
christophstroblmp911de
authored andcommitted
Remove hardcoded repository fragment from test setup.
See #3830
1 parent 09a1eb6 commit 2a8e9a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-data-jpa/src/test/java/org/springframework/data/jpa/repository/aot/AotFragmentTestConfigurationSupport.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ class AotFragmentTestConfigurationSupport implements BeanFactoryPostProcessor {
5757

5858
public AotFragmentTestConfigurationSupport(Class<?> repositoryInterface) {
5959
this.repositoryInterface = repositoryInterface;
60-
this.repositoryContext = new TestJpaAotRepositoryContext<>(UserRepository.class, null);
60+
this.repositoryContext = new TestJpaAotRepositoryContext<>(repositoryInterface, null);
6161
}
6262

6363
@Override
6464
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
6565

66-
TestGenerationContext generationContext = new TestGenerationContext(UserRepository.class);
66+
TestGenerationContext generationContext = new TestGenerationContext(repositoryInterface);
6767

6868
new JpaRepositoryContributor(repositoryContext).contribute(generationContext);
6969

0 commit comments

Comments
 (0)