This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Test driven refactoring vs composite refactoring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Test driven refactoring vs composite refactoring" Watch "Test driven refactoring vs composite refactoring" New topic
Author

Test driven refactoring vs composite refactoring

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

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

Joined: Jul 10, 2002
Posts: 214

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


SCJP, SCWCD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Test driven refactoring vs composite refactoring
 
Similar Threads
TDD, design, and architecture
3 Laws of unit testing.... but infinite confusion
How do you plan?
What should be the next tech. after core Java
Open discussion/ Problem Solving