213
testing ComPonent-oriented soFtware
At the end of these sequences of operations, we expect to get 20 as a return value
from the getNoOfTables() operation. To perform this test, we use a test driver
component similar to those used in the last two sections. e test driver component’s
activate() method calls on the test case implementation methods. e test case
implementation code for the current test case is presented below:
private void testCase1() {
System.out.println("\n— — — — — — — — — — -");
System.out.println("Executing Test Case 1");
try {
System.out.println("Calling reconfigureTables(20)");
tableBiz.reconfigureTables(20);
Sys tem.out.println("Calling getNoOfTables() and it
returned " +
tableBiz.getNoOfTables()); ...