Skip to content

Commit

Permalink
Fixed test by mocking ReactiveClientRegistrationRepository.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc3092 committed Dec 20, 2024
1 parent afac231 commit a10f9f0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.boot.test.mock.mockito.MockBean;
import org.springframework.security.oauth2.jwt.JwtDecoder;
import org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository;
import org.springframework.test.context.ActiveProfiles;

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
Expand All @@ -14,11 +14,12 @@ class ApplicationContextTest {

@MockBean
@SuppressWarnings("unused")
private JwtDecoder jwtDecoder;
private ReactiveClientRegistrationRepository reactiveClientRegistrationRepository;

@Test
@SuppressWarnings("java:S2699")
void load_app_context() {
assertThat(true).isTrue();
}

}

0 comments on commit a10f9f0

Please sign in to comment.