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
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
Marick, Brian. Software Testing Patterns Web Site. On-line at: http://www.testing.com/test-patterns/
Mock Objects Web Site. On-line at: http://www.mockobjects.com
Eclipse Web Site. On-line at: http://www.eclipse.org
Aho, A. V., Ullman J.D. The Theory Of Parsing, Translation, and Compiling, Prentice-Hall, Englewood Hills, N.J., 1972.
ANTLR Web Site. On-line at: http://www.antlr.org
WebGAIN Web Site. On-line at: http://www.webgain.com/products/java_cc/
Levin, J.R, Mason, T., Brown D. Lex & Yacc. O’Reilly & Associates, Sebastopol, CA., 1992.
Open Office Web Site. On-line at: http://www.openoffice.org
Beck, K. Extreme Programming Explained. Addison-Wesley. Boston, MA., 2000.
Beck, K. Test Driven Development: By Example. Addison-Wesley, Boston, MA., 2002.
Gamma, E., Helm, R., Johnson, R., Vlissedes J., Design Patterns, Addison-Wesley, Boston MA., 1995.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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