tdd-spring-react
tdd-spring-react copied to clipboard
HoaxControllerTest cleanupAfter
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