Skip to content

Commit 25766dc

Browse files
committed
Release Aspose.Cells Cloud SDK 21.11
1 parent cadc85a commit 25766dc

File tree

3 files changed

+162
-2
lines changed

3 files changed

+162
-2
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
/*
2+
* Web API Swagger specification
3+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+
*
5+
* OpenAPI spec version: 1.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package com.aspose.cloud.cells.api;
15+
import com.aspose.cloud.cells.client.ApiClient;
16+
import com.aspose.cloud.cells.client.ApiException;
17+
import com.aspose.cloud.cells.client.Configuration;
18+
import com.aspose.cloud.cells.model.FilesResult;
19+
import org.junit.Test;
20+
import org.junit.Ignore;
21+
22+
import java.io.File;
23+
import java.util.ArrayList;
24+
import java.util.HashMap;
25+
import java.util.List;
26+
import java.util.Map;
27+
28+
/**
29+
* API tests for CellsShapesApi
30+
*/
31+
32+
public class CellsCompressApiTest {
33+
34+
private LiteCellsApi api ;
35+
36+
private String BOOK1 = "Book1.xlsx";
37+
private String MYDOC = "myDocument.xlsx";
38+
private String AssemblyTestXlsx = "assemblytest.xlsx";
39+
private String DataSourceXlsx = "datasource.xlsx";
40+
private String PivTestFile = "TestCase.xlsx";
41+
private String TEMPFOLDER = "JavaTest";
42+
private String SHEET1 = "Sheet1";
43+
private String SHEET2 = "Sheet2";
44+
private String SHEET3 = "Sheet3";
45+
private String SHEET4 = "Sheet4";
46+
private String SHEET5 = "Sheet5";
47+
private String SHEET6 = "Sheet6";
48+
private String SHEET7 = "Sheet7";
49+
private String SHEET8 = "Sheet8";
50+
private String CellName = "A1";
51+
private String RANGE = "A1:C10";
52+
private String CELLAREA = "A1:C10";
53+
54+
public CellsCompressApiTest(){
55+
try {
56+
api = new LiteCellsApi(CellsApiUtil.GetClientId(),CellsApiUtil.GetClientSecret(),CellsApiUtil.GetAPIVersion(),CellsApiUtil.GetBaseUrl());
57+
} catch (ApiException e) {
58+
// TODO Auto-generated catch block
59+
e.printStackTrace();
60+
}
61+
}
62+
63+
/**
64+
* Delete a shape in worksheet
65+
*
66+
*
67+
*
68+
* @throws ApiException
69+
* if the Api call fails
70+
*/
71+
@Test
72+
public void cellsPostCompressApiTest() throws ApiException {
73+
74+
HashMap<String,File> fileMap = new HashMap<String,File>();
75+
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
76+
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
77+
FilesResult response = api.postCompress(fileMap, 88);
78+
79+
// TODO: test validations
80+
}
81+
82+
83+
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
/*
2+
* Web API Swagger specification
3+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
4+
*
5+
* OpenAPI spec version: 1.0
6+
*
7+
*
8+
* NOTE: This class is auto generated by the swagger code generator program.
9+
* https://github.com/swagger-api/swagger-codegen.git
10+
* Do not edit the class manually.
11+
*/
12+
13+
14+
package com.aspose.cloud.cells.api;
15+
import com.aspose.cloud.cells.client.ApiClient;
16+
import com.aspose.cloud.cells.client.ApiException;
17+
import com.aspose.cloud.cells.client.Configuration;
18+
import com.aspose.cloud.cells.model.FilesResult;
19+
import org.junit.Test;
20+
import org.junit.Ignore;
21+
22+
import java.io.File;
23+
import java.util.ArrayList;
24+
import java.util.HashMap;
25+
import java.util.List;
26+
import java.util.Map;
27+
28+
/**
29+
* API tests for CellsShapesApi
30+
*/
31+
32+
public class CellsReplaceApiTest {
33+
34+
private LiteCellsApi api ;
35+
36+
private String BOOK1 = "Book1.xlsx";
37+
private String MYDOC = "myDocument.xlsx";
38+
private String AssemblyTestXlsx = "assemblytest.xlsx";
39+
private String DataSourceXlsx = "datasource.xlsx";
40+
private String PivTestFile = "TestCase.xlsx";
41+
private String TEMPFOLDER = "JavaTest";
42+
private String SHEET1 = "Sheet1";
43+
private String SHEET2 = "Sheet2";
44+
private String SHEET3 = "Sheet3";
45+
private String SHEET4 = "Sheet4";
46+
private String SHEET5 = "Sheet5";
47+
private String SHEET6 = "Sheet6";
48+
private String SHEET7 = "Sheet7";
49+
private String SHEET8 = "Sheet8";
50+
private String CellName = "A1";
51+
private String RANGE = "A1:C10";
52+
private String CELLAREA = "A1:C10";
53+
54+
public CellsReplaceApiTest(){
55+
try {
56+
api = new LiteCellsApi(CellsApiUtil.GetClientId(),CellsApiUtil.GetClientSecret(),CellsApiUtil.GetAPIVersion(),CellsApiUtil.GetBaseUrl());
57+
} catch (ApiException e) {
58+
// TODO Auto-generated catch block
59+
e.printStackTrace();
60+
}
61+
}
62+
63+
64+
@Test
65+
public void cellsPostRepleaceApiTest() throws ApiException {
66+
67+
HashMap<String,File> fileMap = new HashMap<String,File>();
68+
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
69+
fileMap.put(DataSourceXlsx ,CellsApiUtil.GetFileHolder(DataSourceXlsx) );
70+
FilesResult response = api.postReplace(fileMap,"1","aspose.cells cloud",null,null);
71+
72+
// TODO: test validations
73+
}
74+
75+
76+
77+
}

src/test/java/com/aspose/cloud/cells/api/CellsSearchApiTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public CellsSearchApiTest(){
6262

6363

6464
@Test
65-
public void cellsPostProtectApiTest() throws ApiException {
65+
public void cellsPostSearchApiTest() throws ApiException {
6666

6767
HashMap<String,File> fileMap = new HashMap<String,File>();
6868
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );
@@ -73,7 +73,7 @@ public void cellsPostProtectApiTest() throws ApiException {
7373
}
7474

7575
@Test
76-
public void cellsPostProtectApi_sheet_Test() throws ApiException {
76+
public void cellsPostSearchApi_sheet_Test() throws ApiException {
7777

7878
HashMap<String,File> fileMap = new HashMap<String,File>();
7979
fileMap.put(AssemblyTestXlsx ,CellsApiUtil.GetFileHolder(AssemblyTestXlsx) );

0 commit comments

Comments
 (0)