1616package org .springframework .data .aot ;
1717
1818import static org .assertj .core .api .Assertions .*;
19- import static org .mockito .ArgumentMatchers .*;
2019import static org .mockito .Mockito .*;
2120
2221import java .util .Arrays ;
2827import org .junit .jupiter .api .BeforeEach ;
2928import org .junit .jupiter .api .Test ;
3029import org .mockito .Mockito ;
30+
3131import org .springframework .aot .generate .GenerationContext ;
3232import org .springframework .aot .hint .predicate .RuntimeHintsPredicates ;
3333import org .springframework .aot .test .generate .TestGenerationContext ;
@@ -91,7 +91,7 @@ void processesBeanDefinitionIfPossibleWithoutLoadingTheBean() {
9191
9292 createPostProcessor ("commons" ).processAheadOfTime (RegisteredBean .of (beanFactory , "commons.managed-types" ));
9393
94- verify (beanFactory , never ()).getBean (eq ( "commons.managed-types" ), eq ( ManagedTypes .class ) );
94+ verify (beanFactory , never ()).getBean ("commons.managed-types" , ManagedTypes .class );
9595 }
9696
9797 @ Test // GH-2593
@@ -128,7 +128,7 @@ void processesMatchingSubtypeBeanByAttemptingToLoadItIfNoMatchingConstructorArgu
128128
129129 createPostProcessor ("commons" ).processAheadOfTime (RegisteredBean .of (beanFactory , "commons.managed-types" ));
130130
131- verify (beanFactory ).getBean (eq ( "commons.managed-types" ), eq ( ManagedTypes .class ) );
131+ verify (beanFactory ).getBean ("commons.managed-types" , ManagedTypes .class );
132132 }
133133
134134 @ Test // GH-2593
@@ -157,8 +157,7 @@ void ignoresBeanNotMatchingPrefix() {
157157 @ Test // GH-2593
158158 void returnsEmptyContributionWhenBeanCannotBeLoaded () {
159159
160- doThrow (new BeanCreationException ("o_O" )).when (beanFactory ).getBean (eq ("commons.managed-types" ),
161- eq (ManagedTypes .class ));
160+ doThrow (new BeanCreationException ("o_O" )).when (beanFactory ).getBean ("commons.managed-types" , ManagedTypes .class );
162161
163162 beanFactory .registerBeanDefinition ("commons.managed-types" , myManagedTypesDefinition );
164163
@@ -170,7 +169,7 @@ void returnsEmptyContributionWhenBeanCannotBeLoaded() {
170169 contribution .applyTo (generationContext , null );
171170
172171 assertThat (generationContext .getRuntimeHints ().reflection ().typeHints ()).isEmpty ();
173- verify (beanFactory ).getBean (eq ( "commons.managed-types" ), eq ( ManagedTypes .class ) );
172+ verify (beanFactory ).getBean ("commons.managed-types" , ManagedTypes .class );
174173 }
175174
176175 @ Test // GH-2680
@@ -282,7 +281,7 @@ void usesConfiguredEnvironment() {
282281
283282 contribution .applyTo (new TestGenerationContext (Object .class ), null );
284283
285- verify (env ).getProperty (eq ( "spring.aot.data.accessors.enabled" ), eq ( Boolean .class ), eq ( true ) );
284+ verify (env ).getProperty ("spring.aot.data.accessors.enabled" , Boolean .class , true );
286285 }
287286
288287 @ Test // GH-3414
@@ -299,7 +298,7 @@ void usesUsesEnvironmentFromBeanIfNotSet() {
299298
300299 contribution .applyTo (new TestGenerationContext (Object .class ), null );
301300
302- verify (env ).getProperty (eq ( "spring.aot.data.accessors.enabled" ), eq ( Boolean .class ), eq ( true ) );
301+ verify (env ).getProperty ("spring.aot.data.accessors.enabled" , Boolean .class , true );
303302 }
304303
305304 private ManagedTypesBeanRegistrationAotProcessor createPostProcessor (String moduleIdentifier ) {
0 commit comments