File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
appengine-java8/datastore/src/test/java/com/example/appengine Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -430,32 +430,6 @@ public void queryInterface_multipleFilters_printsMatchedEntities() throws Except
430
430
assertThat (buf .toString ()).doesNotContain ("Charlie" );
431
431
}
432
432
433
- @ Test
434
- public void queryInterface_singleFilter_returnsMatchedEntities () throws Exception {
435
- // Arrange
436
- Entity a = new Entity ("Person" , "a" );
437
- a .setProperty ("height" , 100 );
438
- Entity b = new Entity ("Person" , "b" );
439
- b .setProperty ("height" , 150 );
440
- Entity c = new Entity ("Person" , "c" );
441
- c .setProperty ("height" , 300 );
442
- datastore .put (ImmutableList .<Entity >of (a , b , c ));
443
-
444
- // Act
445
- long minHeight = 150 ;
446
- // [START gae_java8_datastore_interface_2]
447
- Filter heightMinFilter =
448
- new FilterPredicate ("height" , FilterOperator .GREATER_THAN_OR_EQUAL , minHeight );
449
-
450
- Query q = new Query ("Person" ).setFilter (heightMinFilter );
451
- // [END gae_java8_datastore_interface_2]
452
-
453
- // Assert
454
- List <Entity > results =
455
- datastore .prepare (q .setKeysOnly ()).asList (FetchOptions .Builder .withDefaults ());
456
- assertWithMessage ("query results" ).that (results ).containsExactly (b , c );
457
- }
458
-
459
433
@ Test
460
434
public void queryInterface_orFilter_printsMatchedEntities () throws Exception {
461
435
// Arrange
You can’t perform that action at this time.
0 commit comments