Skip to content

Commit 9d3eb7c

Browse files
authored
refactor: remove redundant snippet tags from ancestor query test (#10318)
1 parent e880397 commit 9d3eb7c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

appengine-java8/datastore/src/test/java/com/example/appengine/QueriesTest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ public void ancestorFilterExample_returnsMatchingEntities() throws Exception {
183183

184184
@Test
185185
public void ancestorQueryExample_returnsMatchingEntities() throws Exception {
186-
// [START gae_java8_datastore_ancestor_query]
187186
DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();
188187

189188
Entity tom = new Entity("Person", "Tom");
@@ -211,7 +210,6 @@ public void ancestorQueryExample_returnsMatchingEntities() throws Exception {
211210
// but not campingPhoto, because tom is not an ancestor
212211
List<Entity> results =
213212
datastore.prepare(photoQuery).asList(FetchOptions.Builder.withDefaults());
214-
// [END gae_java8_datastore_ancestor_query]
215213

216214
assertWithMessage("query results")
217215
.that(results)

0 commit comments

Comments
 (0)