diff --git a/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/ApAreaEntityFactory.kt b/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/ApAreaEntityFactory.kt index 859f0c5350..d6fbb5441c 100644 --- a/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/ApAreaEntityFactory.kt +++ b/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/ApAreaEntityFactory.kt @@ -11,8 +11,8 @@ import java.util.UUID class ApAreaEntityFactory : Factory { private var id: Yielded = { UUID.randomUUID() } - private var name: Yielded = { randomStringMultiCaseWithNumbers(8) } - private var identifier: Yielded = { randomStringUpperCase(5) } + private var name: Yielded = { randomStringMultiCaseWithNumbers(10) } + private var identifier: Yielded = { randomStringUpperCase(10) } private var emailAddress: Yielded = { randomStringUpperCase(10) } private var notifyReplyToEmailId: Yielded = { randomStringMultiCaseWithNumbers(8) } private var defaultCruManagementArea: Yielded = { Cas1CruManagementAreaEntityFactory().produce() } diff --git a/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/ApprovedPremisesEntityFactory.kt b/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/ApprovedPremisesEntityFactory.kt index 4b0d26365d..e99eff8194 100644 --- a/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/ApprovedPremisesEntityFactory.kt +++ b/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/ApprovedPremisesEntityFactory.kt @@ -25,7 +25,7 @@ class ApprovedPremisesEntityFactory : Factory { private var localAuthorityArea: Yielded? = null private var id: Yielded = { UUID.randomUUID() } private var name: Yielded = { randomStringMultiCaseWithNumbers(8) } - private var apCode: Yielded = { randomStringUpperCase(5) } + private var apCode: Yielded = { randomStringUpperCase(10) } private var postcode: Yielded = { randomPostCode() } private var latitude: Yielded = { randomDouble(53.50, 54.99) } private var longitude: Yielded = { randomDouble(-1.56, 1.10) } diff --git a/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/LocalAuthorityAreaEntityFactory.kt b/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/LocalAuthorityAreaEntityFactory.kt index d417916d69..e8269177ad 100644 --- a/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/LocalAuthorityAreaEntityFactory.kt +++ b/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/LocalAuthorityAreaEntityFactory.kt @@ -8,8 +8,8 @@ import java.util.UUID class LocalAuthorityAreaEntityFactory : Factory { private var id: Yielded = { UUID.randomUUID() } - private var identifier: Yielded = { randomStringUpperCase(5) } - private var name: Yielded = { randomStringUpperCase(5) } + private var identifier: Yielded = { randomStringUpperCase(10) } + private var name: Yielded = { randomStringUpperCase(10) } fun withName(name: String) = apply { this.name = { name } diff --git a/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/LocalAuthorityEntityFactory.kt b/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/LocalAuthorityEntityFactory.kt index 811b3c327a..8a37c45522 100644 --- a/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/LocalAuthorityEntityFactory.kt +++ b/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/LocalAuthorityEntityFactory.kt @@ -9,8 +9,8 @@ import java.util.UUID class LocalAuthorityEntityFactory : Factory { private var id: Yielded = { UUID.randomUUID() } - private var identifier: Yielded = { randomStringUpperCase(5) } - private var name: Yielded = { randomStringMultiCaseWithNumbers(8) } + private var identifier: Yielded = { randomStringUpperCase(10) } + private var name: Yielded = { randomStringMultiCaseWithNumbers(10) } fun withId(id: UUID) = apply { this.id = { id } diff --git a/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/RegistrationClientResponseFactory.kt b/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/RegistrationClientResponseFactory.kt index 8daff00e6e..a30f7d9ec2 100644 --- a/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/RegistrationClientResponseFactory.kt +++ b/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/factory/RegistrationClientResponseFactory.kt @@ -45,13 +45,13 @@ class RegistrationClientResponseFactory : Factory { } private var registeringProbationArea: Yielded = { RegistrationKeyValue( - code = randomStringUpperCase(5), + code = randomStringUpperCase(10), description = randomStringUpperCase(20), ) } private var registerLevel: Yielded = { RegistrationKeyValue( - code = randomStringUpperCase(5), + code = randomStringUpperCase(10), description = randomStringUpperCase(20), ) } @@ -66,14 +66,14 @@ class RegistrationClientResponseFactory : Factory { private var endDate: Yielded = { null } private var deregisteringOfficer: Yielded = { RegistrationStaffHuman( - code = randomStringUpperCase(5), - forenames = randomStringUpperCase(5), - surname = randomStringUpperCase(5), + code = randomStringUpperCase(10), + forenames = randomStringUpperCase(10), + surname = randomStringUpperCase(10), ) } private var deregisteringProbationArea: Yielded = { RegistrationKeyValue( - code = randomStringUpperCase(5), + code = randomStringUpperCase(10), description = randomStringUpperCase(20), ) } diff --git a/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/integration/UsersTest.kt b/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/integration/UsersTest.kt index ec2d15e2a9..a900176654 100644 --- a/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/integration/UsersTest.kt +++ b/src/test/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/integration/UsersTest.kt @@ -193,7 +193,7 @@ class UsersTest : InitialiseDatabasePerClassTestBase() { val email = "foo@bar.com" val telephoneNumber = "123445677" val borough = Borough( - code = randomStringMultiCaseWithNumbers(7), + code = randomStringMultiCaseWithNumbers(10), description = randomStringMultiCaseWithNumbers(10), )