Skip to content

Commit ad9c177

Browse files
committed
20201213 update 1: Fix test case
1 parent 5306cd6 commit ad9c177

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ public static String GetAPIVersion() {
3636
public static String GetBaseUrl() {
3737
return System.getenv("CellsCloudTestApiBaseUrl");
3838
}
39-
public static Boolean IsDockerTest(){
40-
return Boolean.getBoolean( System.getenv("CellsCloudTestIsDockerTest"));
39+
public static Boolean IsDockerTest(){
40+
return (System.getenv("CellsCloudTestIsDockerTest").toLowerCase() == "true");
41+
// return Boolean.getBoolean( System.getenv("CellsCloudTestIsDockerTest"));
4142
}
4243
public static void Upload(CellsApi cellsApi,String folder ,String filename) {
4344
File file = new File(System.getProperty("user.dir") + sourceFolder + filename);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class CellsAutoshapesApiTest {
5757

5858
public CellsAutoshapesApiTest(){
5959
try {
60-
api = new CellsApi(CellsApiUtil.GetClientId(),CellsApiUtil.GetClientSecret());
60+
api = new CellsApi(CellsApiUtil.GetClientId(),CellsApiUtil.GetClientSecret(),CellsApiUtil.GetAPIVersion(),CellsApiUtil.GetBaseUrl());
6161
} catch (ApiException e) {
6262
// TODO Auto-generated catch block
6363
e.printStackTrace();

0 commit comments

Comments
 (0)