严智鑫
2024-09-09 9fe6d51a678fdd40026b1b91c72959e271dd065f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package com.mes;
 
import com.mes.md.mapper.AccountMapper;
import com.mes.md.service.AccountService;
import lombok.extern.slf4j.Slf4j;
import org.junit.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 java.util.Map;
 
/**
 * @Author : yanzhixin
 * @Date: 2024/3/27 16:37
 * @Description:
 */
@Slf4j
@RunWith(SpringRunner.class)
@SpringBootTest(classes = DeviceInteractionModuleApplication.class, webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class DeviceInteractionModuleApplicationTest {
 
    @Autowired
    AccountMapper AccountMapper;
 
    @Autowired
    AccountService accountService;
 
    @Test
    public void testFindPath() {
        //String url = getClass().getResource("").getPath();
        //log.info("完整路径:{}", Arrays.asList(url));
 
        log.info("完整路径");
    }
    @Test
    public void testFindAccount() {
        Map<String, Object> Account=accountService.selectAccount("admin","12345");
        if(Account.isEmpty()){
            System.out.println("成功");
        }
        log.info("{}",Account);
    }
 
}