Methods Summary |
---|
protected void | setUp()
super.setUp();
final CellSpan activity = getActivity();
mA = activity.findViewById(R.id.a);
mB = activity.findViewById(R.id.b);
mC = activity.findViewById(R.id.c);
mSpanThenCell = activity.findViewById(R.id.spanThenCell);
mCellThenSpan = activity.findViewById(R.id.cellThenSpan);
mSpan = activity.findViewById(R.id.span);
|
public void | testCellThenSpan()
int spanWidth = mB.getMeasuredWidth() + mC.getMeasuredWidth();
assertEquals("cell followed by span is broken", spanWidth,
mCellThenSpan.getMeasuredWidth());
|
public void | testSetUpConditions()
assertNotNull(mA);
assertNotNull(mB);
assertNotNull(mC);
assertNotNull(mSpanThenCell);
assertNotNull(mCellThenSpan);
assertNotNull(mSpan);
|
public void | testSpan()
int spanWidth = mA.getMeasuredWidth() + mB.getMeasuredWidth() +
mC.getMeasuredWidth();
assertEquals("span is broken", spanWidth, mSpan.getMeasuredWidth());
|
public void | testSpanThenCell()
int spanWidth = mA.getMeasuredWidth() + mB.getMeasuredWidth();
assertEquals("span followed by cell is broken", spanWidth,
mSpanThenCell.getMeasuredWidth());
|