常见Unit Test的comments

doNothing().when(this.*****Repository).deleteById(Mockito.anyLong());
when(this.****Repository.findById(Mockito.anyLong())).thenReturn(orders);
verify(*****Repository, times(1)).findById(anyLong(), anyLong());

mvn test -Pcicd
mvn test -Dtest=*****Test,*****ResourceTest,****ServiceTest

你可能感兴趣的:(常见Unit Test的comments)