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());
|
}
|
}
|