MetadataController
public
class
MetadataController
extends Object
java.lang.Object | |
↳ | com.google.android.libraries.car.app.testing.model.MetadataController |
A controller that allows testing of a Metadata
.
This controller allows getting the following fields:
- The
Place
set viaMetadata.Builder.setPlace(Place)
.
Summary
Public methods | |
---|---|
Metadata
|
get()
Retrieves the |
PlaceController
|
getPlace()
Returns a |
static
MetadataController
|
of(Metadata metadata)
Creates a |
Inherited methods | |
---|---|
Public methods
get
public Metadata get ()
Retrieves the Metadata
that this controller is controlling.
Returns | |
---|---|
Metadata |
getPlace
public PlaceController getPlace ()
Returns a PlaceController
for the Place
that is contained in the Row
being controlled.
The Place
is the one set via Metadata.Builder.setPlace(Place)
, or null
if
none was set.
Returns | |
---|---|
PlaceController |
of
public static MetadataController of (Metadata metadata)
Creates a MetadataController
to control a Metadata
for testing.
Parameters | |
---|---|
metadata |
Metadata |
Returns | |
---|---|
MetadataController |