Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,17 @@ public class CourtListRestrictionIT extends AbstractPublishLatestCourtCentreHear
* Clean every table that can carry state across tests in this class. All five tests bind
* their hearings to the SAME static {@code caseId} (see
* {@link AbstractPublishLatestCourtCentreHearingIT}), so residual
* {@code is_court_list_restricted=true} on {@code ha_prosecution_case} or
* {@code ha_defendant} from one test poisons the next. The
* {@code court_list_publish_status} row is also dropped so the FIRST publish in this class
* cannot inherit {@code EXPORT_SUCCESSFUL} from a prior test class's publish — without
* this, {@code verifyCourtListPublishStatusReturnedWhenQueryingFromAPI} returns on the
* stale status before the current publish has produced a file.
* {@code is_court_list_restricted=true} on {@code ha_case} (the {@code ProsecutionCase}
* entity's table — see its {@code @Table} annotation) or {@code ha_defendant} from one
* test poisons the next. The {@code court_list_publish_status} row is also dropped so the
* FIRST publish in this class cannot inherit {@code EXPORT_SUCCESSFUL} from a prior test
* class's publish — without this,
* {@code verifyCourtListPublishStatusReturnedWhenQueryingFromAPI} returns on the stale
* status before the current publish has produced a file.
*/
private void cleanRestrictionTables() {
cleanDatabase("ha_hearing",
"ha_prosecution_case",
"ha_case",
"ha_defendant",
"ha_hearing_day",
"ha_hearing_event",
Expand Down
Loading