Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdClear committed Sep 28, 2023
1 parent 5c8e6eb commit d146fb2
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alipay.sofa.serverless.arklet.core.command.handler;

import com.alipay.sofa.ark.api.ClientResponse;
Expand Down Expand Up @@ -27,7 +43,8 @@ public void testHandle_Success() throws Throwable {
input.setBizName("testBizName");
input.setBizVersion("testBizVersion");

when(handler.getOperationService().uninstall(input.getBizName(), input.getBizVersion())).thenReturn(success);
when(handler.getOperationService().uninstall(input.getBizName(), input.getBizVersion()))
.thenReturn(success);

Output<ClientResponse> result = handler.handle(input);

Expand All @@ -41,7 +58,8 @@ public void testHandle_Failure() throws Throwable {
input.setBizName("testBizName");
input.setBizVersion("testBizVersion");

when(handler.getOperationService().uninstall(input.getBizName(), input.getBizVersion())).thenReturn(failed);
when(handler.getOperationService().uninstall(input.getBizName(), input.getBizVersion()))
.thenReturn(failed);

Output<ClientResponse> result = handler.handle(input);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alipay.sofa.serverless.arklet.core.util;

import org.junit.Assert;
Expand Down

0 comments on commit d146fb2

Please sign in to comment.