File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Test driven refactoring vs composite refactoring

 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between the two? Does test-driven refactoring involve replacing the code and conmposite approach is just rearranging the code.

Thanks
 
Edwin Keeton
Ranch Hand
Posts: 214
IntelliJ IDE Java Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Quoting from Chapter 2 Kerievsky's book, Refactoring to Patterns:

A test-driven refactoring involves applying testdriven
development to produce replacement code and then swap out old code
for new code (while retaining and rerunning the old code�s tests).


Composite refactorings are high-level refactorings composed of low-level refactorings.


Read it here
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic