Skip to content

Commit

Permalink
Formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
probation-integration-bot[bot] authored Nov 22, 2024
1 parent b1dcffe commit 4fe9e40
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ object CourtAppearanceGenerator {
court = CourtGenerator.UNKNOWN_COURT_N07_PROVIDER,
person = PersonGenerator.DEFAULT
)

fun generate(
id: Long = IdGenerator.getAndIncrement(),
appearanceDate: LocalDate = LocalDate.now(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import uk.gov.justice.digital.hmpps.integrations.delius.entity.*
import java.time.LocalDate

object MainOffenceGenerator {
val DEFAULT = generate(event = EventGenerator.DEFAULT, person = PersonGenerator.DEFAULT, offence = OffenceGenerator.DEFAULT)
val DEFAULT =
generate(event = EventGenerator.DEFAULT, person = PersonGenerator.DEFAULT, offence = OffenceGenerator.DEFAULT)

fun generate(
id: Long = IdGenerator.getAndIncrement(),
event: Event,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ object ContactTypeGenerator {
code = ContactTypeCode.COURT_APPEARANCE.code,
description = "Court Appearance"
)

fun generate(code: String, id: Long = IdGenerator.getAndIncrement(), description: String) =
ContactType(id = id, code = code, description = description)
}

0 comments on commit 4fe9e40

Please sign in to comment.