- Support libraries updated to 26.
- New assertions!
android.support.design.widget.TextInputLayoutandroid.support.v4.media.MediaMetadataCompat
- New:
ViewAssertgains assertions forelevation,z, andtranslationZ. - New:
TimePickerAssertgains assertions forhourandminute. - New:
IntentAssertgains assertions forpacakge. - Fix:
ViewAssert.hasTagnow checks based on equality, not identity. - Fix:
BluetoothClassAssert.doesNotHaveto correctly assert negatively. - Fix:
BluetoothGattCharacteristicAssert.hasUuidto assert against actual value. - Fix:
BluetoothGattDescriptorAssert.hasUuidto assert against actual value. - Fix:
BluetoothGattServiceAssert.hasUuidto assert against actual value. - Fix:
ViewAssert.canResolveTextAlignmentandcanNotResolveTextAlignmentto check the correct property. - Fix:
DisplayAssert.hasDisplayIdto assert against actual value. - Fix:
ToastAssert.hasGravityto assert against actual value. - Fix:
AnimationAssert.hasStartTimeto assert against actual value. - Fix:
RecyclerViewLayoutManagerAssert.hasMinimumWidthandhasMinimumHeightto assert against actual value. - Fix:
MediaRouteDiscoveryRequestAssertnow assert against actual values.
- Add assertion for
Uri. - New: Overload for
IntentAssert.hasExtrawhich takes a value to compare. - Fix:
NotificationAssert.hasFlagsnow checks to see if the specified flags are set while allowing unspecified flags to also be set. UsehasOnlyFlagsto check for an exact match. - Fix:
TabLayoutAssert.hasTabModenow correctly compares against the tab mode instead of count.
- New: Design library add-on module! Includes assertions for
NavigationView,Snackbar,TabLayout, andTabLayout.Tab. - Fix: Correct
minSdkVersiondeclared in Card View, Palette, and Recycler View modules.
- Add assertions for
CameraPosition,GoogleMap,Marker, andUiSettingsto Play Services. - Change methods taking a
booleanto have individual "enabled" and "disabled" assertions in Play Services. - Add string conversions for
Activity,Display,TextViewandViewflag assertions messages. - Moved assertions from
ListViewAsserttoAbstractListViewAssert. - Fix: Use correct value from view for
NumberPickerAssert.hasValue. - Fix: Correct
Intent.hasFlagsassert and update its known flags. - Fix: Update AppCompat's
SearchViewassertion to reflect it extending fromLinearLayout.
Convert project from 'fest-android' to 'assertj-android'.
- New: Add-on modules!
- Support library (v4)
- Google Play Services
- AppCompat (v7)
- Media Router (v7)
- Grid Layout (v7)
- Recycler View (v7)
- Card View (v7)
- Pallete (v7)
NOTE: The following change log is from the 'fest-android' releases which remain a part of this repository history.
- New assertions:
android.content.SharedPreferences
- Added
hasItemanddoesNotHaveItemcheck toAdapter. - Added
hasRequestedOrientationcheck toActivity. - Fix:
TextView'sendsWithnow properly matches the end of text instead of start.
- Added check for input method target for
TextView. - Fix:
TextViewempty check uses emptyStringinstead of emptyCharSequence. - Fix: Correct missing format arguments on some error strings.
- Added checks for the absence of fragments by ID or tag on
FragmentManager. - Added component name and data check for
Intent. - Fix: Correct missing format arguments on some error strings.
- Added bitmap and paint check to
BitmapDrawble. - Added map-liked assertions for
ContentValues.
- Added custom view check for
ActionBar. - Added flag assert for
Intent. - Added regex 'matches' and 'does not match' for
TextView.
- Update to FEST 2.0M10 which resolves a potential Android incompatibility.
- New assertions:
android.content.ContentValues
- Added negative assertions to
CursorLoader. - Added
Stringtext assertion toTextView. - Generation script now supports Python 3.
- New assertions:
android.app.Instrumentation.ActivityMonitorandroid.app.Instrumentation.ActivityResultandroid.app.ListActivityandroid.preference.CheckBoxPreferenceandroid.preference.DialogPreferenceandroid.preference.EditTextPreferenceandroid.preference.ListPreferenceandroid.preference.MultiSelectListPreferenceandroid.preference.PreferenceActivityandroid.preference.Preferenceandroid.preference.PreferenceGroupandroid.preference.PreferenceScreenandroid.preference.RingtonePreferenceandroid.preference.SwitchPreferenceandroid.preference.TwoStatePreferenceandroid.util.AttributeSetandroid.util.Pair
- Added convenience methods for orientations to
Display,LinearLayout, andGridLayout. - Added error and ellipsis checks for
TextView. - Added column name checks for
Cursor. LinearLayoutandAdapterViewassertions now correctly extend fromViewGroupassertions.- Added
TextViewtext assertions for empty, contains, starts with, and ends with. - Added general
hasVisibility(int)assertion forView. - Correct spelling of
isNotInvisibleassertions forView. - Support for generics by assertions classes (e.g.,
LruCacheAssert<K, V>). - Support using string resource ID for most text assertions.
Initial release.