From c43e8085977077f90e3258e0cdd1a1899090bdb3 Mon Sep 17 00:00:00 2001 From: Roman Kiselev Date: Sun, 12 Jul 2020 14:39:46 +0300 Subject: [PATCH] #481 fixed error on MR --- .../lib/creating/chronoLocalDateTimeAssertions.kt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/misc/deprecated/domain/robstoll-lib/atrium-domain-robstoll-lib-jvm/src/main/kotlin/ch/tutteli/atrium/domain/robstoll/lib/creating/chronoLocalDateTimeAssertions.kt b/misc/deprecated/domain/robstoll-lib/atrium-domain-robstoll-lib-jvm/src/main/kotlin/ch/tutteli/atrium/domain/robstoll/lib/creating/chronoLocalDateTimeAssertions.kt index 9572cf6675..c22ae18038 100644 --- a/misc/deprecated/domain/robstoll-lib/atrium-domain-robstoll-lib-jvm/src/main/kotlin/ch/tutteli/atrium/domain/robstoll/lib/creating/chronoLocalDateTimeAssertions.kt +++ b/misc/deprecated/domain/robstoll-lib/atrium-domain-robstoll-lib-jvm/src/main/kotlin/ch/tutteli/atrium/domain/robstoll/lib/creating/chronoLocalDateTimeAssertions.kt @@ -22,7 +22,7 @@ fun > _isBefore(expect: Expect, expected: ChronoLo assertionBuilder.createDescriptive(expect, IS_BEFORE, expected) { it.isBefore(expected) } fun > _isBefore(expect: Expect, expected: String): Assertion = - ExpectImpl.builder.createDescriptive(expect, IS_BEFORE, expected) { it.isBefore(stringToLocalDateTime(expected)) } + assertionBuilder.createDescriptive(expect, IS_BEFORE, expected) { it.isBefore(stringToLocalDateTime(expected)) } @Suppress("DeprecatedCallableAddReplaceWith") @Deprecated("use the function from atrium-logic instead, will be removed with 1.0.0") @@ -37,8 +37,7 @@ fun > _isBeforeOrEquals( fun > _isBeforeOrEquals( expect: Expect, expected: String -): Assertion = - ExpectImpl.builder.createDescriptive(expect, IS_BEFORE_OR_EQUAL, expected) { +): Assertion = assertionBuilder.createDescriptive(expect, IS_BEFORE_OR_EQUAL, expected) { it.isBefore(stringToLocalDateTime(expected)) || it.isEqual(stringToLocalDateTime(expected)) } @@ -54,7 +53,7 @@ fun > _isAfter( fun > _isAfter( expect: Expect, expected: String -): Assertion = ExpectImpl.builder.createDescriptive(expect, IS_AFTER, expected) { +): Assertion = assertionBuilder.createDescriptive(expect, IS_AFTER, expected) { it.isAfter(stringToLocalDateTime(expected)) } @@ -70,7 +69,7 @@ fun > _isAfterOrEquals( fun > _isAfterOrEquals( expect: Expect, expected: String -): Assertion = ExpectImpl.builder.createDescriptive(expect, IS_AFTER_OR_EQUAL, expected) { +): Assertion = assertionBuilder.createDescriptive(expect, IS_AFTER_OR_EQUAL, expected) { it.isAfter(stringToLocalDateTime(expected)) || it.isEqual(stringToLocalDateTime(expected)) } @@ -84,7 +83,7 @@ fun > _isEqual( fun > _isEqual( expect: Expect, expected: String -): Assertion = ExpectImpl.builder.createDescriptive(expect, IS_EQUAL_TO, expected) { +): Assertion = assertionBuilder.createDescriptive(expect, IS_EQUAL_TO, expected) { it.isEqual(stringToLocalDateTime(expected)) }