| | |
| | | package com.ycl.sccgplatform; |
| | | |
| | | import com.dahua.netsdk.lib.callback.impl.AnalyzerDataCB; |
| | | import com.ycl.common.util.UtilNumber; |
| | | import com.ycl.entity.dingding.DingUserInfo; |
| | | import com.ycl.entity.user.UmsAdmin; |
| | |
| | | import org.junit.jupiter.api.Test; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.test.context.SpringBootTest; |
| | | import org.springframework.context.annotation.ComponentScan; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.xml.bind.DatatypeConverter; |
| | |
| | | import java.net.URL; |
| | | import java.util.*; |
| | | |
| | | @ComponentScan("com.dahua.netsdk") |
| | | @SpringBootTest |
| | | public class Test1 { |
| | | |
| | |
| | | fis.close(); |
| | | } |
| | | |
| | | @Autowired |
| | | AnalyzerDataCB analyzerDataCB; |
| | | |
| | | @Test |
| | | void alarmTest() { |
| | | |
| | | analyzerDataCB.invoke(null, 0, null, null, 0, null, 0, null); |
| | | |
| | | // AlarmDataCB cbMessage = new AlarmDataCB(); |
| | | // String m_strIp = "172.28.194.177"; |
| | | // int m_nPort = 37777; |