All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.assertj.android.api.widget.TableRowAssert Maven / Gradle / Ivy

The newest version!
// Copyright 2013 Square, Inc.
package org.assertj.android.api.widget;

import android.widget.TableRow;

import static org.assertj.core.api.Assertions.assertThat;

/** Assertions for {@link TableRow} instances. */
public class TableRowAssert extends AbstractLinearLayoutAssert {
  public TableRowAssert(TableRow actual) {
    super(actual, TableRowAssert.class);
  }

  public TableRowAssert hasVirtualChildCount(int count) {
    isNotNull();
    int actualCount = actual.getVirtualChildCount();
    assertThat(actualCount) //
        .overridingErrorMessage("Expected virtual child count <%s> but was <%s>.", count,
            actualCount) //
        .isEqualTo(count);
    return this;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy