Conference Proceeding
Engineering Abstractions in Model Checking and Testing
Dept. of Comput. Sci., Univ. of Aarhus, Aarhus, Denmark
10/2009;
DOI:10.1109/SCAM.2009.25
In proceeding of: Source Code Analysis and Manipulation, 2009. SCAM '09. Ninth IEEE International Working Conference on
Source: IEEE Xplore
-
Citations (0)
- Cited In (1)
-
Article: Testing object-oriented programs using dynamic aspects and non-determinism
[show abstract] [hide abstract]
ABSTRACT: The implementation of unit tests with mock objects and stubs often involves substantial manual work. Stubbed methods return simple default values, therefore variations of these values require separate test cases. The integration of mock objects often requires more infrastructure code and design decisions exposing private data. We present an approach that both improves the expressiveness of test cases using non-deterministic choice and reduces design modifications using dynamic aspect-oriented programming techniques. Non-deterministic choice facilitates local definitions of multiple executions without parameterization or generation of tests. It also eases modelling naturally non-deterministic program features like IO or multi-threading in integration tests. Dynamic AOP facilitates powerful design adaptations without exposing test features, keeping the scope of these adaptations local to each test. We also combine non-determinism and dynamic aspects in a new approach to testing multi-threaded programs using co-routines.
Data provided are for informational purposes only. Although carefully collected, accuracy cannot be guaranteed.
The impact factor represents a rough estimation of the journal's impact factor and does not reflect the actual
current impact factor.
Publisher conditions are provided by RoMEO. Differing provisions from the publisher's actual policy or licence
agreement may be applicable.