Skip to content

Commit

Permalink
test: add test for patient id concept
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGiulianelli committed May 9, 2023
1 parent 31d6c3a commit 602c6c7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/test/kotlin/entity/healthcareuser/PatientIDTest.kt
Original file line number Diff line number Diff line change
@@ -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<IllegalArgumentException> { PatientID("") }
}
})

0 comments on commit 602c6c7

Please sign in to comment.