Java Code Examples for android.support.test.espresso.matcher.ViewMatchers#Visibility

The following examples show how to use android.support.test.espresso.matcher.ViewMatchers#Visibility . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NotCompletable_Tests.java    From cortado with Apache License 2.0 5 votes vote down vote up
@Test
public void withEffectiveVisibility_addsCorrectMatcher() {
    //given
    ViewMatchers.Visibility testVisibility = ViewMatchers.Visibility.GONE;

    //when
    notCompletable.withEffectiveVisibility(testVisibility);

    //then
    assertExpectedAddedMatcher(ViewMatchers.withEffectiveVisibility(testVisibility));
}
 
Example 2
Source File: Unfinished.java    From cortado with Apache License 2.0 4 votes vote down vote up
@IdeSuggestion
@Override
public final Cortado.Or.Matcher withEffectiveVisibility(ViewMatchers.Visibility visibility) {
    return super.withEffectiveVisibility(visibility);
}
 
Example 3
Source File: NotCompletable.java    From cortado with Apache License 2.0 4 votes vote down vote up
@Override
public T withEffectiveVisibility(ViewMatchers.Visibility visibility) {
    cortado.withEffectiveVisibility(visibility);
    return returned();
}
 
Example 4
Source File: Start.java    From cortado with Apache License 2.0 4 votes vote down vote up
@IdeSuggestion
@Override
public final Cortado.OrAnd.ViewInteraction withEffectiveVisibility(ViewMatchers.Visibility visibility) {
    return super.withEffectiveVisibility(visibility);
}
 
Example 5
Source File: Start.java    From cortado with Apache License 2.0 4 votes vote down vote up
@IdeSuggestion
@Override
public final Cortado.OrAnd.Matcher withEffectiveVisibility(ViewMatchers.Visibility visibility) {
    return super.withEffectiveVisibility(visibility);
}
 
Example 6
Source File: Cortado.java    From cortado with Apache License 2.0 4 votes vote down vote up
final void withEffectiveVisibility(ViewMatchers.Visibility visibility) {
    clearCached();
    addMatcher(ViewMatchers.withEffectiveVisibility(visibility));
}
 
Example 7
Source File: Negated.java    From cortado with Apache License 2.0 4 votes vote down vote up
@IdeSuggestion
@Override
public final Cortado.And.ViewInteraction withEffectiveVisibility(ViewMatchers.Visibility visibility) {
    return super.withEffectiveVisibility(visibility);
}
 
Example 8
Source File: Negated.java    From cortado with Apache License 2.0 4 votes vote down vote up
@IdeSuggestion
@Override
public final Cortado.And.Matcher withEffectiveVisibility(ViewMatchers.Visibility visibility) {
    return super.withEffectiveVisibility(visibility);
}
 
Example 9
Source File: Negated.java    From cortado with Apache License 2.0 4 votes vote down vote up
@IdeSuggestion
@Override
public final Cortado.Or.ViewInteraction withEffectiveVisibility(ViewMatchers.Visibility visibility) {
    return super.withEffectiveVisibility(visibility);
}
 
Example 10
Source File: Negated.java    From cortado with Apache License 2.0 4 votes vote down vote up
@IdeSuggestion
@Override
public final Cortado.Or.Matcher withEffectiveVisibility(ViewMatchers.Visibility visibility) {
    return super.withEffectiveVisibility(visibility);
}
 
Example 11
Source File: Negated.java    From cortado with Apache License 2.0 4 votes vote down vote up
@IdeSuggestion
@Override
public final Cortado.OrAnd.ViewInteraction withEffectiveVisibility(ViewMatchers.Visibility visibility) {
    return super.withEffectiveVisibility(visibility);
}
 
Example 12
Source File: Negated.java    From cortado with Apache License 2.0 4 votes vote down vote up
@IdeSuggestion
@Override
public final Cortado.OrAnd.Matcher withEffectiveVisibility(ViewMatchers.Visibility visibility) {
    return super.withEffectiveVisibility(visibility);
}
 
Example 13
Source File: Unfinished.java    From cortado with Apache License 2.0 4 votes vote down vote up
@IdeSuggestion
@Override
public final Cortado.And.ViewInteraction withEffectiveVisibility(ViewMatchers.Visibility visibility) {
    return super.withEffectiveVisibility(visibility);
}
 
Example 14
Source File: Unfinished.java    From cortado with Apache License 2.0 4 votes vote down vote up
@IdeSuggestion
@Override
public final Cortado.And.Matcher withEffectiveVisibility(ViewMatchers.Visibility visibility) {
    return super.withEffectiveVisibility(visibility);
}
 
Example 15
Source File: Unfinished.java    From cortado with Apache License 2.0 4 votes vote down vote up
@IdeSuggestion
@Override
public final Cortado.Or.ViewInteraction withEffectiveVisibility(ViewMatchers.Visibility visibility) {
    return super.withEffectiveVisibility(visibility);
}
 
Example 16
Source File: EspAllOfBuilder.java    From espresso-macchiato with MIT License 2 votes vote down vote up
/**
 * Add matcher for visibility.
 *
 * @param visible expected visibility
 * @return The current builder.
 * @since Espresso Macchiato 0.6
 */
public EspAllOfBuilder<ElementT> withVisibility(ViewMatchers.Visibility visible) {
    matcher.add(ViewMatchers.withEffectiveVisibility(visible));
    return this;
}
 
Example 17
Source File: Matching.java    From cortado with Apache License 2.0 votes vote down vote up
T withEffectiveVisibility(ViewMatchers.Visibility visibility);