Skip to content

Commit 098d779

Browse files
committed
Polishing.
Javadoc, static imports. See #3033 Original pull request: #3034
1 parent 18386c8 commit 098d779

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/test/java/org/springframework/data/web/aot/WebRuntimeHintsUnitTests.java

+8-5
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,19 @@
1616
package org.springframework.data.web.aot;
1717

1818
import static org.assertj.core.api.Assertions.*;
19+
import static org.mockito.Mockito.*;
1920

2021
import org.junit.jupiter.api.Test;
21-
import org.mockito.Mockito;
22+
2223
import org.springframework.aot.hint.ReflectionHints;
2324
import org.springframework.aot.hint.RuntimeHints;
2425
import org.springframework.aot.hint.TypeReference;
2526
import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
2627
import org.springframework.data.test.util.ClassPathExclusions;
2728

2829
/**
30+
* Unit tests for {@link WebRuntimeHints}.
31+
*
2932
* @author Christoph Strobl
3033
*/
3134
class 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

Comments
 (0)