File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
aydeniz kirmizi
Ranch Hand
Posts: 40
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 33689
316
Eclipse IDE Java VI Editor
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic