• Option 1: Add Task
o Information Requirements Task (TaskTypeID, Requirement Name, Date, From Plan, Plan To, assignee, Reviewer)
o Test data is valid with the following conditions:
• Check TaskTypeID must exist in (1-4).
• Information must be a valid date in the format dd-MM-yyyy.
• Plan From Plan To be smaller and is approximately 8 -> 17:30 ⇔ 8.0, 8.5, 9.0, 9.5 ... - > 17.5.
o Add Task in the program.
o Return to the main screen.
• Option 2: Delete Task
o The requirement to enter the ID of the task to be deleted.
o Check valid data with the conditions below:
• id must exist in the DB.
o Delete task.
o Return to the main screen.
• Option 3: Displays task
Displays tasks increases with formatted ID and interface requirements.
o Return to screen The main image.
• Option 4: Exit the program. Instructions for students Suggestions: Student phải implements methods addTask deleteTask getDataTasks print startup code. Use the try catch to catch NumberFormatException, NullPointerException Use SimpleDateFormat to handle date. Use layers to wapper check the value number. Option 1: Add a task. o Must install the function: public int addTask (requirementName String, String assignee, reviewers String, String taskTypeID, String date, String planFrom, String planTo) throws Exception • Input: ➢ requirementName: Name requirement ➢ assignee: Name of your task. ➢ reviewers: Name inspection task. ➢ taskTypeID: id type of task. ➢ date: The date the task. ➢ planFrom: start time. ➢ planTo: time end. • Return Value: id task ➢ ➢ list of exceptions Option 2: Delete the task. o Must install the function: public void deleteTask (String id) throws Exception • Inputs: ➢ id: id task • Value returns: list of exceptions. Option 3: Show task. o Must install the function: public List
getDataTasks ()
• Return Value: List Task
Estimated time
90 minutes
đang được dịch, vui lòng đợi..
