@Test
public void findByBuyerOpenid() throws Exception{
PageRequest pageRequest = new PageRequest(0,3);
Page result = respository.findByBuyerOpenid(OPENID,pageRequest);
Assert.assertEquals(1,result.getTotalElements());
}
在进行此段代码单元测试时:
result对象里返回的是 Page 1 of 0 containing UNKNOWN instances