use of org.jenkinsci.test.acceptance.plugins.subversion.SvnRepositoryBrowserWebSvn in project acceptance-test-harness by jenkinsci.
the class SubversionPluginTest method build_has_changes_and_repoBrowser.
@Test
public void build_has_changes_and_repoBrowser() throws SubversionPluginTestException {
final SvnContainer svnContainer = svn.get();
final FreeStyleJob f = jenkins.jobs.create();
final SubversionScm subversionScm = f.useScm(SubversionScm.class);
subversionScm.url.set(svnContainer.getUrlUnauthenticatedRepoAtRevision(1));
final SvnRepositoryBrowserWebSvn repositoryBrowserWebSvn = subversionScm.useRepositoryBrowser(SvnRepositoryBrowserWebSvn.class);
repositoryBrowserWebSvn.url.set(svnContainer.getUrlViewVC());
f.save();
f.startBuild().shouldSucceed();
f.configure();
subversionScm.url.set(svnContainer.getUrlUnauthenticatedRepoAtRevision(2));
f.save();
f.startBuild().shouldSucceed();
final Changes changes = f.getLastBuild().getChanges();
assertTrue("Build has no diff link.", changes.hasDiffFileLink("testOne.txt"));
}
Aggregations