1616package org .springframework .data .web .aot ;
1717
1818import static org .assertj .core .api .Assertions .*;
19+ import static org .mockito .Mockito .*;
1920
2021import org .junit .jupiter .api .Test ;
21- import org . mockito . Mockito ;
22+
2223import org .springframework .aot .hint .ReflectionHints ;
2324import org .springframework .aot .hint .RuntimeHints ;
2425import org .springframework .aot .hint .TypeReference ;
2526import org .springframework .aot .hint .predicate .RuntimeHintsPredicates ;
2627import org .springframework .data .test .util .ClassPathExclusions ;
2728
2829/**
30+ * Unit tests for {@link WebRuntimeHints}.
31+ *
2932 * @author Christoph Strobl
3033 */
3134class WebRuntimeHintsUnitTests {
@@ -34,8 +37,8 @@ class WebRuntimeHintsUnitTests {
3437 void shouldRegisterRuntimeHintWhenJacksonPresent () {
3538
3639 ReflectionHints reflectionHints = new ReflectionHints ();
37- RuntimeHints runtimeHints = Mockito . mock (RuntimeHints .class );
38- Mockito . when (runtimeHints .reflection ()).thenReturn (reflectionHints );
40+ RuntimeHints runtimeHints = mock (RuntimeHints .class );
41+ when (runtimeHints .reflection ()).thenReturn (reflectionHints );
3942
4043 new WebRuntimeHints ().registerHints (runtimeHints , this .getClass ().getClassLoader ());
4144
@@ -48,8 +51,8 @@ void shouldRegisterRuntimeHintWhenJacksonPresent() {
4851 void shouldRegisterRuntimeHintWithTypeNameWhenJacksonNotPresent () {
4952
5053 ReflectionHints reflectionHints = new ReflectionHints ();
51- RuntimeHints runtimeHints = Mockito . mock (RuntimeHints .class );
52- Mockito . when (runtimeHints .reflection ()).thenReturn (reflectionHints );
54+ RuntimeHints runtimeHints = mock (RuntimeHints .class );
55+ when (runtimeHints .reflection ()).thenReturn (reflectionHints );
5356
5457 new WebRuntimeHints ().registerHints (runtimeHints , this .getClass ().getClassLoader ());
5558
0 commit comments