Search in sources :

Example 1 with ContentCaptureCondition

use of android.view.contentcapture.ContentCaptureCondition in project robolectric by robolectric.

the class ShadowContentCaptureManagerTest method getContentCaptureConditions_withContentCaptureConditions.

@Test
public void getContentCaptureConditions_withContentCaptureConditions() {
    Set<ContentCaptureCondition> contentCaptureConditions = new HashSet<>();
    contentCaptureConditions.add(new ContentCaptureCondition(new LocusId("fake locusId"), 0));
    instance.setContentCaptureConditions(contentCaptureConditions);
    assertThat(instance.getContentCaptureConditions()).isEqualTo(contentCaptureConditions);
}
Also used : ContentCaptureCondition(android.view.contentcapture.ContentCaptureCondition) LocusId(android.content.LocusId) HashSet(java.util.HashSet) Test(org.junit.Test)

Aggregations

LocusId (android.content.LocusId)1 ContentCaptureCondition (android.view.contentcapture.ContentCaptureCondition)1 HashSet (java.util.HashSet)1 Test (org.junit.Test)1