getString(0)).thenReturn(mockArrayStr); // mocking constructor PowerMockito.whenNew(JSONArray.class).withParameterTypes(String.class) .
確定! 回上一頁