|
1 | 1 | /* |
2 | | - * Copyright 2002-2023 the original author or authors. |
| 2 | + * Copyright 2002-2024 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
21 | 21 |
|
22 | 22 | import org.springframework.aot.hint.MemberCategory; |
23 | 23 | import org.springframework.aot.hint.RuntimeHints; |
| 24 | +import org.springframework.aot.hint.RuntimeHintsRegistrar; |
24 | 25 | import org.springframework.aot.hint.TypeReference; |
25 | 26 | import org.springframework.aot.hint.predicate.RuntimeHintsPredicates; |
26 | 27 | import org.springframework.core.io.support.SpringFactoriesLoader; |
27 | 28 | import org.springframework.security.web.FilterChainProxy; |
28 | 29 | import org.springframework.security.web.context.SecurityContextHolderFilter; |
29 | 30 | import org.springframework.security.web.context.SecurityContextPersistenceFilter; |
30 | 31 | import org.springframework.security.web.csrf.CsrfFilter; |
31 | | -import org.springframework.test.context.aot.TestRuntimeHintsRegistrar; |
32 | 32 | import org.springframework.util.ClassUtils; |
33 | 33 |
|
34 | 34 | import static org.assertj.core.api.Assertions.assertThat; |
35 | 35 |
|
36 | 36 | /** |
37 | | - * Tests for {@link WebTestUtilsTestRuntimeHints}. |
| 37 | + * Tests for {@link WebTestUtilsRuntimeHints}. |
38 | 38 | * |
39 | 39 | * @author Marcus da Coregio |
40 | 40 | */ |
41 | | -class WebTestUtilsTestRuntimeHintsTests { |
| 41 | +class WebTestUtilsRuntimeHintsTests { |
42 | 42 |
|
43 | 43 | private final RuntimeHints hints = new RuntimeHints(); |
44 | 44 |
|
45 | 45 | @BeforeEach |
46 | 46 | void setup() { |
47 | 47 | SpringFactoriesLoader.forResourceLocation("META-INF/spring/aot.factories") |
48 | | - .load(TestRuntimeHintsRegistrar.class) |
49 | | - .forEach((registrar) -> registrar.registerHints(this.hints, WebTestUtilsTestRuntimeHintsTests.class, |
50 | | - ClassUtils.getDefaultClassLoader())); |
| 48 | + .load(RuntimeHintsRegistrar.class) |
| 49 | + .forEach((registrar) -> registrar.registerHints(this.hints, ClassUtils.getDefaultClassLoader())); |
51 | 50 | } |
52 | 51 |
|
53 | 52 | @Test |
|
0 commit comments