Skip to main content

Three Patterns in Java Unit Testing

  • Conference paper
  • First Online:
  • 1502 Accesses

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 2675))

Abstract

This paper discusses three unit-testing techniques. These are test probe, ipecac, and test hierarchies. Each of these patterns explores a different area of the interaction of white- and black-box testing. The first two techniques, test probe and ipecac, allow internal implementations to be conveniently exposed to test code without compromising production code integrity. The latter provides a pattern for testing class hierarchies in production code, and a way to move from white-box to black-box testing while refactoring.

A drug prepared from the ipecac plant for use in treating poisoning by inducing vomiting.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Marick, Brian. Software Testing Patterns Web Site. On-line at: http://www.testing.com/test-patterns/

  2. Mock Objects Web Site. On-line at: http://www.mockobjects.com

  3. Eclipse Web Site. On-line at: http://www.eclipse.org

  4. Aho, A. V., Ullman J.D. The Theory Of Parsing, Translation, and Compiling, Prentice-Hall, Englewood Hills, N.J., 1972.

    Google Scholar 

  5. ANTLR Web Site. On-line at: http://www.antlr.org

  6. WebGAIN Web Site. On-line at: http://www.webgain.com/products/java_cc/

  7. Levin, J.R, Mason, T., Brown D. Lex & Yacc. O’Reilly & Associates, Sebastopol, CA., 1992.

    Google Scholar 

  8. Open Office Web Site. On-line at: http://www.openoffice.org

  9. Beck, K. Extreme Programming Explained. Addison-Wesley. Boston, MA., 2000.

    Google Scholar 

  10. Beck, K. Test Driven Development: By Example. Addison-Wesley, Boston, MA., 2002.

    Google Scholar 

  11. Gamma, E., Helm, R., Johnson, R., Vlissedes J., Design Patterns, Addison-Wesley, Boston MA., 1995.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2003 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Nickell, E., Smith, I. (2003). Three Patterns in Java Unit Testing. In: Marchesi, M., Succi, G. (eds) Extreme Programming and Agile Processes in Software Engineering. XP 2003. Lecture Notes in Computer Science, vol 2675. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-44870-5_22

Download citation

  • DOI: https://doi.org/10.1007/3-540-44870-5_22

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-40215-2

  • Online ISBN: 978-3-540-44870-9

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics