Methods Summary |
---|
public void | setUp()
super.setUp();
mView = (Button) getActivity().findViewById(R.id.disabledButton);
|
public void | testGetTag()
Object o = new Object();
mView.setTag(o);
final Object stored = mView.getTag();
assertNotNull(stored);
assertSame("The stored tag is inccorect", o, stored);
|
public void | testGetTagWithKey()
Object o = new Object();
mView.setTag(R.id.a, o);
final Object stored = mView.getTag(R.id.a);
assertNotNull(stored);
assertSame("The stored tag is inccorect", o, stored);
|
public void | testSetTag()
mView.setTag("1");
|
public void | testSetTagInternalWithApplicationId()
boolean result = false;
try {
mView.setTagInternal(R.id.a, "2");
} catch (IllegalArgumentException e) {
result = true;
}
assertTrue("Setting a tag with an id with app package did not throw an exception", result);
|
public void | testSetTagInternalWithFrameworkId()
mView.setTagInternal(android.R.id.list, "2");
|
public void | testSetTagWithFrameworkId()
boolean result = false;
try {
mView.setTag(android.R.id.list, "2");
} catch (IllegalArgumentException e) {
result = true;
}
assertTrue("Setting a tag with a framework id did not throw an exception", result);
|
public void | testSetTagWithKey()
mView.setTag(R.id.a, "2");
|
public void | testSetTagWithNoPackageId()
boolean result = false;
try {
mView.setTag(0x000000AA, "2");
} catch (IllegalArgumentException e) {
result = true;
}
assertTrue("Setting a tag with an id with no package did not throw an exception", result);
|
public void | testSetUpConditions()
assertNotNull(mView);
|