Testing and debugging classes in Java; Intro Java course Lesson 6 Video 8

preview_player
Показать описание
This series of videos is suitable for programmers with minimal (or no) programming experience who want to learn Java. This is the thirty-ninth video in the Introductory Java series, and the eighth video in lesson 6 (classes and objects). In this video we'll look at some theory that helps you develop a set of test cases for a class, as well as some common class errors.

There is a suggested (free) book below that you could read along with the videos lessons. However, the video is very straightforward and can also stand alone or accompany any other introductory Java textbook. Let's have some fun learning to program in Java!

PLAYLIST

This is the video on unit-testing methods:

BOOK AND WEBSITE RESOURCES
This video is suitable to watch after reading Chapter 5 of Introduction to Programming Using Java, by David J. Eck:

The Elements of Java Style text is available here*:
*As an Amazon Associate I earn from qualifying purchases. Your purchases help me continue to bring you content!

The Open JDK page is here:

The Eclipse IDE page is here:

PRACTICE
You can rewrite the BuggyAccount classes here*:

If you want to earn credit for learning to code, take an online course at CCRI! These videos are part of the Java Programming course:

GET THE CODE

The github repository with all of the code examples for Lesson 6 is here:

RESOURCE ATTRIBUTIONS
Java JDK image from Oracle:

Java coffee cup image:

00:00 Welcome and what we're going to cover
00:35 Intro to unit testing a class
03:45 State transition diagrams
07:23 A test case
09:26 Common bugs
Комментарии
Автор

Hello Maggy, in the buggy version userName should be User1 not User2 at 0X1022 in the illustration, isn' it ? (as it is a non static member as opposed to the password field)

french-coding