This commit is contained in:
shikong 2023-08-22 10:38:24 +08:00
parent 595bcd065a
commit c3f11cde03
3 changed files with 22 additions and 1 deletions

View File

@ -29,5 +29,11 @@
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-common</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<scope>compile</scope>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,10 @@
package cn.skcks.docking.gb28181.config;
import lombok.RequiredArgsConstructor;
import org.springframework.context.annotation.Configuration;
@Slf4j
@Configuration
@RequiredArgsConstructor
public class WebConfig {
}

View File

@ -3,12 +3,17 @@ 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.junit.jupiter.api.extension.ExtendWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import javax.sip.SipProvider;
@Slf4j
@ExtendWith(SpringExtension.class)
@AutoConfigureMockMvc
@SpringBootTest(classes = Gb28181DockingPlatformApplicationTest.class)
public class SipTest {
@Autowired
@ -16,7 +21,7 @@ public class SipTest {
@Test
void context(){
SipProvider provider = service.getProvider("TCP", "10.10.10.20");
SipProvider provider = service.getProvider("TCP", "192.168.10.195");
log.info("{}", provider);
}
}