yo-yoEx - 1 Testing Object-Oriented Software: A Yo-Yo...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1 Testing Object-Oriented Software: A Yo-Yo Problem Example Prof. Roger Alexander Computer Science Department Colorado State University (C) Copyright 1999-2001. All Rights Reserved. 2 Overriding Methods & Testing The Yo-Yo Problem Methods that compute semantically close functions may require different tests (Antiextensionality axiom) Must test in the context of the class that specifies them Must test in the context of all parent classes Must consider patterns of state interactions of the overriding method in comparison to the overridden method 2 (C) Copyright 1999-2001. All Rights Reserved. 3 Example Method Defs Uses A::h {A::u,A::w} A::i {A::u} A::j {A::v} {A::w} A::l {A::v} B::h {B::x} B::i {B::x} C::i {C::y} C::j {C::y} C::l {A::v} +d() +g() +h() +i() +j() +l()-t-u-v-w A +h() +i() +k()-x B +i() +j() +l() C (C) Copyright 1999-2001. All Rights Reserved. 4 Example Method Defs Uses A::h {A::u,A::w} A::i {A::u} A::j {A::v} {A::w} A::l {A::v} B::h {B::x} B::i {B::x} C::i {C::y} C::j...
View Full Document

This note was uploaded on 05/29/2010 for the course CS 514 taught by Professor Prof.j.bieman during the Fall '09 term at Colorado State.

Page1 / 6

yo-yoEx - 1 Testing Object-Oriented Software: A Yo-Yo...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online