springBoot junit Test

来源:互联网 发布:手机阿里云下载 编辑:程序博客网 时间:2024/06/09 16:10
~~~~~~~~~~~@RunWith(SpringJUnit4ClassRunner.class)@SpringBootTest(classes = {Application.class})public class PayPaymentServiceImplTest {    @Autowired    private PayPaymentMapper payPaymentMapper;    @Test    public void selectByOrderNoAndObjectType() {        String orderNo="265";        String ObjectType="ORDER";        PayPayment payPayment = new PayPayment();        payPayment.setObjId(orderNo);        payPayment.setObjType(ObjectType);        List<PayPayment> payPayments = payPaymentMapper.selectByParams(payPayment);        System.out.println(payPayments);        int i=1;    }}
0 0
原创粉丝点击