diff --git a/projects/common-platform-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/OffenceGenerator.kt b/projects/common-platform-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/OffenceGenerator.kt index e0ba07a31..3e3452f2d 100644 --- a/projects/common-platform-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/OffenceGenerator.kt +++ b/projects/common-platform-and-delius/src/dev/kotlin/uk/gov/justice/digital/hmpps/data/generator/OffenceGenerator.kt @@ -45,7 +45,11 @@ object DetailedOffenceGenerator { object OffenceGenerator { val DEFAULT = generate(code = "06200", description = "High treason and other offences against Treason Acts") - val OTHER = generate(code = "09166", description = "Triable either way offences under The Food Hygiene (Wales) Regulations 2006") + val OTHER = generate( + code = "09166", + description = "Triable either way offences under The Food Hygiene (Wales) Regulations 2006" + ) + fun generate( id: Long = IdGenerator.getAndIncrement(), code: String,