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

[jira] [Created] (IGNITE-14370) BinaryMarshallerSelfTest not available for code re-use

Koala Lam created IGNITE-14370:
----------------------------------

             Summary: BinaryMarshallerSelfTest not available for code re-use
                 Key: IGNITE-14370
                 URL: https://issues.apache.org/jira/browse/IGNITE-14370
             Project: Ignite
          Issue Type: Task
          Components: binary
    Affects Versions: 2.9.1
            Reporter: Koala Lam


We are building a set of filters which work with BinaryObject format of our POJOs. We want to build test to ensure these filters are built correctly. The idea is:

1) Use BinaryMarshaller to marshal our POJO  into BinraryObject format

2) Run our filters against these BinaryObject

3) Verify the result
 

We found below 2 functions may be useful for our use case. Are they made available for use? Please also advise any recommended way to test user-defined filters against BinaryObject.

https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/binary/BinaryMarshallerSelfTest.java#L3873

{code:java}
private <T> BinaryObjectImpl marshal(T obj, BinaryMarshaller marsh) throws IgniteCheckedException {
{code}

https://github.com/apache/ignite/blob/master/modules/core/src/test/java/org/apache/ignite/internal/binary/BinaryMarshallerSelfTest.java#L3940

{code:java}
    protected BinaryMarshaller binaryMarshaller(
        BinaryNameMapper nameMapper,
        BinaryIdMapper mapper,
        BinarySerializer serializer,
        Collection<BinaryTypeConfiguration> cfgs,
        Collection<String> excludedClasses
    ) throws IgniteCheckedException {
{code}



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