Assume you've written the following test for creating tasks in the XTrack system:
public class TaskStoryTest { public void testCreate() { login("bob","bobspassword"); assertTrue( addTask( "User Gui", "Create GUI", "Bob", "2", "3", "Not Started" ) ); } }
Indicate the modifications required to TaskStoryTest to make it run.
Q2:
Assume you've already gotten LoginStoryTest and UserIdStoryTest to run as illustrated in this chapter. Assume that the code in the XTrack system that creates tasks works as follows:
AnXTrackTaskclass in the XTrack system represents a task. AnXTrackTaskhas anaddmethod that sets the task's name, description, assignee, estimate, actual, and status fields to values specified as parameters. If the specified values are all valid, it then attempts to add the task to the database. If the addition is successful, it returnstrue; otherwise, if the add fails or if any of the specified values is invalid, it returnsfalse.
Show what you'd have to add to XTrackTest to call this code and make the TaskStoryTest run.