Skip to content

Commit

Permalink
Two tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
IBA-mainframe-dev committed May 17, 2024
1 parent f76e9b5 commit 684e8ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class WriteFileToDatasetStepSpec : ShouldSpec({
val zosConnection = ZOSConnection(mockServer.hostName, mockServer.port.toString(), "test", "test", "https")
val rootDir = Paths.get("").toAbsolutePath().toString()
val trashDir = tempdir()
val mockDir = Paths.get(rootDir, "src", "test", "resources", "mock").toString()
val itemGroup = object : TestItemGroup() {
override fun getRootDirFor(child: Item?): File {
return trashDir
Expand Down Expand Up @@ -97,7 +98,7 @@ class WriteFileToDatasetStepSpec : ShouldSpec({
val writeFileToDatasetDecl = spyk(
WriteFileToDatasetStep("test", "TEST.IJMP.DATASET1", "workspace")
)
writeFileToDatasetDecl.setWorkspacePath("test_file.txt")
writeFileToDatasetDecl.setLocalFilePath(mockDir + "/test_file.txt")
writeFileToDatasetDecl.perform(
build,
launcher,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class WriteFileToFileStepSpec : ShouldSpec({
val zosConnection = ZOSConnection(mockServer.hostName, mockServer.port.toString(), "test", "test", "https")
val rootDir = Paths.get("").toAbsolutePath().toString()
val trashDir = tempdir()
val mockDir = Paths.get(rootDir, "src", "test", "resources", "mock").toString()
val itemGroup = object : TestItemGroup() {
override fun getRootDirFor(child: Item?): File {
return trashDir
Expand Down Expand Up @@ -98,7 +99,7 @@ class WriteFileToFileStepSpec : ShouldSpec({
val writeFileToFileDecl = spyk(
WriteFileToFileStep("test", "/u/TEST/test.txt", false, "workspace")
)
writeFileToFileDecl.setWorkspacePath("test_file.txt")
writeFileToFileDecl.setLocalFilePath(mockDir + "/test_file.txt")
writeFileToFileDecl.perform(
build,
launcher,
Expand Down

0 comments on commit 684e8ce

Please sign in to comment.