File tree Expand file tree Collapse file tree 2 files changed +36
-3
lines changed
dubbo-registry/dubbo-registry-sofa
src/test/java/org/apache/dubbo/registry/sofa Expand file tree Collapse file tree 2 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 2828 <name >${project.artifactId} </name >
2929 <description >The SOFARegistry module of Dubbo project</description >
3030
31+ <properties >
32+ <sofa .registry.version>5.2.0</sofa .registry.version>
33+ <jersey .version>2.26</jersey .version>
34+ <javax .ws.rs.version>2.1</javax .ws.rs.version>
35+ </properties >
36+
3137 <dependencies >
32-
3338 <dependency >
3439 <groupId >org.apache.dubbo</groupId >
3540 <artifactId >dubbo-registry-api</artifactId >
8893 </exclusions >
8994 </dependency >
9095
96+ <dependency >
97+ <groupId >org.jboss.resteasy</groupId >
98+ <artifactId >resteasy-jaxrs</artifactId >
99+ <scope >test</scope >
100+ </dependency >
101+ <dependency >
102+ <groupId >org.jboss.resteasy</groupId >
103+ <artifactId >resteasy-netty4</artifactId >
104+ <scope >test</scope >
105+ </dependency >
106+ <dependency >
107+ <groupId >org.glassfish.jersey.media</groupId >
108+ <artifactId >jersey-media-json-jackson</artifactId >
109+ <version >${jersey.version} </version >
110+ <scope >test</scope >
111+ </dependency >
112+ <dependency >
113+ <groupId >org.glassfish.jersey.media</groupId >
114+ <artifactId >jersey-media-jaxb</artifactId >
115+ <version >${jersey.version} </version >
116+ <scope >test</scope >
117+ </dependency >
118+ <dependency >
119+ <groupId >javax.ws.rs</groupId >
120+ <artifactId >javax.ws.rs-api</artifactId >
121+ <version >${javax.ws.rs.version} </version >
122+ </dependency >
123+
91124 <dependency >
92125 <groupId >org.apache.dubbo</groupId >
93126 <artifactId >dubbo-rpc-dubbo</artifactId >
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public void testPubAndSub() throws InterruptedException {
114114 HelloService service2 = referenceConfig2 .get ();
115115 Assertions .assertEquals ("rrr11" , service2 .sayHello ("xxx" ));
116116
117- // export on service
117+ // export one service
118118 ServiceConfig <HelloService > serviceConfig3 = new ServiceConfig <>();
119119 serviceConfig3 .setInterface (HelloService .class );
120120 serviceConfig3 .setRef (new HelloServiceImpl ("rrr12" ));
@@ -129,7 +129,7 @@ public void testPubAndSub() throws InterruptedException {
129129 referenceConfig1 .destroy ();
130130 Assertions .assertTrue (service2 .sayHello ("xxx" ).startsWith ("rrr1" ));
131131
132- // unexport on service
132+ // unexport one service
133133 serviceConfig1 .unexport ();
134134 Thread .sleep (2000 );
135135 Assertions .assertTrue (service2 .sayHello ("xxx" ).startsWith ("rrr1" ));
You can’t perform that action at this time.
0 commit comments