File tree 1 file changed +2
-4
lines changed
aliyun-java-sdk-core/src/test/java/com/aliyuncs
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 7
7
import org .junit .Before ;
8
8
import org .junit .Test ;
9
9
10
- import static org .mockito .Mockito .mock ;
11
-
12
10
public class CommonResponseTest {
13
11
private CommonResponse response ;
14
12
@@ -25,14 +23,14 @@ public void getSetTest() {
25
23
response .setHttpStatus (200 );
26
24
Assert .assertEquals (200 , response .getHttpStatus ());
27
25
28
- HttpResponse httpResponse = mock ( HttpResponse . class );
26
+ HttpResponse httpResponse = new HttpResponse ( );
29
27
response .setHttpResponse (httpResponse );
30
28
Assert .assertTrue (httpResponse == response .getHttpResponse ());
31
29
}
32
30
33
31
@ Test
34
32
public void getInstanceTest () throws ClientException {
35
- UnmarshallerContext context = mock ( UnmarshallerContext . class );
33
+ UnmarshallerContext context = new UnmarshallerContext ( );
36
34
Assert .assertNull (response .getInstance (context ));
37
35
}
38
36
You can’t perform that action at this time.
0 commit comments