Skip to content

Commit 582f0f3

Browse files
author
Justin Lee
committed
1 parent eb71593 commit 582f0f3

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

driver-core/src/main/com/mongodb/client/model/Aggregates.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -162,23 +162,6 @@ public static Bson sort(final Bson sort) {
162162
return new SimplePipelineStage("$sort", sort);
163163
}
164164

165-
/*
166-
*/
167-
/**
168-
* Creates a $sortByCount pipeline stage for the specified filter
169-
*
170-
* @param field the field name, prefixed by a {@code '$' sign}
171-
* @return the $sortByCount pipeline stage
172-
* @mongodb.driver.manual reference/operator/aggregation/sortByCount/ $sortByCount
173-
* @mongodb.server.release 3.4
174-
* @since 3.4
175-
*//*
176-
177-
public static Bson sortByCount(final String field) {
178-
return new BsonDocument("$sortByCount", new BsonString(field));
179-
}
180-
*/
181-
182165
/**
183166
* Creates a $sortByCount pipeline stage for the specified filter
184167
*

driver-core/src/test/unit/com/mongodb/client/model/BucketAutoOptionsSpecification.groovy

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ import spock.lang.Specification
2121
import static com.mongodb.client.model.Accumulators.sum
2222

2323
class BucketAutoOptionsSpecification extends Specification {
24+
def 'defaults should be null'() {
25+
when:
26+
def options = new BucketAutoOptions()
27+
28+
then:
29+
options.granularity == null
30+
options.output == null
31+
}
32+
2433
def "should return new options with the same property values"() {
2534
when:
2635
def options = new BucketAutoOptions()

driver-core/src/test/unit/com/mongodb/client/model/BucketOptionsSpecification.groovy

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ import spock.lang.Specification
2121
import static com.mongodb.client.model.Accumulators.sum
2222

2323
class BucketOptionsSpecification extends Specification {
24+
def 'defaults should be null'() {
25+
when:
26+
def options = new BucketOptions()
27+
28+
then:
29+
options.defaultBucket == null
30+
options.output == null
31+
}
32+
2433
def "should return new options with the same property values"() {
2534
when:
2635
def options = new BucketOptions()

0 commit comments

Comments
 (0)