I m trying to use the @RestClientTest
to test a rest client class.
It is stated that :
It will apply only configuration relevant to rest client tests (Jackson or GSON auto-configuration, and @JsonComponent beans), but not regular @Component beans.
@RunWith(SpringRunner.class)
//@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
@RestClientTest(JasperClient.class)
public class JasperClientTest {
...
So as expected,I get errors such as: NoSuchBeanDefinitionException
for the beans that are indeed are out of concern.
Is there a way to skip these errors? Or do I configure the context for this particular test class or sth?
Thanks in advance.