Skip to content

Commit 53c7ef5

Browse files
committed
optimize testcase
1 parent 78fd402 commit 53c7ef5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-boot-data-aggregator-example/src/main/java/io/github/lvyahui8/spring/example/ExampleApplication.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package io.github.lvyahui8.spring.example;
22

3+
import io.github.lvyahui8.spring.example.facade.UserQueryFacade;
34
import lombok.extern.slf4j.Slf4j;
45
import io.github.lvyahui8.spring.aggregate.facade.DataBeanAggregateQueryFacade;
56
import io.github.lvyahui8.spring.example.model.User;
@@ -29,6 +30,9 @@ public static void main(String[] args) throws Exception {
2930
log.info("user.name:{},user.posts.size:{}",
3031
user.getUsername(),user.getPosts().size());
3132

33+
user = context.getBean(UserQueryFacade.class).getUserFinal(1L);
34+
Assert.notNull(user.getFollowers(),"user followers not null");
35+
3236
ExecutorService executorService = (ExecutorService) context.getBean("aggregateExecutorService");
3337
executorService.shutdown();
3438
}

0 commit comments

Comments
 (0)