Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
<fix> format
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeNoobKing committed Jan 26, 2024
1 parent 8cc706b commit 1f93e88
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public ClientResponse safeBatchInstall(String bizUrl) {
BizOperation bizOperation = new BizOperation()
.setOperationType(BizOperation.OperationType.INSTALL);

bizOperation.putParameter(Constants.CONFIG_BIZ_URL, OSUtils.getLocalFileProtocolPrefix() + bizUrl);
bizOperation.putParameter(Constants.CONFIG_BIZ_URL,
OSUtils.getLocalFileProtocolPrefix() + bizUrl);
Map<String, Object> mainAttributes = batchInstallHelper.getMainAttributes(bizUrl);
bizOperation.setBizName((String) mainAttributes.get(Constants.ARK_BIZ_NAME));
bizOperation.setBizVersion((String) mainAttributes.get(Constants.ARK_BIZ_VERSION));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class UnifiedOperationServiceImplTests {
private UnifiedOperationServiceImpl unifiedOperationService;

@Spy
private BatchInstallHelper batchInstallHelper;
private BatchInstallHelper batchInstallHelper;

@Before
public void setUp() {
Expand Down Expand Up @@ -131,13 +131,11 @@ public void testBatchInstall() {
}

BatchInstallResponse response = unifiedOperationService.batchInstall(BatchInstallRequest
.builder().bizDirAbsolutePath("/path/to/biz").build());
.builder().bizDirAbsolutePath("/path/to/biz").build());

Assert.assertTrue(response.getBizUrlToResponse().
containsKey("/file/a-biz.jar"));
Assert.assertTrue(response.getBizUrlToResponse().containsKey("/file/a-biz.jar"));

Assert.assertTrue(response.getBizUrlToResponse().
containsKey("/file/b-biz.jar"));
Assert.assertTrue(response.getBizUrlToResponse().containsKey("/file/b-biz.jar"));

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.alipay.sofa.serverless.common.util;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package com.alipay.sofa.serverless.common.util;

import org.junit.Assert;
Expand Down

0 comments on commit 1f93e88

Please sign in to comment.