Methods Summary |
---|
protected void | setUp()
super.setUp();
mA = new A();
mOne = new ChildOfAOne();
mTwo = new ChildOfATwo();
mThree = new ChildOfAThree();
mFour = new ChildOfAFour();
mFive = new ChildOfAFive();
|
public void | testDerivedFour()
InterfaceFour four = mFour;
for (int i = 0; i < 100000; i++) {
assertFalse("m_four should not be a ChildOfAFive", four instanceof ChildOfAFive);
}
|
public void | testDerivedOne()
InterfaceOne one = mOne;
for (int i = 0; i < 100000; i++) {
assertFalse("m_one should not be a ChildOfAFive", one instanceof ChildOfAFive);
}
|
public void | testDerivedThree()
InterfaceThree three = mThree;
for (int i = 0; i < 100000; i++) {
assertFalse("m_three should not be a ChildOfAFive", three instanceof ChildOfAFive);
}
|
public void | testDerivedTwo()
InterfaceTwo two = mTwo;
for (int i = 0; i < 100000; i++) {
assertFalse("m_two should not be a ChildOfAFive", two instanceof ChildOfAFive);
}
|
public void | testFailInterface()
InterfaceOne one = mFive;
for (int i = 0; i < 100000; i++) {
assertFalse("m_five does not implement InterfaceFive", one instanceof InterfaceFive);
}
|
public void | testNoInterface()
A a = mA;
for (int i = 0; i < 100000; i++) {
assertFalse("m_a should not be a ChildOfAFive", a instanceof ChildOfAFive);
}
|
public void | testSuccessClass()
ChildOfAOne five = mFive;
for (int i = 0; i < 100000; i++) {
assertTrue("m_five is suppose to be a ChildOfAFive", five instanceof ChildOfAFive);
}
|
public void | testSuccessInterface()
ChildOfAFive five = mFive;
for (int i = 0; i < 100000; i++) {
assertTrue("m_five is suppose to be a InterfaceFour", five instanceof InterfaceFour);
}
|