Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes IDEs, Version Control and other tools and the fly likes Unit Test: get a class from a particular revision from SVN and compare it with the one in trunk Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Unit Test: get a class from a particular revision from SVN and compare it with the one in trunk" Watch "Unit Test: get a class from a particular revision from SVN and compare it with the one in trunk" New topic
Author

Unit Test: get a class from a particular revision from SVN and compare it with the one in trunk

aydeniz kirmizi
Ranch Hand

Joined: Aug 20, 2009
Posts: 39
Hi,

I am trying to crate a UnitTest to check if changes have been made to some Critical Componets(classes, properties files) since a particular repository.. If changed I want to give an error message in my unit test by comparing the files from trunk

create a unit test case which checks if changes have been made to the Spanish Critical Components since the 12.4 release.

What I want to do is:

1) get the class files from SVN automatically from 13.1.0 revision and copy them somewhere.
2) compare them with the same files which exist in trunk(the current version of the files)

I found something called SVNKit, but this does not seem to be free.

Any suggestion about how to do it?

thanks a lot.



Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31680
    
189

SvnKit is free for open source applications, but not commercial ones. However, you don't need it. You can install a SVN command line on your machine and use Runtime.exec to run SVN commands using that.


[OCA 8 book] [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
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: Unit Test: get a class from a particular revision from SVN and compare it with the one in trunk