Jeanne Boyarsky wrote:This works. It doesn't use the enum, but keeps it to preserve your method signature:
Jaikiran Pai wrote:I had the IDE open in front of me, so I just tried it in debug mode. Clicked "Evaluate expressions" and then clicked the "Code Fragment mode" button and in the top area editor entered:
and then hit the "Evaluate" button. The output, 7, was shown in the "Result" text area. See screenshot for details.
Gregg Bolinger wrote:You should name your test methods based on what you're attempting to assert. For example, suppose your class Biz has a method called calculateTotal(). You might name your test methods as such:
Test methods should be as well defined as your methods being tested. testCalculateTotal_xxx is a bad idea.