![]() JUnit is a regression testing framework written by Erich Gamma and Kent Beck. The concepts of unit testing and regression testing are old, but their popularity was greatly increased recently with the publication of the extreme programming methodology 1 and a unit testing tool for Java, JUnit. The unit testing features in BlueJ give you the tools to record and replay tests, so that unit tests can easily be repeated later (typically after a change in the system), so that the developer can gain some confidence that recent changes have not broken existing functionality. Ad-hoc testing is useful, but not good enough for systematic testing. ![]() If you are familiar with BlueJ s interaction features, then you know that it is easy in BlueJ to test individual methods interactively. This tutorial discusses BlueJ s tools for systematic unit testing. Thus, in our context, unit testing refers to the individual testing of methods and classes in BlueJ. ![]() In object-oriented systems, these units typically are classes and methods. 1.2 What is unit testing? The term unit testing refers to the individual testing of separate units of a software system. We give a few pointers in the next section. (You can get that tutorial, and an electronic version of this one, at We also assume that you are somewhat familiar with the idea of unit testing (or at least software testing in general). ![]() We assume that you are already familiar with BlueJ s general functionality. 1.1 About this tutorial scope and audience This tutorial introduces the unit testing functionality in the BlueJ environment. Kölling 2ģ 1 Introduction Summary: BlueJ provides regression testing functionality by integrating JUnit. KöllingĢ 1 INTRODUCTION ENABLING UNIT TESTING FUNCTIONALITY CREATING TEST CLASSES CREATING TEST METHODS RUNNING TESTS INTERPRETING TEST RESULTS WHAT IS A FIXTURE? CREATING AND USING TEST FIXTURES WRITING TEST METHODS BY HAND WRITING TESTS FIRST MULTI-CLASS TESTING JUST THE SUMMARIES Copyright M. ![]() 1 Unit Testing in BlueJ Version 1.0 for BlueJ Version Michael Kölling Mærsk Institute University of Southern Denmark Copyright M. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |