26 lines
692 B
Java
26 lines
692 B
Java
package com.yupi.project.service;
|
|
|
|
import com.yupi.project.mapper.OrderConfigMapper;
|
|
import com.yupi.project.model.entity.OrderConfigDO;
|
|
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;
|
|
|
|
|
|
|
|
@RunWith(SpringRunner.class)
|
|
@SpringBootTest
|
|
public class OrderConfigMapperTest {
|
|
|
|
@Autowired
|
|
private OrderConfigMapper orderConfigMapper;
|
|
|
|
@Test
|
|
public void testSelectById() {
|
|
OrderConfigDO orderConfig = orderConfigMapper.selectById(1);
|
|
System.out.println(orderConfig);
|
|
}
|
|
|
|
} |