basarbk/tdd-spring-react

HoaxControllerTest cleanupAfter

Opened this issue · 0 comments

After relationships is added between Hoax and User, running all tests alltogehter may fail, if HoaxConrollerTest runs before LoginControllerTest or UserControllerTest. Hoax table must be cleared after HoaxControllerTest fails.
After Hoax and FileAttachment, that cleanup method must also handle the fileAttachment cleanup.
Or
set cascade for User to Hoax and Hoax to FileAttachment relationship