Methods Summary |
---|
protected void | setUp()
super.setUp();
final Activity activity = getActivity();
mParent = activity.findViewById(R.id.parent);
mLeftView = activity.findViewById(R.id.left);
mRightView = activity.findViewById(R.id.right);
mTopView = activity.findViewById(R.id.top);
mBottomView = activity.findViewById(R.id.bottom);
|
public void | testBottomMarginAligned()
ViewAsserts.assertBottomAligned(mParent, mBottomView,
((ViewGroup.MarginLayoutParams) mBottomView.getLayoutParams()).bottomMargin);
|
public void | testLeftMarginAligned()
ViewAsserts.assertLeftAligned(mParent, mLeftView,
((ViewGroup.MarginLayoutParams) mLeftView.getLayoutParams()).leftMargin);
|
public void | testRightMarginAligned()
ViewAsserts.assertRightAligned(mParent, mRightView,
((ViewGroup.MarginLayoutParams) mRightView.getLayoutParams()).rightMargin);
|
public void | testSetUpConditions()
assertNotNull(mParent);
assertNotNull(mLeftView);
assertNotNull(mRightView);
assertNotNull(mTopView);
assertNotNull(mBottomView);
|
public void | testTopMarginAligned()
ViewAsserts.assertTopAligned(mParent, mTopView,
((ViewGroup.MarginLayoutParams) mTopView.getLayoutParams()).topMargin);
|