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

Commit

Permalink
fotmat
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanyuan2021 committed Sep 27, 2023
1 parent d329189 commit 566e5ec
Showing 1 changed file with 24 additions and 6 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.common;

import com.alipay.sofa.ark.api.ArkClient;
Expand Down Expand Up @@ -32,10 +48,10 @@
public class SpringServiceFinderTest {

@Mock
private Biz masterBiz;
private Biz masterBiz;

@Mock
private Biz biz1;
private Biz biz1;

@Mock
private BizManagerService bizManagerService;
Expand All @@ -59,9 +75,12 @@ public void testSpringServiceFinder() {
BaseBean baseBean = SpringServiceFinder.getBaseService("baseBean");
BaseBean baseBean1 = SpringServiceFinder.getBaseService(BaseBean.class);
Map<String, BaseBean> baseBeanMap = SpringServiceFinder.listBaseServices(BaseBean.class);
ModuleBean moduleBean = SpringServiceFinder.getModuleService("biz1", "version1", "moduleBean");
ModuleBean moduleBean1 = SpringServiceFinder.getModuleService("biz1", "version1", ModuleBean.class);
Map<String, ModuleBean> moduleBeanMap = SpringServiceFinder.listModuleServices("biz1", "version1", ModuleBean.class);
ModuleBean moduleBean = SpringServiceFinder.getModuleService("biz1", "version1",
"moduleBean");
ModuleBean moduleBean1 = SpringServiceFinder.getModuleService("biz1", "version1",
ModuleBean.class);
Map<String, ModuleBean> moduleBeanMap = SpringServiceFinder.listModuleServices("biz1",
"version1", ModuleBean.class);
}

@Configuration
Expand All @@ -72,7 +91,6 @@ public static class CustomConfiguration {
public class BaseBean {
}


public class ModuleBean {
}

Expand Down

0 comments on commit 566e5ec

Please sign in to comment.