assertj-android v1.2.0 Release Notes

Release Date: 2017-08-26 // over 2 years ago
    • Support libraries updated to 26.
    • New assertions!
      • android.support.design.widget.TextInputLayout
      • android.support.v4.media.MediaMetadataCompat
    • New: ViewAssert gains assertions for elevation, z, and translationZ.
    • New: TimePickerAssert gains assertions for hour and minute.
    • New: IntentAssert gains assertions for pacakge.
    • Fix: ViewAssert.hasTag now checks based on equality, not identity.
    • Fix: BluetoothClassAssert.doesNotHave to correctly assert negatively.
    • Fix: BluetoothGattCharacteristicAssert.hasUuid to assert against actual value.
    • Fix: BluetoothGattDescriptorAssert.hasUuid to assert against actual value.
    • Fix: BluetoothGattServiceAssert.hasUuid to assert against actual value.
    • Fix: ViewAssert.canResolveTextAlignment and canNotResolveTextAlignment to check the correct property.
    • Fix: DisplayAssert.hasDisplayId to assert against actual value.
    • Fix: ToastAssert.hasGravity to assert against actual value.
    • Fix: AnimationAssert.hasStartTime to assert against actual value.
    • Fix: RecyclerViewLayoutManagerAssert.hasMinimumWidth and hasMinimumHeight to assert against actual value.
    • Fix: MediaRouteDiscoveryRequestAssert now assert against actual values.

Previous changes from v1.1.1

    • Add assertion for Uri.
    • New: Overload for IntentAssert.hasExtra which takes a value to compare.
    • Fix: NotificationAssert.hasFlags now checks to see if the specified flags are set while allowing unspecified flags to also be set. Use hasOnlyFlags to check for an exact match.
    • Fix: TabLayoutAssert.hasTabMode now correctly compares against the tab mode instead of count.