You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@plc4x.apache.org by "Łukasz Dywicki (Jira)" <ji...@apache.org> on 2021/02/04 22:45:00 UTC

[jira] [Resolved] (PLC4X-265) Improve test suite XML mapping for raw values

     [ https://issues.apache.org/jira/browse/PLC4X-265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Łukasz Dywicki resolved PLC4X-265.
----------------------------------
    Fix Version/s: 0.9.0
       Resolution: Fixed

> Improve test suite XML mapping for raw values
> ---------------------------------------------
>
>                 Key: PLC4X-265
>                 URL: https://issues.apache.org/jira/browse/PLC4X-265
>             Project: Apache PLC4X
>          Issue Type: Improvement
>          Components: Testing
>    Affects Versions: 0.8.0
>            Reporter: Łukasz Dywicki
>            Assignee: Łukasz Dywicki
>            Priority: Major
>             Fix For: 0.9.0
>
>
> Test suites we use contain various inputs. For serializer tests payloads given as an input are encoded using hex.
> By default byte arrays returned by serializer are compared using base64 output. This makes testing rather hard because any "offset" (+/- 1) issues ie. in calculation of array length are not visible due to different representation of frame and its "blob" part.
> We can improve that by customizing mapping (at least for Java) to write all {{byte[]}} values using hex. Similar improvement can be made for {{byte}} which is much easier to be compared using hex representation rather than decimal one.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)