Unit Test: get a class from a particular revision from SVN and compare it with the one in trunk
posted 2 years ago
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.
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.