Question: IN JAVA This is the test case: public void testMethod() { Person tom = new Person(tom, wood, TOM_PHONE_NUMBER); String str = tom.getFirstName(); assertEquals( tom, str

IN JAVA

This is the test case:

public void testMethod() { Person tom = new Person("tom", "wood", TOM_PHONE_NUMBER); String str = tom.getFirstName(); assertEquals( "tom", str ); }

How do I write a code that will pass this test case, anything helps!

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!