Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-988

TestContext: add createIfMissing and sampleBucket methods

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • None
    • None
    • None
    • None

    Description

      createIfMissing allows to throw an exception if the requested bucket is missing.
      bucketSample is a shortcut to:

      • createIfMissing false
      • adhoc false
      • flushOnInit false
      • bucketName = sampleBucketName
      • bucketPassword = ""

      This is useful for tests that use a sample bucket when said sample hasn't been loaded (as otherwise an empty bucket would be created and the tests would fail due to expecting documents in there).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            simonbasle Simon Baslé (Inactive)
            simonbasle Simon Baslé (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty