Package org.apache.directory.shared.ldap.extras.controls.syncrepl_impl

Examples of org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncRequestValueDecorator.decode()


            } );
        bb.flip();

        SyncRequestValueDecorator decorator = new SyncRequestValueDecorator( codec );
       
        SyncRequestValue syncRequestValue = (SyncRequestValue)decorator.decode( bb.array() );

        assertEquals( SynchronizationModeEnum.REFRESH_ONLY, syncRequestValue.getMode() );
        assertEquals( "abc", Strings.utf8ToString(syncRequestValue.getCookie()) );
        assertEquals( false, syncRequestValue.isReloadHint() );
View Full Code Here


            } );
        bb.flip();

        SyncRequestValueDecorator decorator = new SyncRequestValueDecorator( codec );
       
        SyncRequestValue syncRequestValue = (SyncRequestValue)decorator.decode( bb.array() );

        assertEquals( SynchronizationModeEnum.REFRESH_AND_PERSIST, syncRequestValue.getMode() );
        assertEquals( "abc", Strings.utf8ToString(syncRequestValue.getCookie()) );
        assertEquals( false, syncRequestValue.isReloadHint() );
View Full Code Here

            } );
        bb.flip();

        SyncRequestValueDecorator decorator = new SyncRequestValueDecoratorcodec );
       
        SyncRequestValue syncRequestValue = (SyncRequestValue)decorator.decode( bb.array() );

        assertEquals( SynchronizationModeEnum.REFRESH_AND_PERSIST, syncRequestValue.getMode() );
        assertNull( syncRequestValue.getCookie() );
        assertEquals( false, syncRequestValue.isReloadHint() );
View Full Code Here

            } );
        buffer.flip();

        SyncRequestValueDecorator decorator = new SyncRequestValueDecorator( codec );
       
        SyncRequestValue syncRequestValue = (SyncRequestValue)decorator.decode( buffer.array() );

        assertEquals( SynchronizationModeEnum.REFRESH_AND_PERSIST, syncRequestValue.getMode() );
        assertNull( syncRequestValue.getCookie() );
        assertEquals( true, syncRequestValue.isReloadHint() );
View Full Code Here

            } );
        bb.flip();

        SyncRequestValueDecorator decorator = new SyncRequestValueDecorator( codec );
       
        SyncRequestValue syncRequestValue = (SyncRequestValue)decorator.decode( bb.array() );

        assertEquals( SynchronizationModeEnum.REFRESH_AND_PERSIST, syncRequestValue.getMode() );
        assertNull( syncRequestValue.getCookie() );
        assertEquals( false, syncRequestValue.isReloadHint() );
View Full Code Here

            } );
        bb.flip();

        SyncRequestValueDecorator decorator = new SyncRequestValueDecorator( codec );
       
        SyncRequestValue syncRequestValue = (SyncRequestValue)decorator.decode( bb.array() );

        assertEquals( SynchronizationModeEnum.REFRESH_AND_PERSIST, syncRequestValue.getMode() );
        assertEquals( "abc", Strings.utf8ToString(syncRequestValue.getCookie()) );
        assertEquals( false, syncRequestValue.isReloadHint() );
View Full Code Here

            } );
        bb.flip();

        SyncRequestValueDecorator decorator = new SyncRequestValueDecorator( codec );
       
        SyncRequestValue syncRequestValue = (SyncRequestValue)decorator.decode( bb.array() );

        assertEquals( SynchronizationModeEnum.REFRESH_AND_PERSIST, syncRequestValue.getMode() );
        assertEquals( "", Strings.utf8ToString(syncRequestValue.getCookie()) );
        assertEquals( false, syncRequestValue.isReloadHint() );
View Full Code Here

        SyncRequestValueDecorator decorator = new SyncRequestValueDecorator( codec );
       
        try
        {
            decorator.decode( bb.array() );
            fail( "we should not get there" );
        }
        catch ( DecoderException de )
        {
            assertTrue( true );
View Full Code Here

        SyncRequestValueDecorator decorator = new SyncRequestValueDecorator( codec );
       
        try
        {
            decorator.decode( bb.array() );
            fail( "we should not get there" );
        }
        catch ( DecoderException de )
        {
            assertTrue( true );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.