Our First Passing Test

In this lesson we will learn to write our first passing JUnit test.

We'll cover the following

For our first example, we’ll write tests against a small class named ScoreCollection. Its goal is to return the mean (average) for a collection of scoreable objects (things that answer with a score).

Now, let’s run the test below:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy