Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-devicemonitor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6bfe31b8
authored
Jun 06, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交测试类
1 parent
b6bba79f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
src/test/java/cn/com/glsx/devicemonitor/modules/components/HdaoGpsComponentTest.java
src/test/java/cn/com/glsx/devicemonitor/modules/components/HdaoGpsComponentTest.java
0 → 100644
View file @
6bfe31b
package
cn
.
com
.
glsx
.
devicemonitor
.
modules
.
components
;
import
cn.com.glsx.Application
;
import
cn.com.glsx.devicemonitor.modules.entity.inner.DataGpsLocation
;
import
com.alibaba.fastjson.JSON
;
import
lombok.extern.slf4j.Slf4j
;
import
org.junit.jupiter.api.Test
;
import
org.junit.runner.RunWith
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.boot.test.context.SpringBootTest
;
import
org.springframework.test.context.junit4.SpringRunner
;
import
static
org
.
junit
.
jupiter
.
api
.
Assertions
.*;
/**
* @author xiangyanlin
* @date 2022/6/6
*/
@Slf4j
@RunWith
(
SpringRunner
.
class
)
@SpringBootTest
(
classes
=
Application
.
class
,
webEnvironment
=
SpringBootTest
.
WebEnvironment
.
RANDOM_PORT
)
class
HdaoGpsComponentTest
{
@Autowired
private
HdaoGpsComponent
hdaoGpsComponent
;
@Test
public
void
testGet
(){
DataGpsLocation
wifiLocation
=
hdaoGpsComponent
.
getWifiLocation
(
"75201160807"
);
System
.
out
.
println
(
JSON
.
toJSONString
(
wifiLocation
));
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment