Раскомментировал строчки теста
This commit is contained in:
parent
b2815fd417
commit
b56c295266
@ -28,7 +28,7 @@ public class JpaStudentTests {
|
|||||||
@Autowired
|
@Autowired
|
||||||
OrderService orderService;
|
OrderService orderService;
|
||||||
@Test
|
@Test
|
||||||
void testCreate() {
|
void test() {
|
||||||
componentService.deleteAllComponent();
|
componentService.deleteAllComponent();
|
||||||
productService.deleteAllProduct();
|
productService.deleteAllProduct();
|
||||||
orderService.deleteAllOrder();
|
orderService.deleteAllOrder();
|
||||||
@ -49,7 +49,7 @@ public class JpaStudentTests {
|
|||||||
log.info(order.toString());
|
log.info(order.toString());
|
||||||
Assertions.assertNotNull(order.getId());
|
Assertions.assertNotNull(order.getId());
|
||||||
|
|
||||||
/*//TestRead
|
//TestRead
|
||||||
final Component findComponent = componentService.findComponent(component.getId());
|
final Component findComponent = componentService.findComponent(component.getId());
|
||||||
log.info(findComponent.toString());
|
log.info(findComponent.toString());
|
||||||
Assertions.assertEquals(component, findComponent);
|
Assertions.assertEquals(component, findComponent);
|
||||||
@ -96,6 +96,6 @@ public class JpaStudentTests {
|
|||||||
|
|
||||||
final List<Order> newOrders = orderService.findAllOrder();
|
final List<Order> newOrders = orderService.findAllOrder();
|
||||||
log.info(newOrders.toString());
|
log.info(newOrders.toString());
|
||||||
Assertions.assertEquals(newOrders.size(), 0);*/
|
Assertions.assertEquals(newOrders.size(), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user