@@ -129,11 +129,11 @@ public void testGetBorder() throws ApiException, FileNotFoundException {
129129 String fileName = "TablesGet.docx" ;
130130 String remoteName = "TestGetBorder.docx" ;
131131 String sourcePath = "sections/0/tables/2/rows/0" ;
132- Integer index = 0 ;
132+ String borderType = "left" ;
133133
134134 TestInitializer .UploadFile (Paths .get (TestInitializer .LocalTestFolder , testFolder , fileName ).toString (), Paths .get (TestInitializer .RemoteTestFolder , testFolder , remoteName ).toString ().replace ("\\ " , "/" ));
135135
136- GetBorderRequest request = new GetBorderRequest (remoteName , sourcePath , index ,
136+ GetBorderRequest request = new GetBorderRequest (remoteName , sourcePath , borderType ,
137137 Paths .get (TestInitializer .RemoteTestFolder , testFolder ).toString (), null , null ,
138138 null );
139139
@@ -563,13 +563,13 @@ public void testUpdateTableRowFormat() throws ApiException, FileNotFoundExceptio
563563public void testDeleteBorder () throws ApiException , FileNotFoundException {
564564 String fileName = "TablesGet.docx" ;
565565 String remoteName = "TestDeleteTableBorder.docx" ;
566- Integer index = 0 ;
566+ String borderType = "left" ;
567567 String sourcePath = "tables/1/rows/0/cells/0/" ;
568568 String destName = Paths .get (TestInitializer .RemoteTestOut , remoteName ).toString ();
569569
570570 TestInitializer .UploadFile (Paths .get (TestInitializer .LocalTestFolder , testFolder , fileName ).toString (), Paths .get (TestInitializer .RemoteTestFolder , testFolder , remoteName ).toString ().replace ("\\ " , "/" ));
571571
572- DeleteBorderRequest request = new DeleteBorderRequest (remoteName , sourcePath , index ,
572+ DeleteBorderRequest request = new DeleteBorderRequest (remoteName , sourcePath , borderType ,
573573 Paths .get (TestInitializer .RemoteTestFolder , testFolder ).toString (), null , null ,
574574 null , destName , null , null );
575575
@@ -604,14 +604,14 @@ public void testDeleteBorders() throws ApiException, FileNotFoundException {
604604public void testUpdateBorder () throws ApiException , FileNotFoundException {
605605 String fileName = "TablesGet.docx" ;
606606 String remoteName = "TestUpdateBorder.docx" ;
607- Integer index = 0 ;
607+ String borderType = "left" ;
608608 String sourcePath = "tables/1/rows/0/cells/0/" ;
609609 Border body = new Border ().borderType (Border .BorderTypeEnum .LEFT ).color (new XmlColor ().alpha (2 )).distanceFromText (6.0 )
610610 .lineStyle (Border .LineStyleEnum .DASHDOTSTROKER ).lineWidth (2.0 ).shadow (true );
611611
612612 TestInitializer .UploadFile (Paths .get (TestInitializer .LocalTestFolder , testFolder , fileName ).toString (), Paths .get (TestInitializer .RemoteTestFolder , testFolder , remoteName ).toString ().replace ("\\ " , "/" ));
613613
614- UpdateBorderRequest request = new UpdateBorderRequest (remoteName , body , sourcePath , index ,
614+ UpdateBorderRequest request = new UpdateBorderRequest (remoteName , body , sourcePath , borderType ,
615615 Paths .get (TestInitializer .RemoteTestFolder , testFolder ).toString (), null , null ,
616616 null , null , null , null );
617617
0 commit comments