From 2bd4a826d8e7b7e3f02e0dd53369f262abe3fe54 Mon Sep 17 00:00:00 2001 From: shikong <919411476@qq.com> Date: Tue, 22 Aug 2023 02:48:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=80=E5=8D=95=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/skcks/docking/gb28181/SipTest.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 starter/src/test/java/cn/skcks/docking/gb28181/SipTest.java diff --git a/starter/src/test/java/cn/skcks/docking/gb28181/SipTest.java b/starter/src/test/java/cn/skcks/docking/gb28181/SipTest.java new file mode 100644 index 0000000..b57a869 --- /dev/null +++ b/starter/src/test/java/cn/skcks/docking/gb28181/SipTest.java @@ -0,0 +1,22 @@ +package cn.skcks.docking.gb28181; + +import cn.skcks.docking.gb28181.core.sip.service.SipService; +import lombok.extern.slf4j.Slf4j; +import org.junit.jupiter.api.Test; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; + +import javax.sip.SipProvider; + +@Slf4j +@SpringBootTest(classes = Gb28181DockingPlatformApplicationTest.class) +public class SipTest { + @Autowired + private SipService service; + + @Test + void context(){ + SipProvider provider = service.getProvider("TCP", "10.10.10.20"); + log.info("{}", provider); + } +}