Skip to content

Commit

Permalink
refs: #12931
Browse files Browse the repository at this point in the history
  • Loading branch information
fp-ps committed May 22, 2022
1 parent 6450010 commit 81f60d6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ private void validateJsonResponsePriceList(@NonNull final Map<String, String> ro
private void validateJsonResponsePriceListVersion(@NonNull final Map<String, String> row, @NonNull final JsonPriceListVersionResponse jsonResponsePriceListVersion)
{
final Timestamp validFrom = DataTableUtil.extractDateTimestampForColumnName(row, JsonPriceListVersionResponse.class.getSimpleName() + "." + I_M_PriceList_Version.COLUMNNAME_ValidFrom);
// final String plvName = DataTableUtil.extractStringForColumnName(row, JsonPriceListVersionResponse.class.getSimpleName() + "." + I_M_PriceList_Version.COLUMNNAME_Name);
final String plvName = DataTableUtil.extractStringForColumnName(row, JsonPriceListVersionResponse.class.getSimpleName() + "." + I_M_PriceList_Version.COLUMNNAME_Name);

assertThat(jsonResponsePriceListVersion.getValidFrom()).isEqualTo(validFrom.toInstant());
// assertThat(jsonResponsePriceListVersion.getName()).isEqualTo(plvName);
assertThat(jsonResponsePriceListVersion.getName()).isEqualTo(plvName);

final I_M_PriceList_Version priceListVersion = InterfaceWrapperHelper.load(jsonResponsePriceListVersion.getMetasfreshId().getValue(), I_M_PriceList_Version.class);
assertThat(priceListVersion).isNotNull();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Feature: Prices rest controller

And validate JsonResponseProductPriceQuery.JsonPriceListResponse.JsonPriceListVersionResponse
| M_PriceList_Version_ID.Identifier | M_PriceList_ID.Identifier | JsonPriceListVersionResponse.Name | JsonPriceListVersionResponse.ValidFrom |
| priceListVersion_1 | priceList_1 | priceListName_1 2022-05-01 | 2022-05-01 |
| priceListVersion_1 | priceList_1 | priceListVersionName_1 | 2022-05-01 |

And validate JsonResponseProductPriceQuery.JsonPriceListResponse.JsonPriceListVersionResponse.JsonResponsePrice
| M_PriceList_Version_ID.Identifier | M_PriceList_ID.Identifier | M_Product_ID.Identifier | JsonResponsePrice.Value | JsonResponsePrice.PriceStd | C_TaxCategory_ID.InternalName |
Expand Down

0 comments on commit 81f60d6

Please sign in to comment.