208
ComPonent-oriented develoPment and assemblY
As an example, consider the TableBiz component that was validated in the last
section. As already discussed, this component provides the ITableBiz interface.
In the verification of internal implementation, one needs to test all the operations
defined in the ITableBiz interface. For illustration purposes, we present the test-
ing technique for one of the operations defined in the ITableBiz interface: the
occupyTable() operation. is operation is implemented in the class TableBiz.
e code snippet of the implementation is given below:
pub lic void occupyTable(Table table, int noOfGuests, String
waiter)
throws Exception {
if (table = = null) {
thr ow new Exception("Cannot checkin -
Invalid Table"); ...