You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "HzjNeverStop (GitHub)" <gi...@apache.org> on 2019/12/02 04:06:34 UTC

[GitHub] [dubbo-hessian-lite] HzjNeverStop opened issue #19: Transform Set to Set In FiledObject

Version 3.2.5-SNAPSHOT

    @Test
    public void serialize_short_set_then_deserialize() throws Exception {

        Hessian2StringShortType stringShort = new Hessian2StringShortType();
        Set<Short> shortSet = new HashSet<Short>();
        shortSet.add((short) 0);
        shortSet.add((short) 60);
        stringShort.shortSet = shortSet;

        Hessian2StringShortType deserialize = baseHessian2Serialize(stringShort);
        assertTrue(deserialize.shortSet != null);
        assertTrue(deserialize.shortSet.size() == 2);
        assertTrue(deserialize.shortSet.contains((short) 0));
        assertTrue(deserialize.shortSet.contains((short) 60));
    }

Assert Failed.
deserialize.shortSet contains (Integer)0 and (Integer) 60

[ Full content available at: https://github.com/apache/dubbo-hessian-lite/issues/19 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


[GitHub] [dubbo-hessian-lite] chickenlj closed issue #19: Transform Set to Set In FiledObject

Posted by "chickenlj (GitHub)" <gi...@apache.org>.
[ issue closed by chickenlj ]

[ Full content available at: https://github.com/apache/dubbo-hessian-lite/issues/19 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org