Package org.apache.directory.api.ldap.extras.controls.syncrepl.syncInfoValue

Examples of org.apache.directory.api.ldap.extras.controls.syncrepl.syncInfoValue.SyncRequestValue


                'b',
                'c' //     cookie syncCookie OPTIONAL,
        } );
        bb.flip();

        SyncRequestValue decorator = new SyncRequestValueDecorator( codec );

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

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

        // Check the encoding
        try
        {
            ByteBuffer buffer = ( ( SyncRequestValueDecorator ) syncRequestValue ).encode( ByteBuffer
View Full Code Here


                0x04,
                0x00, //     cookie syncCookie OPTIONAL,
            } );
        bb.flip();

        SyncRequestValue decorator = new SyncRequestValueDecorator( codec );

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

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

        // Check the encoding
        try
        {
            bb = ByteBuffer.allocate( 0x05 );
View Full Code Here

            {
                0x30, 0x00 // syncRequestValue ::= SEQUENCE {
        } );
        bb.flip();

        SyncRequestValue decorator = new SyncRequestValueDecorator( codec );

        try
        {
            ( ( SyncRequestValueDecorator ) decorator ).decode( bb.array() );
            fail( "we should not get there" );
View Full Code Here

                'b',
                'c' //     cookie syncCookie OPTIONAL,
        } );
        bb.flip();

        SyncRequestValue decorator = new SyncRequestValueDecorator( codec );

        try
        {
            ( ( SyncRequestValueDecorator ) decorator ).decode( bb.array() );
            fail( "we should not get there" );
View Full Code Here

TOP

Related Classes of org.apache.directory.api.ldap.extras.controls.syncrepl.syncInfoValue.SyncRequestValue

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.