org.fest.assertions.api.android.database.AbstractAbstractCursorAssert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fest-android Show documentation
Show all versions of fest-android Show documentation
A set of FEST assertion helpers geared toward testing Android.
// Copyright 2013 Square, Inc.
package org.fest.assertions.api.android.database;
import android.database.AbstractCursor;
import android.net.Uri;
import static org.fest.assertions.api.Assertions.assertThat;
public abstract class AbstractAbstractCursorAssert, A extends AbstractCursor>
extends AbstractCursorAssert {
protected AbstractAbstractCursorAssert(A actual, Class selfType) {
super(actual, selfType);
}
public S hasNotificationUri(Uri uri) {
isNotNull();
Uri actualUri = actual.getNotificationUri();
assertThat(actualUri) //
.overridingErrorMessage("Expected notification URI <%s> but was <%s>.", uri, actualUri) //
.isEqualTo(uri);
return myself;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy