Testing in OOP - RJAE5/2143-OOP GitHub Wiki
Testing in OOP
Testing in Object-Oriented Programming involves verifying that objects, methods, and interactions between classes behave as expected. It typically includes "unit testing", where individual methods or functions are tested in isolation, and "integration testing", where the interaction between different objects and classes is tested.
Additionally, testing in OOP can include the use of "mocking" and "stubbing" to simulate dependencies between objects and ensure that tests are isolated and repeatable. Proper testing ensures the reliability of the system by catching errors early in development. In addition there is a heavy emphasis on the use of exception handling.
See Exception Handling for more on error checking and testing.
Important Notes
- Testing in OOP helps ensure reliable software
- There are a variety of tests which utilize exception handling and other methods to verify correctness