JUnit test-cases and refactoring
1 posts in topic
Flat View  Flat View

Posted By:   Adrian_Herscu
Posted On:   Tuesday, July 20, 2004 05:59 PM

Hi all,

I'm trying to learn everything possible about TDD before starting my new project.

Currently, I find it hard to understand how test-cases and refactoring can peacefully live. For example, what will happen with my test suite after changing method names (of course, there are other scenarios, such as deleting or moving things around).

How to keep test-cases synchronized with changing code?
I found some tool, JUnitDoclet, but I'm not sure about the pitfalls.

I will be glad to receive some advices!

Re: JUnit test-cases and refactoring

Posted By:   Anonymous  
Posted On:   Thursday, July 22, 2004 09:39 AM

Well, you will need to refactor your tests, too, until they compile again.

Ideally, you should use an IDE with a good refactoring browser. Eclipse (free) and IntelliJ IDEA (not free, but possibly a little bit better) come to mind. With those, many refactorings are a matter of a couple of mouse clicks...

About | Sitemap | Contact