阅读背景:

即使使用PowerMock也无法模拟java.net.URL?

来源:互联网 

According to my requirements, I have to upload a file to Amazon S3 by using pre-signed URL for which I got the code from the AWS website which worked for me but now I have to write JUnit for the same in which I used PowerMockito to mock java.net. URL but it's not working at all. Following is my Java code plus the JUnit which is not working. Can anyone give me solution on how should I proceed? Thanks in advance. According to my requirements, I have to upload




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: