Skip to content

Commit

Permalink
fix: update the testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
pinxiong committed Jun 4, 2021
1 parent f0c7833 commit 682495a
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import org.apache.dubbo.config.spring.ServiceBean;
import org.apache.dubbo.config.spring.api.HelloService;

import org.apache.dubbo.config.spring.api.LazyInitHelloService;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
Expand Down Expand Up @@ -76,8 +77,10 @@ public void test() {
Assertions.assertEquals(2, helloServicesMap.size());

Map<String, ServiceBean> serviceBeansMap = beanFactory.getBeansOfType(ServiceBean.class);

Assertions.assertEquals(2, serviceBeansMap.size());
/**
* There are one {@link HelloService} and two {@link LazyInitHelloService} has 1
* */
Assertions.assertEquals(3, serviceBeansMap.size());

Map<String, ServiceAnnotationBeanPostProcessor> beanPostProcessorsMap =
beanFactory.getBeansOfType(ServiceAnnotationBeanPostProcessor.class);
Expand All @@ -93,8 +96,10 @@ public void test() {
public void testMethodAnnotation() {

Map<String, ServiceBean> serviceBeansMap = beanFactory.getBeansOfType(ServiceBean.class);

Assertions.assertEquals(2, serviceBeansMap.size());
/**
* There are one {@link HelloService} and two {@link LazyInitHelloService} has 1
* */
Assertions.assertEquals(3, serviceBeansMap.size());

ServiceBean demoServiceBean = serviceBeansMap.get("ServiceBean:org.apache.dubbo.config.spring.api.DemoService:2.5.7");

Expand Down

0 comments on commit 682495a

Please sign in to comment.