Question: Problem 4. (30 points) More reflection, command line arguments and automated testing Task 1. Write a program (your main method should be in class Test4)

 Problem 4. (30 points) More reflection, command line arguments and automated

Problem 4. (30 points) More reflection, command line arguments and automated testing Task 1. Write a program (your main method should be in class Test4) that (i) takes a class name as a command line argument, (ii) in that class locates all public static methods 1. that take no parameters, 2. return a boolean, and 3. whose name starts with test; andi) invokes those methods. If such a method returns true, your program should write OK: testX succeeded where testX is the name of the tried test method. In the case of false the output should be FAILED: testX failed Task 2. Write a class MyClass that has several test methods, and try your program with that class

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!