Unit Testing in Java: How Tests Drive the Code

Unit Testing in Java: How Tests Drive the Code
ISBN-10
1558608680
ISBN-13
9781558608689
Category
Computers
Pages
172
Language
English
Published
2003-06-03
Publisher
Morgan Kaufmann
Author
Johannes Link

Description

Software testing is indispensable and is one of the most discussed topics in software development today. Many companies address this issue by assigning a dedicated software testing phase towards the end of their development cycle. However, quality cannot be tested into a buggy application. Early and continuous unit testing has been shown to be crucial for high quality software and low defect rates. Yet current books on testing ignore the developer's point of view and give little guidance on how to bring the overwhelming amount of testing theory into practice. Unit Testing in Java represents a practical introduction to unit testing for software developers. It introduces the basic test-first approach and then discusses a large number of special issues and problem cases. The book instructs developers through each step and motivates them to explore further. Shows how the discovery and avoidance of software errors is a demanding and creative activity in its own right and can build confidence early in a project. Demonstrates how automated tests can detect the unwanted effects of small changes in code within the entire system. Discusses how testing works with persistency, concurrency, distribution, and web applications. Includes a discussion of testing with C++ and Smalltalk.

Other editions

Similar books

  • Pragmatic Unit Testing in Java 8 with JUnit
    By Andy Hunt, Dave Thomas, Jeff Langr

    If it returns 101 instead, you see this: ​ java.lang.AssertionError: ​ Expected: ​ but: was ​ at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20) ​ ... Not as much with assertTrue().

  • Java Unit Testing with JUnit 5: Test Driven Development with JUnit 5
    By Rahul Sharma, Shekhar Gulati

    You'll also see how to write clean tests with less code. This book is a departure from using older practices and presents new ways of performing tests, building assertions, and injecting dependencies.

  • Effective Unit Testing: A guide for Java developers
    By Lasse Koskela

    Purchase of the print book comes with an offer of a free PDF, ePub, and Kindle eBook from Manning. Also available is all code from the book. About the Author Lasse Koskela is a coach, trainer, consultant, and programmer.

  • The Art of Unit Testing: with examples in C#
    By Roy Osherove

    The examples in the book use C#, but will benefit anyone using a statically typed language such as Java or C++. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

  • Unit Test Frameworks: Tools for High-Quality Software Development
    By Paul Hamill

    On the other end of the software spectrum, many large-scale applications have huge batteries of test cases that are repeatedly run and added to throughout the development process. What are unit test frameworks and how are they used?

  • Practical Unit Testing with JUnit and Mockito
    By Tomek Kaczanowski

    This book explains in detail how to implement unit tests using two very popular open source Java technologies: JUnit and Mockito.

  • Java Extreme Programming Cookbook
    By Eric M. Burke, Brian M. Coyner

    Brimming with over 100 "recipes" for getting down to business and actually doing XP, the Java Extreme Programming Cookbook doesn't try to "sell" you on XP; it succinctly documents the most important features of popular open source tools for ...

  • JUnit Recipes: Practical Methods for Programmer Testing
    By Scott Stirling, J.B. Rainsberger

    If you want some of that, there's no better way to start your testing habit, nor to continue feeding it, than with"" JUnit Recipes,"" In this book you will find one hundred and thirty-seven solutions to a range of problems, from simple to ...

  • Unit Testing Principles, Practices, and Patterns
    By Vladimir Khorikov

    "This book is an indispensable resource.

  • Mastering Unit Testing Using Mockito and JUnit
    By Sujoy Acharya

    This book is for you if you are a developer with some experience in Java application development as well as a basic knowledge of JUnit testing.