Search in sources :

Example 1 with GridBinaryMarshalerAwareTestClass

use of org.apache.ignite.internal.binary.mutabletest.GridBinaryMarshalerAwareTestClass in project ignite by apache.

the class BinaryObjectBuilderAdditionalSelfTest method testEditObjectWithRawData.

/**
     *
     */
public void testEditObjectWithRawData() {
    GridBinaryMarshalerAwareTestClass obj = new GridBinaryMarshalerAwareTestClass();
    obj.s = "a";
    obj.sRaw = "aa";
    BinaryObjectBuilderImpl mutableObj = wrap(obj);
    mutableObj.setField("s", "z");
    GridBinaryMarshalerAwareTestClass res = mutableObj.build().deserialize();
    assertEquals("z", res.s);
    assertEquals("aa", res.sRaw);
}
Also used : BinaryObjectBuilderImpl(org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl) GridBinaryMarshalerAwareTestClass(org.apache.ignite.internal.binary.mutabletest.GridBinaryMarshalerAwareTestClass)

Aggregations

BinaryObjectBuilderImpl (org.apache.ignite.internal.binary.builder.BinaryObjectBuilderImpl)1 GridBinaryMarshalerAwareTestClass (org.apache.ignite.internal.binary.mutabletest.GridBinaryMarshalerAwareTestClass)1