diff --git a/nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/NakadiClientContentEncodingIT.java b/nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/NakadiClientContentEncodingIT.java index bacba5d..6f035fc 100644 --- a/nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/NakadiClientContentEncodingIT.java +++ b/nakadi-producer-spring-boot-starter/src/test/java/org/zalando/nakadiproducer/NakadiClientContentEncodingIT.java @@ -5,6 +5,7 @@ import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.boot.test.mock.mockito.MockBean; import org.zalando.fahrschein.http.api.ContentEncoding; import org.zalando.fahrschein.http.api.RequestFactory; import org.zalando.nakadiproducer.config.EmbeddedDataSourceConfig; @@ -25,6 +26,11 @@ ) public class NakadiClientContentEncodingIT { + // Avoid errors in the logs from the AccessTokenRefresher. As we are not actually submitting + // to Nakadi, this will never be used. + @MockBean + private AccessTokenProvider tokenProvider; + @Autowired private RequestFactory requestFactory;