Understanding the Tests
What does all this mean?!
The following will help you interpret the test failures in Lab 2.
Remember to focus on one test at a time!
Before writing any code:
After creating the class:
Tip
Did you remember to include a package statement in your class? Did you remember to build after creating the class file?
After adding mysteryMethodOne():
After changing the return type:
After changing mysteryMethodOne to return 1, the tests pass!
But remember, we aren’t finished yet. We need to actually run the class after it passes the tests! We still have a little work to do, right?