hhuang1231 commented on code in PR #1059:
URL: https://github.com/apache/dubbo-samples/pull/1059#discussion_r1524481163


##########
2-advanced/dubbo-samples-notify/dubbo-samples-notify-consumer/src/test/java/org/apache/dubbo/samples/notify/consumer/NotifyIT.java:
##########
@@ -17,31 +17,27 @@
 
 package org.apache.dubbo.samples.notify.consumer;
 
+import jakarta.annotation.Resource;
 import org.apache.dubbo.config.annotation.DubboReference;
 import org.apache.dubbo.config.annotation.Method;
 import org.apache.dubbo.samples.notify.DemoService;
-
-import org.junit.Assert;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-import org.springframework.beans.factory.annotation.Autowired;
+import org.junit.jupiter.api.Assertions;
+import org.junit.jupiter.api.Test;
 import org.springframework.boot.test.context.SpringBootTest;
-import org.springframework.test.context.junit4.SpringRunner;
 
 @SpringBootTest
-@RunWith(SpringRunner.class)
 public class NotifyIT {
-    // @DubboReference
+
     @DubboReference(timeout = 6000, methods = @Method(name = "sayHello", 
onreturn = "notify.onReturn", onthrow = "notify.onThrow"))
     private DemoService demoService;
 
-    @Autowired
+    @Resource

Review Comment:
   Sorry, this is my problem, I had revoked it.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to