File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
aliyun-java-sdk-core/src/test/java/com/aliyuncs Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 77import org .junit .Before ;
88import org .junit .Test ;
99
10- import static org .mockito .Mockito .mock ;
11-
1210public class CommonResponseTest {
1311 private CommonResponse response ;
1412
@@ -25,14 +23,14 @@ public void getSetTest() {
2523 response .setHttpStatus (200 );
2624 Assert .assertEquals (200 , response .getHttpStatus ());
2725
28- HttpResponse httpResponse = mock ( HttpResponse . class );
26+ HttpResponse httpResponse = new HttpResponse ( );
2927 response .setHttpResponse (httpResponse );
3028 Assert .assertTrue (httpResponse == response .getHttpResponse ());
3129 }
3230
3331 @ Test
3432 public void getInstanceTest () throws ClientException {
35- UnmarshallerContext context = mock ( UnmarshallerContext . class );
33+ UnmarshallerContext context = new UnmarshallerContext ( );
3634 Assert .assertNull (response .getInstance (context ));
3735 }
3836
You can’t perform that action at this time.
0 commit comments