Package com.couchbase.client.java

Source Code of com.couchbase.client.java.BucketInfoTest

package com.couchbase.client.java;

import com.couchbase.client.java.bucket.BucketInfo;
import com.couchbase.client.java.bucket.BucketType;
import com.couchbase.client.java.util.ClusterDependentTest;
import org.junit.Test;

import static org.junit.Assert.*;

public class BucketInfoTest extends ClusterDependentTest  {

    @Test
    public void shouldLoadBucketInfo() {
        BucketInfo info = bucket().bucketManager().info();

        assertEquals(BucketType.COUCHBASE, info.type());
        assertEquals(bucketName(), info.name());
        assertTrue(info.nodeCount() > 0);
        assertNotNull(info.raw());
    }

}
TOP

Related Classes of com.couchbase.client.java.BucketInfoTest

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.