Problem with mocking - Null Pointer Exception when trying to mock external API method

后端 未结 0 1911
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-29 19:36

I\'m trying to test the class:

public class WeatherProvider {

private OWM owm;

public WeatherProvider(OWM owm) {
    this.owm = owm;
}

public CurrentWeatherDat         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题