From 602c6c724169e7e778b4d9443a35d17f2c161102 Mon Sep 17 00:00:00 2001 From: Andrea Giulianelli Date: Tue, 9 May 2023 17:33:02 +0200 Subject: [PATCH] test: add test for patient id concept --- .../entity/healthcareuser/PatientIDTest.kt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/test/kotlin/entity/healthcareuser/PatientIDTest.kt diff --git a/src/test/kotlin/entity/healthcareuser/PatientIDTest.kt b/src/test/kotlin/entity/healthcareuser/PatientIDTest.kt new file mode 100644 index 0000000..a82c8d0 --- /dev/null +++ b/src/test/kotlin/entity/healthcareuser/PatientIDTest.kt @@ -0,0 +1,18 @@ +/* + * Copyright (c) 2023. Smart Operating Block + * + * Use of this source code is governed by an MIT-style + * license that can be found in the LICENSE file or at + * https://opensource.org/licenses/MIT. + */ + +package entity.healthcareuser + +import io.kotest.assertions.throwables.shouldThrow +import io.kotest.core.spec.style.StringSpec + +class PatientIDTest : StringSpec({ + "patient id should not be empty" { + shouldThrow { PatientID("") } + } +})