manailin
2021-05-24 92522f6f088c22914bf533afc7120e4014504f6d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.panzhihua.service_grid.dao;
 
import com.panzhihua.service_grid.model.dos.ApplicationAppRelease;
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;
 
@RunWith(SpringRunner.class)
@SpringBootTest
class ApplicationAppReleaseMapperTest {
 
    @Autowired
    private ApplicationAppReleaseMapper applicationAppReleaseMapper;
 
    @Test
    void selectByRand() {
        ApplicationAppRelease result = applicationAppReleaseMapper.selectByRand(2L);
        System.out.println("JSONObject.toJSONString(result) = " + result.getProductName());
    }
}