org.assertj.android.api.widget.TableRowAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of assertj-android Show documentation
Show all versions of assertj-android Show documentation
A set of AssertJ assertion helpers geared toward testing Android.
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;
}
}