File tree Expand file tree Collapse file tree 3 files changed +18
-17
lines changed
main/com/mongodb/client/model
test/unit/com/mongodb/client/model Expand file tree Collapse file tree 3 files changed +18
-17
lines changed Original file line number Diff line number Diff 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 *
Original file line number Diff line number Diff line change @@ -21,6 +21,15 @@ import spock.lang.Specification
2121import static com.mongodb.client.model.Accumulators.sum
2222
2323class 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 ()
Original file line number Diff line number Diff line change @@ -21,6 +21,15 @@ import spock.lang.Specification
2121import static com.mongodb.client.model.Accumulators.sum
2222
2323class 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 ()
You can’t perform that action at this time.
0 commit comments