Package com.tangosol.io.pof

Examples of com.tangosol.io.pof.ConfigurablePofContext


        Assert.assertEquals(null, extracter.extractFromBinary(ctx, blob));       
    }

    @Test
    public void testTypeB_TU() {
        ConfigurablePofContext ctx = new ConfigurablePofContext(XmlHelper.loadXml(getClass().getResource("/test-pof-config.xml")));
       
        TypeB b = new TypeB();
        b.tu = TimeUnit.MILLISECONDS;
       
        Binary blob = ExternalizableHelper.toBinary(b, ctx);
View Full Code Here


        Assert.assertEquals(TimeUnit.MILLISECONDS, extracter.extractFromBinary(ctx, blob));       
    }
   
    @Test
    public void testTypeB_TU_null() {
        ConfigurablePofContext ctx = new ConfigurablePofContext(XmlHelper.loadXml(getClass().getResource("/test-pof-config.xml")));
       
        TypeB b = new TypeB();
        b.tu = null;
       
        Binary blob = ExternalizableHelper.toBinary(b, ctx);
View Full Code Here

        Assert.assertEquals(null, extracter.extractFromBinary(ctx, blob));       
    }

    @Test
    public void testTypeB_StringArray() {
        ConfigurablePofContext ctx = new ConfigurablePofContext(XmlHelper.loadXml(getClass().getResource("/test-pof-config.xml")));
       
        TypeB b = new TypeB();
        b.stringArray = new String[]{"A","B","C"};
       
        Binary blob = ExternalizableHelper.toBinary(b, ctx);
View Full Code Here

        Assert.assertEquals(3, extracter.extractFromBinary(ctx, blob));       
    }

    @Test
    public void testTypeB_StringArray_null() {
        ConfigurablePofContext ctx = new ConfigurablePofContext(XmlHelper.loadXml(getClass().getResource("/test-pof-config.xml")));
       
        TypeB b = new TypeB();
        b.stringArray = null;
       
        Binary blob = ExternalizableHelper.toBinary(b, ctx);
View Full Code Here

        Assert.assertEquals(null, extracter.extractFromBinary(ctx, blob));       
    }

    @Test
    public void testTypeB_IntArray() {
        ConfigurablePofContext ctx = new ConfigurablePofContext(XmlHelper.loadXml(getClass().getResource("/test-pof-config.xml")));
       
        int[] array = {1, 2, 3};
        TypeB b = new TypeB();
        b.intArray = array;
       
View Full Code Here

        Assert.assertEquals(3, extracter.extractFromBinary(ctx, blob));       
    }

    @Test
    public void testTypeB_IntArray_null() {
        ConfigurablePofContext ctx = new ConfigurablePofContext(XmlHelper.loadXml(getClass().getResource("/test-pof-config.xml")));
       
        TypeB b = new TypeB();
        b.intArray = null;
       
        Binary blob = ExternalizableHelper.toBinary(b, ctx);
View Full Code Here

        Assert.assertEquals(null, extracter.extractFromBinary(ctx, blob));       
    }

    @Test
    public void testTypeC_String() {
        ConfigurablePofContext ctx = new ConfigurablePofContext(XmlHelper.loadXml(getClass().getResource("/test-pof-config.xml")));
       
        TypeB b = new TypeB();
        b.string = "ABC";
        TypeC c = new TypeC();
        c.b = b;
View Full Code Here

        Assert.assertEquals(2, extracter.extractFromBinary(ctx, blob));       
    }

    @Test
    public void testTypeC_String_length() {
        ConfigurablePofContext ctx = new ConfigurablePofContext(XmlHelper.loadXml(getClass().getResource("/test-pof-config.xml")));
       
        TypeB b = new TypeB();
        b.string = "ABC";
        TypeC c = new TypeC();
        c.b = b;
View Full Code Here

        Assert.assertEquals(3, extracter.extractFromBinary(ctx, blob));       
    }

    @Test
    public void testTypeC_String_null() {
        ConfigurablePofContext ctx = new ConfigurablePofContext(XmlHelper.loadXml(getClass().getResource("/test-pof-config.xml")));
       
        TypeB b = new TypeB();
        b.string = null;
        TypeC c = new TypeC();
        c.b = b;
View Full Code Here

        Assert.assertEquals(null, extracter.extractFromBinary(ctx, blob));       
    }

    @Test
    public void testTypeC_TU() {
        ConfigurablePofContext ctx = new ConfigurablePofContext(XmlHelper.loadXml(getClass().getResource("/test-pof-config.xml")));
       
        TypeB b = new TypeB();
        b.tu = TimeUnit.MILLISECONDS;
        TypeC c = new TypeC();
        c.b = b;
View Full Code Here

TOP

Related Classes of com.tangosol.io.pof.ConfigurablePofContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.