org.assertj.android.api.database.AbstractAbstractCursorAssert 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.database;
import android.annotation.TargetApi;
import android.database.AbstractCursor;
import android.net.Uri;
import static android.os.Build.VERSION_CODES.HONEYCOMB;
import static org.assertj.core.api.Assertions.assertThat;
public abstract class AbstractAbstractCursorAssert, A extends AbstractCursor>
extends AbstractCursorAssert {
protected AbstractAbstractCursorAssert(A actual, Class selfType) {
super(actual, selfType);
}
@TargetApi(HONEYCOMB)
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;
}
}