public S hasKey(String key) { isNotNull(); assertThat(actual.contains(key)) .overridingErrorMessage("Expected key <%s> to be present but it was not.", key) .isTrue(); return myself; }
public S doesNotHaveKey(String key) { isNotNull(); assertThat(actual.contains(key)) .overridingErrorMessage("Expected key <%s> not to be present but it was.", key) .isFalse(); return myself; }
/** * Assert that a given {@link Component} produces a layout that's not equivalent to {@link * ComponentContext#NULL_LAYOUT}. */ public ComponentAssert willRender() { Java6Assertions.assertThat(Component.willRender(mComponentContext, actual)) .overridingErrorMessage("Expected Component to not render to null, but it did.") .isTrue(); return this; }
/** * Assert that a given {@link Component} renders to null, i.e. its <code>onCreateLayout * </code> method resolves to a {@link ComponentContext#NULL_LAYOUT}. */ public ComponentAssert wontRender() { Java6Assertions.assertThat(Component.willRender(mComponentContext, actual)) .overridingErrorMessage("Expected Component to render to null, but it did not.") .isFalse(); return this; }
@TargetApi(JELLY_BEAN_MR1) public BitmapAssert isPremultiplied() { isNotNull(); assertThat(actual.isPremultiplied()) // .overridingErrorMessage("Expected to be premultiplied but was not premultiplied.") // .isTrue(); return this; }
@TargetApi(JELLY_BEAN_MR1) public BitmapAssert isNotPremultiplied() { isNotNull(); assertThat(actual.isPremultiplied()) // .overridingErrorMessage("Expected to not be premultiplied but was premultiplied.") // .isFalse(); return this; }
@TargetApi(HONEYCOMB) public CanvasAssert isNotHardwareAccelerated() { isNotNull(); assertThat(actual.isHardwareAccelerated()) // .overridingErrorMessage("Expected to not be hardware accelerated but was.") // .isFalse(); return this; }
public BitmapAssert isMutable() { isNotNull(); assertThat(actual.isMutable()) // .overridingErrorMessage("Expected to be mutable but was not mutable.") // .isTrue(); return this; }
public BitmapAssert hasAlphaSupport() { isNotNull(); assertThat(actual.hasAlpha()) // .overridingErrorMessage("Expected to have alpha support but did not have it.") // .isTrue(); return this; }
public S isBeforeFirst() { isNotNull(); assertThat(actual.isBeforeFirst()) // .overridingErrorMessage("Expected to be before first but was not.") // .isTrue(); return myself; }
public S isNotClosed() { isNotNull(); assertThat(actual.isClosed()) // .overridingErrorMessage("Expected to not be closed but was.") // .isFalse(); return myself; }
public S isNotFirst() { isNotNull(); assertThat(actual.isFirst()) // .overridingErrorMessage("Expected to not be at first but was.") // .isFalse(); return myself; }
public S isLast() { isNotNull(); assertThat(actual.isLast()) // .overridingErrorMessage("Expected to be at last but was not.") // .isTrue(); return myself; }
public GestureStoreAssert hasNotChanged() { isNotNull(); assertThat(actual.hasChanged()) // .overridingErrorMessage("Expected to not be changed but was.") // .isFalse(); return this; } }
public BitmapRegionDecoderAssert isNotRecycled() { isNotNull(); assertThat(actual.isRecycled()) // .overridingErrorMessage("Expected to not be recycled but was recycled.") // .isFalse(); return this; } }
public MovieAssert isNotOpaque() { isNotNull(); assertThat(actual.isOpaque()) // .overridingErrorMessage("Expected to not be opaque but was.") // .isFalse(); return this; }
public S isNotAntiAliased() { isNotNull(); assertThat(actual.isAntiAlias()) // .overridingErrorMessage("Expected to not be anti-aliased but was.") // .isFalse(); return myself; }
public S isDithering() { isNotNull(); assertThat(actual.isDither()) // .overridingErrorMessage("Expected to be dithering but was not.") // .isTrue(); return myself; }
public GestureOverlayViewAssert isFadeEnabled() { isNotNull(); assertThat(actual.isFadeEnabled()) // .overridingErrorMessage("Expected to have fade enabled but was disabled.") // .isTrue(); return this; }
public RectAssert isEmpty() { isNotNull(); assertThat(actual.isEmpty()) // .overridingErrorMessage("Expected to be empty but was not.") // .isTrue(); return this; }