File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
datastore/src/test/java/com/google/datastore/snippets Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 3333import com .google .cloud .datastore .IncompleteKey ;
3434import com .google .cloud .datastore .Key ;
3535import com .google .cloud .datastore .KeyFactory ;
36+ import com .google .cloud .datastore .ListValue ;
3637import com .google .cloud .datastore .PathElement ;
3738import com .google .cloud .datastore .ProjectionEntity ;
3839import com .google .cloud .datastore .Query ;
@@ -224,7 +225,7 @@ public void testArrayValue() {
224225 // [START datastore_array_value]
225226 Entity task = Entity .newBuilder (taskKey )
226227 .set ("tags" , "fun" , "programming" )
227- .set ("collaborators" , "alice" , "bob" )
228+ .set ("collaborators" , ListValue . of ( "alice" , "bob" ) )
228229 .build ();
229230 // [END datastore_array_value]
230231 assertValidEntity (task );
You can’t perform that action at this time.
0 commit comments