Skip to content

Commit

Permalink
fix unit test assert
Browse files Browse the repository at this point in the history
  • Loading branch information
nerevar committed Nov 2, 2023
1 parent b0da946 commit a9b4add
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class DtoContractUnitTest {
val ignoreNullablePropertiesCount = nullablePropertyRules
.filterIsInstance<IgnoreNullable<*, *>>()
.size
assertEquals(977, ignoreNullablePropertiesCount) {
assertEquals(976, ignoreNullablePropertiesCount) {
"You MUST NOT add exclusion with type IgnoreNullable() which is used only for old fields until they are fixed.\n" +
"Please make added property non-nullable if possible.\n" +
"If Ecwid API sometimes return null as value for this property you CAN add it to as `AllowNullable()` exclusion type instead."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ val fetchedCartNullablePropertyRules: List<NullablePropertyRule<*, *>> = listOf(
IgnoreNullable(FetchedCart::total),
IgnoreNullable(FetchedCart::totalAndMembershipBasedDiscount),
IgnoreNullable(FetchedCart::trackingNumber),
IgnoreNullable(FetchedCart::trackingUrl),
AllowNullable(FetchedCart::trackingUrl),
IgnoreNullable(FetchedCart::updateDate),
IgnoreNullable(FetchedCart::updateTimestamp),
IgnoreNullable(FetchedCart::usdTotal),
Expand Down

0 comments on commit a9b4add

Please sign in to comment.