assertThat( queryDescriptor.getOrderBy() ).isNull();
}
@Test
public void shouldParseQueryWithSeveralConditions() {
NativeQueryParser parser = Parboiled.createParser( NativeQueryParser.class );
ReportingParseRunner<MongoDBQueryDescriptorBuilder> runner = new ReportingParseRunner<MongoDBQueryDescriptorBuilder>( parser.Query() );
ParsingResult<MongoDBQueryDescriptorBuilder> run = runner
.run( "db.Order.find( { \"foo\" : true, \"bar\" : 42, \"baz\" : \"qux\" } )");
assertThat( run.hasErrors() ).isFalse();
MongoDBQueryDescriptor queryDescriptor = run.resultValue.build();