This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes OO, Patterns, UML and Refactoring and the fly likes Interaction testing with legacy networked apps Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Reply Bookmark "Interaction testing with legacy networked apps" Watch "Interaction testing with legacy networked apps" New topic
Author

Interaction testing with legacy networked apps

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 757

Given an existing application with a hub-and-spoke design; the spokes being integration points with networked apps i.e. TCP/IP socket apps & webservices, how would you start refactoring such code when you are modifying:
1) the hub - i.e. the main application
2) one or more of the spokes - i.e. additional networked services to integrate or a modification of an existing protocol.

Thanks

Pho


Regards,

Pho
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
What would be the driving force for refactoring the existing system?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26193
    
  66

I would start by writing integration tests. It is especially important not to change the API the legacy apps are expecting on a networked application.

After that, it depends on why you want to refactor.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Interaction testing with legacy networked apps
 
Similar Threads
how to comprehend the "Non-Networked Mode" mentioned in my requirement!
SUPER?
Wheel Project
"Overall Architecture"
Hub / clients and web services architecture question