File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
firestore/src/test/java/com/example/firestore/snippets Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 2828import com .google .cloud .firestore .FirestoreOptions ;
2929import com .google .cloud .firestore .QuerySnapshot ;
3030import java .util .ArrayList ;
31+ import java .util .HashMap ;
3132import java .util .HashSet ;
3233import java .util .List ;
3334import java .util .Map ;
@@ -104,7 +105,9 @@ public void testRetrieveAllDocuments() throws Exception {
104105 @ Test
105106 public void testGetSubcollections () throws Exception {
106107 // Add a landmark subcollection
107- db .document ("cities/SF/landmarks/example" ).set (new Object ()).get ();
108+ Map <String , String > data = new HashMap <>();
109+ data .put ("foo" , "bar" );
110+ db .document ("cities/SF/landmarks/example" ).set (data ).get ();
108111
109112 Iterable <CollectionReference > collections =
110113 retrieveDataSnippets .getCollections ();
You can’t perform that action at this time.
0 commit comments