Skip to content

Commit

Permalink
Fixing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
TebaleloS committed Aug 14, 2024
1 parent 182fe3c commit 4c8f899
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import java.time.ZonedDateTime
import java.util.UUID
import MeasureResultDTO.TypedValue
import za.co.absa.atum.model.ResultValueType
import za.co.absa.atum.server.api.repository.PartitioningRepositoryUnitTests.partitioningDTO1

trait TestData {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import za.co.absa.atum.server.api.service.PartitioningService
import za.co.absa.atum.server.model.InternalServerErrorResponse
import za.co.absa.atum.server.model.SuccessResponse.SingleSuccessResponse
import zio._
import zio.test.Assertion.{equalTo, failsWithA}
import zio.test.Assertion.failsWithA
import zio.test._

object PartitioningControllerUnitTests extends ZIOSpecDefault with TestData {
Expand Down Expand Up @@ -80,7 +80,7 @@ object PartitioningControllerUnitTests extends ZIOSpecDefault with TestData {
result <- PartitioningController.createOrUpdateAdditionalDataV2(additionalDataSubmitDTO1)
expected = SingleSuccessResponse(additionalDataSubmitDTO1, uuid)
actual = result.copy(requestId = uuid)
} yield assert(actual)(equalTo(expected))
} yield assertTrue(actual == expected)
},
test("Returns expected InternalServerErrorResponse") {
assertZIO(PartitioningController.createOrUpdateAdditionalDataV2(additionalDataSubmitDTO2).exit)(
Expand Down

0 comments on commit 4c8f899

Please sign in to comment.