Book Image

NetBeans IDE 8 Cookbook

By : David Salter, Rhawi Dantas
Book Image

NetBeans IDE 8 Cookbook

By: David Salter, Rhawi Dantas

Overview of this book

<p>From the start to the end of a Java project's lifecycle, this book will show you how to perform many key tasks with the NetBeans IDE, uncovering more about mobile, desktop, and enterprise Java along the way.</p> <p>You will start by creating Java projects and learning how to refactor and use NetBeans tools to increase developer efficiency. You will then get a walkthrough of how to create a desktop application before covering JavaFX and mobile applications and how to use external services within them. Having seen how to create many different types of applications, you will then be shown how to test and profile them before storing them in revision control systems such as Git or Subversion. Finally, you will learn how to extend NetBeans itself by adding new features to the IDE.</p>
Table of Contents (19 chapters)
NetBeans IDE 8 Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Introduction


In recent years, writing tests for applications has become a much more widely used practice. In many ways, this is due to the rise of open source software and the need to prove that software will function as expected.

In software development, there are now many different unit testing frameworks, many of which are based upon the xUnit architecture. This architecture, originally defined by Kent Beck in the late 1990s, defines a basic set of components to run tests.

xUnit specifies that tests are executed by a test runner, which is responsible for running all of the necessary tests and generating results indicating either the success or failure of each test. Each test is defined as a separate test case. For each test case, we define a number of assertions that must equate to true for the test to be successful.

To run a test, any number of preconditions need to be defined. In xUnit, these are called test fixtures. When there are multiple test cases that require the same test fixtures...