Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,9 @@ private Cursor createCursor(
private Cursor createCursor(List<FieldOrder> order, Object[] fieldValues, boolean before) {
Cursor.Builder result = Cursor.newBuilder();

Preconditions.checkState(
fieldValues.length != 0, "At least one cursor value must be specified.");

Preconditions.checkState(
fieldValues.length <= order.size(),
"Too many cursor values specified. The specified values must match the "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ private interface ConformanceTestCase extends Test, Describable {}
/** If non-empty, only runs tests included in this set. */
private final Set<String> includedTests = Collections.emptySet();

/** If true, prints debug information to System.out. */
private final boolean DEBUG_MODE = !includedTests.isEmpty();

@Captor private ArgumentCaptor<CommitRequest> commitCapture;

@Captor private ArgumentCaptor<BatchGetDocumentsRequest> getAllCapture;
Expand Down Expand Up @@ -386,8 +389,9 @@ public void run(TestResult testResult) {
new Protectable() {
@Override
public void protect() throws Throwable {
// Uncomment to print the test protobuf:
// System.out.println(testDefinition);
if (DEBUG_MODE) {
System.out.println(testDefinition);
}

switch (testDefinition.getTestCase()) {
case GET:
Expand Down
Binary file not shown.