Skip to content

Commit

Permalink
Add ensuing decision integration test
Browse files Browse the repository at this point in the history
RISDEV-2525
  • Loading branch information
leonie-koch committed Nov 16, 2023
1 parent 59a0934 commit a5f2a33
Show file tree
Hide file tree
Showing 7 changed files with 522 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,25 @@
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.SuperBuilder;

@SuperBuilder(toBuilder = true)
@Getter
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@DateKnownConstraint
@Data
public class EnsuingDecision extends RelatedDocumentationUnit {
private boolean pending;
private String note;

public boolean hasNoValues() {
return court == null && decisionDate == null && fileNumber == null && documentType == null;
return court == null
&& decisionDate == null
&& fileNumber == null
&& documentType == null
&& note == null;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@
},
controllers = {DocumentUnitController.class},
timeout = "PT5M")
@Sql(scripts = {"classpath:active_citation_init.sql"})
@Sql(scripts = {"classpath:active_citations_init.sql"})
@Sql(
scripts = {"classpath:active_citation_cleanup.sql"},
scripts = {"classpath:active_citations_cleanup.sql"},
executionPhase = AFTER_TEST_METHOD)
class ActiveCitationIntegrationTest {
@Container
Expand Down
Loading

0 comments on commit a5f2a33

Please sign in to comment.