Fix ServiceDefinitionBuilder uts (#10904)

This commit is contained in:
Albumen Kevin 2022-11-10 10:26:53 +08:00 committed by GitHub
parent 25b2d6158e
commit cc1162feb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -21,6 +21,7 @@ import org.apache.dubbo.metadata.definition.model.MethodDefinition;
import org.apache.dubbo.metadata.definition.model.TypeDefinition;
import org.apache.dubbo.metadata.definition.service.ComplexObject;
import org.apache.dubbo.metadata.definition.service.DemoService;
import org.apache.dubbo.rpc.model.FrameworkModel;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
@ -35,6 +36,7 @@ public class ServiceDefinitionBuilderTest {
@Test
public void testBuilderComplexObject() {
TypeDefinitionBuilder.initBuilders(FrameworkModel.defaultModel());
FullServiceDefinition fullServiceDefinition = ServiceDefinitionBuilder.buildFullDefinition(DemoService.class);
checkComplexObjectAsParam(fullServiceDefinition);
}