Skip to content

Commit

Permalink
HAI-1844 Add test to verify no hanke kayttajas are created if no peru…
Browse files Browse the repository at this point in the history
…staja or contacts
  • Loading branch information
pitkni committed Aug 30, 2023
1 parent 7b631a9 commit 8e5d279
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ class HankeServiceITests : DatabaseTest() {
assertThat(kayttajaTunnisteRepository.findAll()).hasSize(4)
}

@Test
fun `create Hanke with without perustaja and contacts does not create hanke users`() {
hankeService.createHanke(getATestHanke())

assertThat(hankeKayttajaRepository.findAll()).isEmpty()
assertThat(kayttajaTunnisteRepository.findAll()).isEmpty()
}

@Test
fun `create Hanke with partial data set and update with full data set give correct status`() {
// Setup Hanke (without any yhteystieto):
Expand Down

0 comments on commit 8e5d279

Please sign in to comment.