Skip to content

Commit

Permalink
Added missing function
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexYoungmanMoJ committed Feb 3, 2025
1 parent b823fd5 commit a64098e
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ import io.swagger.v3.oas.annotations.security.SecurityRequirement
import uk.gov.justice.digital.hmpps.learnerrecordsapi.models.request.LearnersRequest
import uk.gov.justice.digital.hmpps.learnerrecordsapi.models.response.LearnersResponse
import uk.gov.justice.hmpps.kotlin.common.ErrorResponse
import java.nio.file.Files
import java.nio.file.Paths
import kotlin.text.Charsets.UTF_8

fun readResourceFile(fileName: String): String {
val resourcePath = Paths.get("src/test/resources", fileName)
return Files.readString(resourcePath, UTF_8)
}

@Target(AnnotationTarget.FUNCTION)
@Retention(AnnotationRetention.RUNTIME)
Expand Down

0 comments on commit a64098e

Please sign in to comment.