public enum DivisionConstant {
consumer(1), office(2), production_printing(3);
}
For this enum I wrote a junit test as:
@Test
public void testDivisionConstantFromInt()
{
DivisionConstant d = DivisionConstant.fromInt(1);
assertTrue((d.toName().compareToIgnoreCase("consumer") == 0));
}
When I execute this it shows only true or false. But I want to know if the test case won't work I want to the reason for the failure of the test