Closed coreybasden closed 2 weeks ago
[1] Valid Method Rename Given I am on the method management screen of the program, And I have a method named oldMethodName, When I type “rename method oldMethodName to newMethodName”, Then I see a message saying that the method “oldMethodName” has been successfully renamed to “newMethodName”, And the UML diagram updates to reflect the new method name “newMethodName”.
[2] Invalid Method Rename (Method Does Not Exist) Given I am on the method management screen of the program, And I do not have a method named nonExistentMethod, When I type “rename method nonExistentMethod to newMethodName”, Then I see a message saying that the method “nonExistentMethod” does not exist, And I remain on the method management screen.
[3] Invalid Method Rename (New Name Already Exists) Given I am on the method management screen of the program, And I have a method named existingMethod, And I have a method named oldMethodName, When I type “rename method oldMethodName to existingMethod”, Then I see a message saying that the name “existingMethod” is invalid because it already exists, And I remain on the method management screen.
As a user, I want to be able to rename methods, So that I can update the class structure without deleting and re-adding them.