IDEAS home Printed from https://ideas.repec.org/p/zbw/ercisw/25.html
   My bibliography  Save this paper

A program transformation for converting Java assertions into control-flow statements

Author

Listed:
  • Caballero, Rafael
  • von Hof, Vincent
  • Montenegro, Manuel
  • Kuchen, Herbert

Abstract

We present a technique for checking the validity of Java assertions using an arbitrary automated test-case generator. Our framework transforms the program by introducing code that detects whether the assertion conditions are met by every direct and indirect method call within a certain depth level. Then, any automated test-case generator can be used to look for input examples that falsify the conditions. The program transformation ensures that the value obtained for these inputs represents a path of method calls that ends with a violation of some assertion. We show experiments with two different automatic test-case generators that demonstrate not just the applicability of our proposal but also that we can get a better coverage than the same test-case generators without our transformation.

Suggested Citation

  • Caballero, Rafael & von Hof, Vincent & Montenegro, Manuel & Kuchen, Herbert, 2016. "A program transformation for converting Java assertions into control-flow statements," ERCIS Working Papers 25, University of Münster, European Research Center for Information Systems (ERCIS).
  • Handle: RePEc:zbw:ercisw:25
    as

    Download full text from publisher

    File URL: https://www.econstor.eu/bitstream/10419/156083/1/881585211.pdf
    Download Restriction: no

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:zbw:ercisw:25. See general information about how to correct material in RePEc.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (ZBW - Leibniz Information Centre for Economics). General contact details of provider: http://edirc.repec.org/data/ilmuede.html .

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.