Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vimleshtna committed Jan 24, 2024
1 parent b62fa7f commit 286f2d2
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,21 @@ class ValidateFileMetadataServiceSpec extends AnyFlatSpec with MockitoSugar with
when(mockFileStatusRepository.deleteFileStatus(any[Set[UUID]], any[Set[String]])).thenReturn(Future.successful(1))
when(mockCustomMetadataService.getCustomMetadata).thenReturn(Future(mockFields))
when(mockFileMetadataRepository.getFileMetadata(Some(any[UUID]), any[Option[Set[UUID]]], any[Option[Set[String]]])).thenReturn(Future(metadataRows))

val expectedPropertyNames =
Seq(
"ClosureType",
"TitleClosed",
"DescriptionClosed",
"FoiExemptionCode",
"TitleAlternate",
"AlternativeDescription",
"Language",
"description",
"ClosurePeriod",
"MultiValueWithDependencies"
)
when(mockDisplayPropertiesService.getActiveDisplayPropertyNames).thenReturn(Future(expectedPropertyNames))
}
}

Expand Down

0 comments on commit 286f2d2

Please sign in to comment.