1.

What Happens If A Junit Test Method Is Declared To Return “string”?

Answer»

If a JUNIT TEST METHOD is DECLARED to return “String”, the compilation will pass ok. But the execution will fail. This is because Junit requires that all test methods must be declared to return “void”.

If a Junit test method is declared to return “String”, the compilation will pass ok. But the execution will fail. This is because Junit requires that all test methods must be declared to return “void”.



Discussion

No Comment Found