PowerMock AmazonS3Client Config Issue
As @srkavin said in the comments, this error went away when I added @PowerMockIgnore({ "javax.net.ssl.*" })
I was able to solve this by adding a custom Configuration file that mocks the bean and returns it.
@Configuration
@Profile("Test")
public class TestConfig {
@Mock
AmazonS3Client client;
public TestConfig(){
MockitoAnnotations.initMocks(this);
}
@Bean
public AmazonS3Client amazonS3Client(){
return client;
}
}