- Support libraries updated to 26.
- New assertions!
android.support.design.widget.TextInputLayout
android.support.v4.media.MediaMetadataCompat
- New:
ViewAssert
gains assertions forelevation
,z
, andtranslationZ
. - New:
TimePickerAssert
gains assertions forhour
andminute
. - New:
IntentAssert
gains assertions forpacakge
. - 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
andcanNotResolveTextAlignment
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
andhasMinimumHeight
to assert against actual value. - Fix:
MediaRouteDiscoveryRequestAssert
now assert against actual values.
- 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. UsehasOnlyFlags
to check for an exact match. - Fix:
TabLayoutAssert.hasTabMode
now 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
minSdkVersion
declared in Card View, Palette, and Recycler View modules.
- Add assertions for
CameraPosition
,GoogleMap
,Marker
, andUiSettings
to Play Services. - Change methods taking a
boolean
to have individual "enabled" and "disabled" assertions in Play Services. - Add string conversions for
Activity
,Display
,TextView
andView
flag assertions messages. - Moved assertions from
ListViewAssert
toAbstractListViewAssert
. - Fix: Use correct value from view for
NumberPickerAssert.hasValue
. - Fix: Correct
Intent.hasFlags
assert and update its known flags. - Fix: Update AppCompat's
SearchView
assertion 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
hasItem
anddoesNotHaveItem
check toAdapter
. - Added
hasRequestedOrientation
check toActivity
. - Fix:
TextView
'sendsWith
now properly matches the end of text instead of start.
- Added check for input method target for
TextView
. - Fix:
TextView
empty check uses emptyString
instead 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
String
text assertion toTextView
. - Generation script now supports Python 3.
- New assertions:
android.app.Instrumentation.ActivityMonitor
android.app.Instrumentation.ActivityResult
android.app.ListActivity
android.preference.CheckBoxPreference
android.preference.DialogPreference
android.preference.EditTextPreference
android.preference.ListPreference
android.preference.MultiSelectListPreference
android.preference.PreferenceActivity
android.preference.Preference
android.preference.PreferenceGroup
android.preference.PreferenceScreen
android.preference.RingtonePreference
android.preference.SwitchPreference
android.preference.TwoStatePreference
android.util.AttributeSet
android.util.Pair
- Added convenience methods for orientations to
Display
,LinearLayout
, andGridLayout
. - Added error and ellipsis checks for
TextView
. - Added column name checks for
Cursor
. LinearLayout
andAdapterView
assertions now correctly extend fromViewGroup
assertions.- Added
TextView
text assertions for empty, contains, starts with, and ends with. - Added general
hasVisibility(int)
assertion forView
. - Correct spelling of
isNotInvisible
assertions forView
. - Support for generics by assertions classes (e.g.,
LruCacheAssert<K, V>
). - Support using string resource ID for most text assertions.
Initial release.