Search in sources :

Example 1 with CouchbaseMock

use of com.couchbase.mock.CouchbaseMock in project samza by apache.

the class TestCouchbaseRemoteTableEndToEnd method createMockBuckets.

private void createMockBuckets(List<String> bucketNames) throws Exception {
    ArrayList<BucketConfiguration> configList = new ArrayList<>();
    bucketNames.forEach(name -> configList.add(configBucket(name)));
    couchbaseMock = new CouchbaseMock(0, configList);
    couchbaseMock.start();
    couchbaseMock.waitForStartup();
}
Also used : CouchbaseMock(com.couchbase.mock.CouchbaseMock) ArrayList(java.util.ArrayList) BucketConfiguration(com.couchbase.mock.BucketConfiguration)

Aggregations

BucketConfiguration (com.couchbase.mock.BucketConfiguration)1 CouchbaseMock (com.couchbase.mock.CouchbaseMock)1 ArrayList (java.util.ArrayList)1