aspose file tools*
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
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: 38
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30516
    
150

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.


[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://aspose.com/file-tools
 
subject: Unit Test: get a class from a particular revision from SVN and compare it with the one in trunk