Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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)

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

Provide examples of KPIs in Human Capital Management.

Answered: 1 week ago

Question

What are OLAP Cubes?

Answered: 1 week ago