From the course: Java: Testing with JUnit
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Solution: Custom names
From the course: Java: Testing with JUnit
Solution: Custom names
- [Instructor] Alright, let's go ahead and give our test custom names. First I'm going to scroll down to test and in here I'm going to use the annotation at display name and I'm going to give it a basic description, test addition with positive numbers. And I'm going to do the same for our other tests. Going to add the annotation at display name and I'm going to give it the description, test subtraction with negative numbers. Now I'm going to go ahead and test my code. And as you can see, this is the correct answer. Please make sure to add display name to both of the tests.