O'Reilly logo

Foundations of Software Testing, 2nd Edition by Aditya P. Mathur

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10

Unit Testing

CONTENTS

The purpose of this chapter is to introduce tools and techniques used in unit testing. This phase of testing is often considered as the key to high quality software. There exist a variety of tools that aid the unit test process. Two such tools, namely, JUnit and Easy Mock, are introduced. JUnit is a widely used tool for partially automating the unit test process. Easy Mock allows mocking of objects that are not available while testing a unit. The technique of object mocking and its advantages are described using Easy Mock.

10.1  Introduction

Unit testing is an early phase of software testing. The goal in this phase is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required