skip to main content
10.1145/2591028.2600815acmotherconferencesArticle/Chapter ViewAbstractPublication PagessugarloafplopConference Proceedingsconference-collections
research-article

Patterns for introducing a superclass for test classes

Published:20 September 2012Publication History

ABSTRACT

A test class is an isolated piece of software that is responsible for verifying the expected behavior of a class, a component or an application. Because test classes can be developed without consideration of good design, sometimes individual test classes might include redundant code or become large and unwieldy. This paper presents two patterns that propose the introduction of a common superclass for test classes in order to reduce code bulk, reuse more test code and achieve a better test organization.

References

  1. Alexander, C., Ishikawa, S., Silverstein, M. (1977) "A Pattern language: towns, buildings, construction", Oxford, Oxford University Press.Google ScholarGoogle Scholar
  2. Azevedo, R. (2011) "Um Modelo para Ferramentas de Automação de Refatoração de Código de Teste", Monografia de Especialização em Engenharia de Software, Instituto Tecnológico de Aeronáutica.Google ScholarGoogle Scholar
  3. Esfinge Framework (2012) "Esfinge Framework", http://esfinge.sf.net, May.Google ScholarGoogle Scholar
  4. Functor (2012) "Apache Commons Functor", http://commons.apache.org/functor/, May.Google ScholarGoogle Scholar
  5. Gamma, E. et al. (1994) "Design patterns: elements of reusable object-oriented software", Addison-Wesley. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. Guerra, E. (2011) "Práticas para Lidar com Arquitetura em Ambientes Ágeis", Revista MundoJ, Edição 50, Editora Mundo.Google ScholarGoogle Scholar
  7. Jenkins CI (2012) "Jenkins CI", http://www.jenkins-ci.org, May.Google ScholarGoogle Scholar
  8. Meszaros, G. (2007) "XUnit test patterns: refactoring test code", Person Education, Inc. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. TestLink Java API (2012) "TestLink Java API", http://testlinkjavaapi.sourceforge.net/. May.Google ScholarGoogle Scholar
  10. Wadler, Phil (1998) "The Expression Problem", http://www.daimi.au.dk/~madst/tool/papers/expression.txt. July.Google ScholarGoogle Scholar

Index Terms

  1. Patterns for introducing a superclass for test classes

          Recommendations

          Comments

          Login options

          Check if you have access through your login credentials or your institution to get full access on this article.

          Sign in
          • Published in

            cover image ACM Other conferences
            SugarLoafPLoP '12: Proceedings of the 9th Latin-American Conference on Pattern Languages of Programming
            September 2012
            164 pages
            ISBN:9781450327879
            DOI:10.1145/2591028

            Copyright © 2012 ACM

            Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

            Publisher

            Association for Computing Machinery

            New York, NY, United States

            Publication History

            • Published: 20 September 2012

            Permissions

            Request permissions about this article.

            Request Permissions

            Check for updates

            Qualifiers

            • research-article

          PDF Format

          View or Download as a PDF file.

          PDF

          eReader

          View online with eReader.

          eReader