| java.lang.Object | |
| ↳ | android.test.ViewAsserts | 
Some useful assertions about views.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Assert that two views are aligned on their baseline, that is that their baselines
 are on the same y location. | |||||||||||
| Assert that two views are bottom aligned, that is that their bottom edges
 are on the same y location. | |||||||||||
| Assert that two views are bottom aligned, that is that their bottom edges
 are on the same y location, with respect to the specified margin. | |||||||||||
| Assert that the specified group contains a specific child once and only once. | |||||||||||
| Assert the specified group's integrity. | |||||||||||
| Assert that the specified group does not contain a specific child. | |||||||||||
| Assert that a view has a particular x and y position on the visible screen. | |||||||||||
| Assert that the  testview is horizontally center aligned
 with respect to thereferenceview. | |||||||||||
| Assert that two views are left aligned, that is that their left edges
 are on the same x location. | |||||||||||
| Assert that two views are left aligned, that is that their left edges
 are on the same x location, with respect to the specified margin. | |||||||||||
| Assert that view is above the visible screen. | |||||||||||
| Assert that view is below the visible screen. | |||||||||||
| Assert that view is on the screen. | |||||||||||
| Assert that two views are right aligned, that is that their right edges
 are on the same x location. | |||||||||||
| Assert that two views are right aligned, that is that their right edges
 are on the same x location, with respect to the specified margin. | |||||||||||
| Assert that two views are top aligned, that is that their top edges
 are on the same y location. | |||||||||||
| Assert that two views are top aligned, that is that their top edges
 are on the same y location, with respect to the specified margin. | |||||||||||
| Assert that the  testview is vertically center aligned
 with respect to thereferenceview. | |||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Object | |||||||||||
Assert that two views are aligned on their baseline, that is that their baselines are on the same y location.
| first | The first view | 
|---|---|
| second | The second view | 
Assert that two views are bottom aligned, that is that their bottom edges are on the same y location.
| first | The first view | 
|---|---|
| second | The second view | 
Assert that two views are bottom aligned, that is that their bottom edges are on the same y location, with respect to the specified margin.
| first | The first view | 
|---|---|
| second | The second view | 
| margin | The margin between the first view and the second view | 
Assert that the specified group contains a specific child once and only once.
| parent | The group | 
|---|---|
| child | The child that should belong to group | 
Assert the specified group's integrity. The children count should be >= 0 and each child should be non-null.
| parent | The group whose integrity to check | 
|---|
Assert that the specified group does not contain a specific child.
| parent | The group | 
|---|---|
| child | The child that should not belong to group | 
Assert that a view has a particular x and y position on the visible screen.
| origin | The root view of the screen. | 
|---|---|
| view | The view. | 
| x | The expected x coordinate. | 
| y | The expected y coordinate. | 
Assert that the test view is horizontally center aligned
 with respect to the reference view.
| reference | The reference view | 
|---|---|
| test | The view that should be center aligned with the reference view | 
Assert that two views are left aligned, that is that their left edges are on the same x location.
| first | The first view | 
|---|---|
| second | The second view | 
Assert that two views are left aligned, that is that their left edges are on the same x location, with respect to the specified margin.
| first | The first view | 
|---|---|
| second | The second view | 
| margin | The margin between the first view and the second view | 
Assert that view is above the visible screen.
| origin | Te root view of the screen. | 
|---|---|
| view | The view | 
Assert that view is below the visible screen.
| origin | The root view of the screen. | 
|---|---|
| view | The view | 
Assert that view is on the screen.
| origin | The root view of the screen. | 
|---|---|
| view | The view. | 
Assert that two views are right aligned, that is that their right edges are on the same x location.
| first | The first view | 
|---|---|
| second | The second view | 
Assert that two views are right aligned, that is that their right edges are on the same x location, with respect to the specified margin.
| first | The first view | 
|---|---|
| second | The second view | 
| margin | The margin between the first view and the second view | 
Assert that two views are top aligned, that is that their top edges are on the same y location.
| first | The first view | 
|---|---|
| second | The second view | 
Assert that two views are top aligned, that is that their top edges are on the same y location, with respect to the specified margin.
| first | The first view | 
|---|---|
| second | The second view | 
| margin | The margin between the first view and the second view | 
Assert that the test view is vertically center aligned
 with respect to the reference view.
| reference | The reference view | 
|---|---|
| test | The view that should be center aligned with the reference view |