JUnit Test Fixture Pattern
15 January 2019 OSU CSE 1
JUnit Test Fixture Pattern 15 January 2019 OSU CSE 1 The Problem - - PowerPoint PPT Presentation
JUnit Test Fixture Pattern 15 January 2019 OSU CSE 1 The Problem In principle, a test fixture for a kernel class should be usable with any kernel class (UUT, or unit under test) that purports to implement the same interface
15 January 2019 OSU CSE 1
15 January 2019 OSU CSE 2
15 January 2019 OSU CSE 3
15 January 2019 OSU CSE 4
15 January 2019 OSU CSE 5
15 January 2019 OSU CSE 6
15 January 2019 OSU CSE 7
15 January 2019 OSU CSE 8
15 January 2019 OSU CSE 9
15 January 2019 OSU CSE 10
15 January 2019 OSU CSE 11
15 January 2019 OSU CSE 12
extends Stack1LTest
constructorTest constructorRef StackTest
public abstract class StackTest { protected abstract Stack<String> constructorTest(); protected abstract Stack<String> constructorRef(); ... }
15 January 2019 OSU CSE 13
public abstract class StackTest { protected abstract Stack<String> constructorTest(); protected abstract Stack<String> constructorRef(); ... }
15 January 2019 OSU CSE 14
public abstract class StackTest { protected abstract Stack<String> constructorTest(); protected abstract Stack<String> constructorRef(); ... }
15 January 2019 OSU CSE 15
public abstract class StackTest { protected abstract Stack<String> constructorTest(); protected abstract Stack<String> constructorRef(); ... }
15 January 2019 OSU CSE 16
public class Stack1LTest extends StackTest { @Override protected final Stack<String> constructorTest() { ... } @Override protected final Stack<String> constructorRef() { ... } }
15 January 2019 OSU CSE 17
public class Stack1LTest extends StackTest { @Override protected final Stack<String> constructorTest() { ... } @Override protected final Stack<String> constructorRef() { ... } }
15 January 2019 OSU CSE 18
public class Stack1LTest extends StackTest { @Override protected final Stack<String> constructorTest() { ... } @Override protected final Stack<String> constructorRef() { ... } }
15 January 2019 OSU CSE 19
15 January 2019 OSU CSE 20
15 January 2019 OSU CSE 21
15 January 2019 OSU CSE 22
15 January 2019 OSU CSE 23
15 January 2019 OSU CSE 24
15 January 2019 OSU CSE 25