• No results found

Testing object Interactions Grüner, A.

N/A
N/A
Protected

Academic year: 2021

Share "Testing object Interactions Grüner, A."

Copied!
5
0
0

Bezig met laden.... (Bekijk nu de volledige tekst)

Hele tekst

(1)

Citation

Grüner, A. (2010, December 15). Testing object Interactions. Retrieved from https://hdl.handle.net/1887/16243

Version: Corrected Publisher’s Version

License: Licence agreement concerning inclusion of doctoral thesis in the Institutional Repository of the University of Leiden

Downloaded from: https://hdl.handle.net/1887/16243

Note: To cite this publication please use the final published version (if

applicable).

(2)

Part I

Testing Sequential Components

19

(3)
(4)

21

In this main part of this thesis we will propose a component testing approach for Java components. The contribution is threefold. We will define a test spec- ification language which allows to specify the desired behavior of a component in terms of expected communication with its environment, i.e., in terms of its interface behavior. Moreover, we will present an algorithm for automatically gen- erating a test program from a given specification such that the program tests for a component’s conformance to the specified interface behavior. To this end, we will first present a formally defined programming language which captures a subset of the Java language. In particular, we will provide a formal semantics for components of this language. This enables us to investigate and characterize the possible observable interface behavior of a component.

The characterization will help us to find an appropriate design of the specifi- cation language, which will be a careful balance between two goals: we will use programming constructs in Java-like notation that help the programmer to specify the interaction without having to learn a completely new specification notation.

On the other hand, additional expressions in the specification language will al- low to specify the desired interface behavior in a concise, abstract way, hiding the intricacies of the required synchronization code at the lower-level program- ming language. Moreover, the formal language will be used to formalize the code generation algorithm and to proof its correctness.

(5)

Referenties

GERELATEERDE DOCUMENTEN

Finally, we sketch how the code generation algorithm of the single-threaded setting can be modified in order to generate test programs also for

Consequently, the thread configuration mapping is extended by the new thread n, where n is mapped to its thread class and a new call stack consisting of the method or, respectively,

Note, furthermore, that we need not to provide a specification statement for the expectation of incoming spawns. To understand the reason, consider the case that we do provide such

As a third step, we developed a test code generation algorithm which allows to automatically generate a Japl test program from a test specification.. A central contribution is

Kiczales (ed.) Proceedings of the 23rd ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA 2008), pp.

License: Licence agreement concerning inclusion of doctoral thesis in the Institutional Repository of the University of Leiden. Downloaded

Moreover, while we assume that the specification does not introduce any local variables (apart from the parameter of a incoming method or constructor call), meaning that the

In het bijzonder, in plaats van de traditionele toestand-gebaseerde tests door middel van een input-output vergelijking, is het in een object-geori¨ enteerde context nuttiger om