assertNull("Method setCuisine should not exist before proposal is applied", Introspector.findMethod(type,
"setCuisine", 1, Public.YES, Static.NO));
assertNotNull("Method setCuisineType should not before proposal is applied", Introspector.findMethod(type,
"setCuisineType", 1, Public.YES, Static.NO));
RenamePropertyQuickfixProposal proposal = new RenamePropertyQuickfixProposal(offset, length, "cuisineType",
className, false, file, project);
proposal.doRename("cuisine", editor.getSite().getShell());
assertNull("Method setCuisineType should not exist after proposal is applied", Introspector.findMethod(type,
"setCuisineType", 1, Public.YES, Static.NO));
assertNotNull("Method setCuisine should exist after proposal is applied", Introspector.findMethod(type,
"setCuisine", 1, Public.YES, Static.NO));